diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:25 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-01-07 00:47:25 +0800 |
commit | 85f25a9f04bbda73923d80066f7a5cd0d09c482f (patch) | |
tree | d629fda3700a469c30a089c93559358c53c0432d /libempathy/empathy-contact-manager.c | |
parent | 78d63cbc4b87ec4bad3a844a9bd4400e1e71c613 (diff) | |
download | gsoc2013-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
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r-- | libempathy/empathy-contact-manager.c | 12 |
1 files changed, 12 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; |