Add sample application[phone]
[staging/soundmanager.git] / sample / phone / telephony-binding / gdbus / ofono_voicecall_interface.h
1 /*
2  * Generated by gdbus-codegen 2.50.3. DO NOT EDIT.
3  *
4  * The license of this code is the same as for the source it was derived from.
5  */
6
7 #ifndef __OFONO_VOICECALL_INTERFACE_H__
8 #define __OFONO_VOICECALL_INTERFACE_H__
9
10 #include <gio/gio.h>
11
12 G_BEGIN_DECLS
13
14
15 /* ------------------------------------------------------------------------ */
16 /* Declarations for org.ofono.VoiceCall */
17
18 #define TYPE_ORG_OFONO_VOICE_CALL (org_ofono_voice_call_get_type ())
19 #define ORG_OFONO_VOICE_CALL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_OFONO_VOICE_CALL, OrgOfonoVoiceCall))
20 #define IS_ORG_OFONO_VOICE_CALL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_OFONO_VOICE_CALL))
21 #define ORG_OFONO_VOICE_CALL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_OFONO_VOICE_CALL, OrgOfonoVoiceCallIface))
22
23 struct _OrgOfonoVoiceCall;
24 typedef struct _OrgOfonoVoiceCall OrgOfonoVoiceCall;
25 typedef struct _OrgOfonoVoiceCallIface OrgOfonoVoiceCallIface;
26
27 struct _OrgOfonoVoiceCallIface
28 {
29   GTypeInterface parent_iface;
30
31
32   gboolean (*handle_answer) (
33     OrgOfonoVoiceCall *object,
34     GDBusMethodInvocation *invocation);
35
36   gboolean (*handle_deflect) (
37     OrgOfonoVoiceCall *object,
38     GDBusMethodInvocation *invocation,
39     const gchar *arg_unnamed_arg0);
40
41   gboolean (*handle_get_properties) (
42     OrgOfonoVoiceCall *object,
43     GDBusMethodInvocation *invocation);
44
45   gboolean (*handle_hangup) (
46     OrgOfonoVoiceCall *object,
47     GDBusMethodInvocation *invocation);
48
49   gboolean (*handle_set_property) (
50     OrgOfonoVoiceCall *object,
51     GDBusMethodInvocation *invocation,
52     const gchar *arg_unnamed_arg0,
53     GVariant *arg_unnamed_arg1);
54
55   void (*disconnect_reason) (
56     OrgOfonoVoiceCall *object,
57     const gchar *arg_unnamed_arg0);
58
59   void (*property_changed) (
60     OrgOfonoVoiceCall *object,
61     const gchar *arg_unnamed_arg0,
62     GVariant *arg_unnamed_arg1);
63
64 };
65
66 GType org_ofono_voice_call_get_type (void) G_GNUC_CONST;
67
68 GDBusInterfaceInfo *org_ofono_voice_call_interface_info (void);
69 guint org_ofono_voice_call_override_properties (GObjectClass *klass, guint property_id_begin);
70
71
72 /* D-Bus method call completion functions: */
73 void org_ofono_voice_call_complete_get_properties (
74     OrgOfonoVoiceCall *object,
75     GDBusMethodInvocation *invocation,
76     GVariant *unnamed_arg0);
77
78 void org_ofono_voice_call_complete_set_property (
79     OrgOfonoVoiceCall *object,
80     GDBusMethodInvocation *invocation);
81
82 void org_ofono_voice_call_complete_answer (
83     OrgOfonoVoiceCall *object,
84     GDBusMethodInvocation *invocation);
85
86 void org_ofono_voice_call_complete_hangup (
87     OrgOfonoVoiceCall *object,
88     GDBusMethodInvocation *invocation);
89
90 void org_ofono_voice_call_complete_deflect (
91     OrgOfonoVoiceCall *object,
92     GDBusMethodInvocation *invocation);
93
94
95
96 /* D-Bus signal emissions functions: */
97 void org_ofono_voice_call_emit_property_changed (
98     OrgOfonoVoiceCall *object,
99     const gchar *arg_unnamed_arg0,
100     GVariant *arg_unnamed_arg1);
101
102 void org_ofono_voice_call_emit_disconnect_reason (
103     OrgOfonoVoiceCall *object,
104     const gchar *arg_unnamed_arg0);
105
106
107
108 /* D-Bus method calls: */
109 void org_ofono_voice_call_call_get_properties (
110     OrgOfonoVoiceCall *proxy,
111     GCancellable *cancellable,
112     GAsyncReadyCallback callback,
113     gpointer user_data);
114
115 gboolean org_ofono_voice_call_call_get_properties_finish (
116     OrgOfonoVoiceCall *proxy,
117     GVariant **out_unnamed_arg0,
118     GAsyncResult *res,
119     GError **error);
120
121 gboolean org_ofono_voice_call_call_get_properties_sync (
122     OrgOfonoVoiceCall *proxy,
123     GVariant **out_unnamed_arg0,
124     GCancellable *cancellable,
125     GError **error);
126
127 void org_ofono_voice_call_call_set_property (
128     OrgOfonoVoiceCall *proxy,
129     const gchar *arg_unnamed_arg0,
130     GVariant *arg_unnamed_arg1,
131     GCancellable *cancellable,
132     GAsyncReadyCallback callback,
133     gpointer user_data);
134
135 gboolean org_ofono_voice_call_call_set_property_finish (
136     OrgOfonoVoiceCall *proxy,
137     GAsyncResult *res,
138     GError **error);
139
140 gboolean org_ofono_voice_call_call_set_property_sync (
141     OrgOfonoVoiceCall *proxy,
142     const gchar *arg_unnamed_arg0,
143     GVariant *arg_unnamed_arg1,
144     GCancellable *cancellable,
145     GError **error);
146
147 void org_ofono_voice_call_call_answer (
148     OrgOfonoVoiceCall *proxy,
149     GCancellable *cancellable,
150     GAsyncReadyCallback callback,
151     gpointer user_data);
152
153 gboolean org_ofono_voice_call_call_answer_finish (
154     OrgOfonoVoiceCall *proxy,
155     GAsyncResult *res,
156     GError **error);
157
158 gboolean org_ofono_voice_call_call_answer_sync (
159     OrgOfonoVoiceCall *proxy,
160     GCancellable *cancellable,
161     GError **error);
162
163 void org_ofono_voice_call_call_hangup (
164     OrgOfonoVoiceCall *proxy,
165     GCancellable *cancellable,
166     GAsyncReadyCallback callback,
167     gpointer user_data);
168
169 gboolean org_ofono_voice_call_call_hangup_finish (
170     OrgOfonoVoiceCall *proxy,
171     GAsyncResult *res,
172     GError **error);
173
174 gboolean org_ofono_voice_call_call_hangup_sync (
175     OrgOfonoVoiceCall *proxy,
176     GCancellable *cancellable,
177     GError **error);
178
179 void org_ofono_voice_call_call_deflect (
180     OrgOfonoVoiceCall *proxy,
181     const gchar *arg_unnamed_arg0,
182     GCancellable *cancellable,
183     GAsyncReadyCallback callback,
184     gpointer user_data);
185
186 gboolean org_ofono_voice_call_call_deflect_finish (
187     OrgOfonoVoiceCall *proxy,
188     GAsyncResult *res,
189     GError **error);
190
191 gboolean org_ofono_voice_call_call_deflect_sync (
192     OrgOfonoVoiceCall *proxy,
193     const gchar *arg_unnamed_arg0,
194     GCancellable *cancellable,
195     GError **error);
196
197
198
199 /* ---- */
200
201 #define TYPE_ORG_OFONO_VOICE_CALL_PROXY (org_ofono_voice_call_proxy_get_type ())
202 #define ORG_OFONO_VOICE_CALL_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_OFONO_VOICE_CALL_PROXY, OrgOfonoVoiceCallProxy))
203 #define ORG_OFONO_VOICE_CALL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_OFONO_VOICE_CALL_PROXY, OrgOfonoVoiceCallProxyClass))
204 #define ORG_OFONO_VOICE_CALL_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_OFONO_VOICE_CALL_PROXY, OrgOfonoVoiceCallProxyClass))
205 #define IS_ORG_OFONO_VOICE_CALL_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_OFONO_VOICE_CALL_PROXY))
206 #define IS_ORG_OFONO_VOICE_CALL_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_OFONO_VOICE_CALL_PROXY))
207
208 typedef struct _OrgOfonoVoiceCallProxy OrgOfonoVoiceCallProxy;
209 typedef struct _OrgOfonoVoiceCallProxyClass OrgOfonoVoiceCallProxyClass;
210 typedef struct _OrgOfonoVoiceCallProxyPrivate OrgOfonoVoiceCallProxyPrivate;
211
212 struct _OrgOfonoVoiceCallProxy
213 {
214   /*< private >*/
215   GDBusProxy parent_instance;
216   OrgOfonoVoiceCallProxyPrivate *priv;
217 };
218
219 struct _OrgOfonoVoiceCallProxyClass
220 {
221   GDBusProxyClass parent_class;
222 };
223
224 GType org_ofono_voice_call_proxy_get_type (void) G_GNUC_CONST;
225
226 #if GLIB_CHECK_VERSION(2, 44, 0)
227 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgOfonoVoiceCallProxy, g_object_unref)
228 #endif
229
230 void org_ofono_voice_call_proxy_new (
231     GDBusConnection     *connection,
232     GDBusProxyFlags      flags,
233     const gchar         *name,
234     const gchar         *object_path,
235     GCancellable        *cancellable,
236     GAsyncReadyCallback  callback,
237     gpointer             user_data);
238 OrgOfonoVoiceCall *org_ofono_voice_call_proxy_new_finish (
239     GAsyncResult        *res,
240     GError             **error);
241 OrgOfonoVoiceCall *org_ofono_voice_call_proxy_new_sync (
242     GDBusConnection     *connection,
243     GDBusProxyFlags      flags,
244     const gchar         *name,
245     const gchar         *object_path,
246     GCancellable        *cancellable,
247     GError             **error);
248
249 void org_ofono_voice_call_proxy_new_for_bus (
250     GBusType             bus_type,
251     GDBusProxyFlags      flags,
252     const gchar         *name,
253     const gchar         *object_path,
254     GCancellable        *cancellable,
255     GAsyncReadyCallback  callback,
256     gpointer             user_data);
257 OrgOfonoVoiceCall *org_ofono_voice_call_proxy_new_for_bus_finish (
258     GAsyncResult        *res,
259     GError             **error);
260 OrgOfonoVoiceCall *org_ofono_voice_call_proxy_new_for_bus_sync (
261     GBusType             bus_type,
262     GDBusProxyFlags      flags,
263     const gchar         *name,
264     const gchar         *object_path,
265     GCancellable        *cancellable,
266     GError             **error);
267
268
269 /* ---- */
270
271 #define TYPE_ORG_OFONO_VOICE_CALL_SKELETON (org_ofono_voice_call_skeleton_get_type ())
272 #define ORG_OFONO_VOICE_CALL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_OFONO_VOICE_CALL_SKELETON, OrgOfonoVoiceCallSkeleton))
273 #define ORG_OFONO_VOICE_CALL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_OFONO_VOICE_CALL_SKELETON, OrgOfonoVoiceCallSkeletonClass))
274 #define ORG_OFONO_VOICE_CALL_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_OFONO_VOICE_CALL_SKELETON, OrgOfonoVoiceCallSkeletonClass))
275 #define IS_ORG_OFONO_VOICE_CALL_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_OFONO_VOICE_CALL_SKELETON))
276 #define IS_ORG_OFONO_VOICE_CALL_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_OFONO_VOICE_CALL_SKELETON))
277
278 typedef struct _OrgOfonoVoiceCallSkeleton OrgOfonoVoiceCallSkeleton;
279 typedef struct _OrgOfonoVoiceCallSkeletonClass OrgOfonoVoiceCallSkeletonClass;
280 typedef struct _OrgOfonoVoiceCallSkeletonPrivate OrgOfonoVoiceCallSkeletonPrivate;
281
282 struct _OrgOfonoVoiceCallSkeleton
283 {
284   /*< private >*/
285   GDBusInterfaceSkeleton parent_instance;
286   OrgOfonoVoiceCallSkeletonPrivate *priv;
287 };
288
289 struct _OrgOfonoVoiceCallSkeletonClass
290 {
291   GDBusInterfaceSkeletonClass parent_class;
292 };
293
294 GType org_ofono_voice_call_skeleton_get_type (void) G_GNUC_CONST;
295
296 #if GLIB_CHECK_VERSION(2, 44, 0)
297 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgOfonoVoiceCallSkeleton, g_object_unref)
298 #endif
299
300 OrgOfonoVoiceCall *org_ofono_voice_call_skeleton_new (void);
301
302
303 G_END_DECLS
304
305 #endif /* __OFONO_VOICECALL_INTERFACE_H__ */