summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSenko Rasic <senko.rasic@collabora.co.uk>2010-08-20 11:48:28 +0200
committerSenko Rasic <senko.rasic@collabora.co.uk>2010-08-26 11:15:08 +0200
commitc42a20f1386443dd8f2b18006e4fe87248ba5392 (patch)
treeb88527ac06533eb7779c76e989e6043689d7155a /plugins
parent50a03d41c48baf0d2827269d85a85032c841800f (diff)
test plugin: add custom presence statuses for testing
Diffstat (limited to 'plugins')
-rw-r--r--plugins/test.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/test.c b/plugins/test.c
index 8f45ca67..10956796 100644
--- a/plugins/test.c
+++ b/plugins/test.c
@@ -124,6 +124,17 @@ test_plugin_create_sidecar (
g_object_unref (result);
}
+static TpPresenceStatusSpec test_presences[] = {
+ { "testbusy", TP_CONNECTION_PRESENCE_TYPE_BUSY, TRUE, NULL, NULL, NULL },
+ { "testaway", TP_CONNECTION_PRESENCE_TYPE_AWAY, FALSE, NULL, NULL, NULL },
+ { NULL, 0, FALSE, NULL, NULL, NULL }
+};
+
+static GabblePluginPrivacyListMap privacy_list_map[] = {
+ { "testbusy", "test-busy-list" },
+ { NULL, NULL },
+};
+
static void
plugin_iface_init (
gpointer g_iface,
@@ -134,6 +145,9 @@ plugin_iface_init (
iface->name = "Sidecar test plugin";
iface->sidecar_interfaces = sidecar_interfaces;
iface->create_sidecar = test_plugin_create_sidecar;
+
+ iface->presence_statuses = test_presences;
+ iface->privacy_list_map = privacy_list_map;
}
GabblePlugin *