1 /* tp-chan-ifaces-signal-setters.c |
|
2 * |
|
3 * Copyright (C) 2005 Collabora Ltd. |
|
4 * |
|
5 * |
|
6 * This library is free software; you can redistribute it and/or |
|
7 * modify it under the terms of the GNU Lesser General Public |
|
8 * License as published by the Free Software Foundation; either |
|
9 * version 2.1 of the License, or (at your option) any later version. |
|
10 * |
|
11 * This library is distributed in the hope that it will be useful, |
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 * Lesser General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public |
|
17 * License along with this library; if not, write to the Free Software |
|
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
19 * |
|
20 */ |
|
21 |
|
22 #include "tp-chan-ifaces-signal-setters.h" |
|
23 |
|
24 |
|
25 void tp_chan_set_contactsearch_signatures(DBusGProxy *proxy) |
|
26 { |
|
27 dbus_g_proxy_add_signal(proxy, "SearchResultReceived", G_TYPE_UINT, |
|
28 (dbus_g_type_get_map ("GHashTable", |
|
29 G_TYPE_STRING, G_TYPE_VALUE)), G_TYPE_INVALID); |
|
30 dbus_g_proxy_add_signal(proxy, "SearchStateChanged", |
|
31 G_TYPE_UINT, G_TYPE_INVALID); |
|
32 } |
|
33 |
|
34 |
|
35 void tp_chan_set_streamedmedia_signatures(DBusGProxy *proxy) |
|
36 { |
|
37 dbus_g_proxy_add_signal(proxy, "StreamStateChanged", |
|
38 G_TYPE_UINT, G_TYPE_UINT, |
|
39 G_TYPE_UINT, G_TYPE_INVALID); |
|
40 /* FIXME: Outdated |
|
41 dbus_g_proxy_add_signal(proxy, "ReceivedMediaParameters", |
|
42 G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, |
|
43 G_TYPE_INVALID); |
|
44 */ |
|
45 } |
|
46 |
|
47 void tp_chan_set_roomlist_signatures(DBusGProxy *proxy) |
|
48 { |
|
49 dbus_g_proxy_add_signal(proxy, "GotRooms", |
|
50 (dbus_g_type_get_struct ("GValueArray", |
|
51 G_TYPE_UINT, G_TYPE_STRING, |
|
52 (dbus_g_type_get_map ("GHashTable", |
|
53 G_TYPE_STRING, G_TYPE_VALUE)))), G_TYPE_INVALID); |
|
54 dbus_g_proxy_add_signal(proxy, "ListingRooms", |
|
55 G_TYPE_BOOLEAN, G_TYPE_INVALID); |
|
56 } |
|
57 |
|
58 void tp_chan_set_text_signatures(DBusGProxy *proxy) |
|
59 { |
|
60 dbus_g_proxy_add_signal(proxy, "Received", G_TYPE_UINT, G_TYPE_UINT, |
|
61 G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT, |
|
62 G_TYPE_STRING, G_TYPE_INVALID); |
|
63 dbus_g_proxy_add_signal(proxy, "Sent", G_TYPE_UINT, G_TYPE_UINT, |
|
64 G_TYPE_STRING, G_TYPE_INVALID); |
|
65 dbus_g_proxy_add_signal(proxy, "SendError", G_TYPE_UINT, G_TYPE_UINT, |
|
66 G_TYPE_UINT, G_TYPE_STRING, G_TYPE_INVALID); |
|
67 dbus_g_proxy_add_signal(proxy, "LostMessage", G_TYPE_INVALID); |
|
68 } |
|
69 |
|
70 void tp_chan_set_dtmf_signatures(DBusGProxy *proxy) |
|
71 { |
|
72 dbus_g_proxy_add_signal(proxy, "ReceivedDTMF", G_TYPE_UINT, |
|
73 G_TYPE_UINT, G_TYPE_INVALID); |
|
74 } |
|
75 |
|
76 void tp_chan_set_group_signatures(DBusGProxy *proxy) |
|
77 { |
|
78 dbus_g_proxy_add_signal(proxy, "GroupFlagsChanged", G_TYPE_UINT, |
|
79 G_TYPE_UINT, G_TYPE_INVALID); |
|
80 dbus_g_proxy_add_signal(proxy, "MembersChanged", G_TYPE_STRING, |
|
81 DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, |
|
82 DBUS_TYPE_G_UINT_ARRAY, DBUS_TYPE_G_UINT_ARRAY, |
|
83 G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID); |
|
84 } |
|
85 |
|
86 void tp_chan_set_hold_signatures(DBusGProxy *proxy) |
|
87 { |
|
88 dbus_g_proxy_add_signal(proxy, "HoldStateChanged", G_TYPE_UINT, |
|
89 G_TYPE_UINT, G_TYPE_INVALID); |
|
90 } |
|
91 |
|
92 void tp_chan_set_password_signatures(DBusGProxy *proxy) |
|
93 { |
|
94 dbus_g_proxy_add_signal(proxy, "PasswordFlagsChanged", |
|
95 G_TYPE_UINT, G_TYPE_UINT, G_TYPE_INVALID); |
|
96 } |
|
97 |
|
98 void tp_chan_set_icesignalling_signatures(DBusGProxy *proxy) |
|
99 { |
|
100 dbus_g_proxy_add_signal(proxy, "NewIceSessionHandler", |
|
101 DBUS_TYPE_G_OBJECT_PATH, G_TYPE_STRING, |
|
102 G_TYPE_INVALID); |
|
103 } |
|