aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:25 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:47:25 +0800
commit85f25a9f04bbda73923d80066f7a5cd0d09c482f (patch)
treed629fda3700a469c30a089c93559358c53c0432d
parent78d63cbc4b87ec4bad3a844a9bd4400e1e71c613 (diff)
downloadgsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar.gz
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar.bz2
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar.lz
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar.xz
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.tar.zst
gsoc2013-empathy-85f25a9f04bbda73923d80066f7a5cd0d09c482f.zip
Implement _get_monitor () in EmpathyContactManager.
svn path=/trunk/; revision=2052
-rw-r--r--libempathy/empathy-contact-manager.c12
-rw-r--r--libempathy/empathy-contact-manager.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c
index bb5782aa4..c476d3523 100644
--- a/libempathy/empathy-contact-manager.c
+++ b/libempathy/empathy-contact-manager.c
@@ -27,6 +27,7 @@
#include "empathy-contact-manager.h"
#include "empathy-account-manager.h"
+#include "empathy-contact-monitor.h"
#include "empathy-contact-list.h"
#include "empathy-utils.h"
@@ -37,6 +38,7 @@
typedef struct {
GHashTable *lists;
EmpathyAccountManager *account_manager;
+ EmpathyContactMonitor *contact_monitor;
} EmpathyContactManagerPriv;
static void contact_manager_iface_init (EmpathyContactListIface *iface);
@@ -210,6 +212,7 @@ empathy_contact_manager_init (EmpathyContactManager *manager)
(GDestroyNotify) g_object_unref,
(GDestroyNotify) g_object_unref);
priv->account_manager = empathy_account_manager_new ();
+ priv->contact_monitor = empathy_contact_monitor_new_for_proxy (EMPATHY_CONTACT_LIST (manager));
g_signal_connect (priv->account_manager,
"account-connection-changed",
@@ -319,6 +322,14 @@ contact_manager_get_members (EmpathyContactList *manager)
return contacts;
}
+static EmpathyContactMonitor *
+contact_manager_get_monitor (EmpathyContactList *manager)
+{
+ EmpathyContactManagerPriv *priv = GET_PRIV (manager);
+
+ return priv->contact_monitor;
+}
+
static void
contact_manager_get_pendings_foreach (McAccount *account,
EmpathyTpContactList *list,
@@ -498,6 +509,7 @@ contact_manager_iface_init (EmpathyContactListIface *iface)
iface->add = contact_manager_add;
iface->remove = contact_manager_remove;
iface->get_members = contact_manager_get_members;
+ iface->get_monitor = contact_manager_get_monitor;
iface->get_pendings = contact_manager_get_pendings;
iface->get_all_groups = contact_manager_get_all_groups;
iface->get_groups = contact_manager_get_groups;
diff --git a/libempathy/empathy-contact-manager.h b/libempathy/empathy-contact-manager.h
index c2e0b67a2..9ba77966c 100644
--- a/libempathy/empathy-contact-manager.h
+++ b/libempathy/empathy-contact-manager.h
@@ -29,6 +29,7 @@
#include "empathy-contact.h"
#include "empathy-tp-contact-list.h"
#include "empathy-contact-list.h"
+#include "empathy-contact-monitor.h"
G_BEGIN_DECLS
@@ -57,6 +58,7 @@ EmpathyTpContactList * empathy_contact_manager_get_list (EmpathyContactManager *
McAccount *account);
gboolean empathy_contact_manager_can_add (EmpathyContactManager *manager,
McAccount *account);
+EmpathyContactMonitor *empathy_contact_manager_get_monitor (EmpathyContactManager *manager);
G_END_DECLS