#define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyTpChat)
typedef struct {
EmpathyContactFactory *factory;
+ EmpathyContactMonitor *contact_monitor;
EmpathyContact *user;
EmpathyContact *remote_contact;
EmpathyTpGroup *group;
return members;
}
+static EmpathyContactMonitor *
+tp_chat_get_monitor (EmpathyContactList *list)
+{
+ EmpathyTpChatPriv *priv;
+
+ g_return_val_if_fail (EMPATHY_IS_TP_CHAT (list), NULL);
+
+ priv = GET_PRIV (list);
+
+ return priv->contact_monitor;
+}
+
static EmpathyMessage *
tp_chat_build_message (EmpathyTpChat *chat,
guint type,
g_object_unref (priv->group);
}
+ g_object_unref (priv->contact_monitor);
g_object_unref (priv->factory);
g_object_unref (priv->user);
g_object_unref (priv->account);
EMPATHY_TYPE_TP_CHAT, EmpathyTpChatPriv);
chat->priv = priv;
+ priv->contact_monitor = empathy_contact_monitor_new_for_proxy (EMPATHY_CONTACT_LIST (chat));
}
static void
iface->add = tp_chat_add;
iface->remove = tp_chat_remove;
iface->get_members = tp_chat_get_members;
+ iface->get_monitor = tp_chat_get_monitor;
}
EmpathyTpChat *