empathy r2052 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2052 - trunk/libempathy
- Date: Tue, 6 Jan 2009 16:47:25 +0000 (UTC)
Author: xclaesse
Date: Tue Jan 6 16:47:25 2009
New Revision: 2052
URL: http://svn.gnome.org/viewvc/empathy?rev=2052&view=rev
Log:
Implement _get_monitor () in EmpathyContactManager.
Modified:
trunk/libempathy/empathy-contact-manager.c
trunk/libempathy/empathy-contact-manager.h
Modified: trunk/libempathy/empathy-contact-manager.c
==============================================================================
--- trunk/libempathy/empathy-contact-manager.c (original)
+++ trunk/libempathy/empathy-contact-manager.c Tue Jan 6 16:47:25 2009
@@ -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 @@
(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 @@
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 @@
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;
Modified: trunk/libempathy/empathy-contact-manager.h
==============================================================================
--- trunk/libempathy/empathy-contact-manager.h (original)
+++ trunk/libempathy/empathy-contact-manager.h Tue Jan 6 16:47:25 2009
@@ -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 @@
McAccount *account);
gboolean empathy_contact_manager_can_add (EmpathyContactManager *manager,
McAccount *account);
+EmpathyContactMonitor *empathy_contact_manager_get_monitor (EmpathyContactManager *manager);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]