[Telepathy-commits] [telepathy-haze/master] Connection: implement SimplePresence
Will Thompson
will.thompson at collabora.co.uk
Mon Oct 27 16:57:24 PDT 2008
---
src/connection-presence.c | 2 ++
src/connection.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/connection-presence.c b/src/connection-presence.c
index daa15f5..5e1853c 100644
--- a/src/connection-presence.c
+++ b/src/connection-presence.c
@@ -319,6 +319,8 @@ haze_connection_presence_class_init (GObjectClass *object_class)
tp_presence_mixin_class_init (object_class,
G_STRUCT_OFFSET (HazeConnectionClass, presence_class),
_status_available, _get_contact_statuses, _set_own_status, statuses);
+
+ tp_presence_mixin_simple_presence_init_dbus_properties (object_class);
}
void
diff --git a/src/connection.c b/src/connection.c
index 394801e..8147336 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -55,6 +55,8 @@ G_DEFINE_TYPE_WITH_CODE(HazeConnection,
tp_dbus_properties_mixin_iface_init);
G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_PRESENCE,
tp_presence_mixin_iface_init);
+ G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_SIMPLE_PRESENCE,
+ tp_presence_mixin_simple_presence_iface_init);
G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_ALIASING,
haze_connection_aliasing_iface_init);
G_IMPLEMENT_INTERFACE (TP_TYPE_SVC_CONNECTION_INTERFACE_AVATARS,
@@ -519,6 +521,7 @@ haze_connection_class_init (HazeConnectionClass *klass)
GParamSpec *param_spec;
static const gchar *interfaces_always_present[] = {
TP_IFACE_CONNECTION_INTERFACE_PRESENCE,
+ TP_IFACE_CONNECTION_INTERFACE_SIMPLE_PRESENCE,
/* TODO: This is a lie. Not all protocols supported by libpurple
* actually have the concept of a user-settable alias, but
* there's no way for the UI to know (yet).
--
1.5.6.5
More information about the Telepathy-commits
mailing list