1
/* File: e-gdbus-egdbuscal.h
3
* GType name: EGdbusCal
4
* D-Bus name: org.gnome.evolution.dataserver.Calendar
6
* Generated by GDBus Binding Tool 0.1. DO NOT EDIT.
9
#ifndef __E_GDBUS_E_GDBUS_CAL_H__
10
#define __E_GDBUS_E_GDBUS_CAL_H__
14
#include "e-gdbus-typemappers.h"
17
#define E_GDBUS_TYPE_CAL (e_gdbus_cal_get_type ())
18
#define E_GDBUS_CAL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_GDBUS_TYPE_CAL, EGdbusCal))
19
#define E_GDBUS_IS_CAL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_GDBUS_TYPE_CAL))
20
#define E_GDBUS_CAL_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), E_GDBUS_TYPE_CAL, EGdbusCalIface))
25
* Opaque type representing a proxy or an exported object.
27
typedef struct _EGdbusCal EGdbusCal; /* Dummy typedef */
30
* @parent_iface: The parent interface.
31
* @auth_required: Handler for the #EGdbusCal::auth-required signal.
32
* @backend_error: Handler for the #EGdbusCal::backend-error signal.
33
* @readonly: Handler for the #EGdbusCal::readonly signal.
34
* @mode: Handler for the #EGdbusCal::mode signal.
35
* @handle_get_uri: Handler for the #EGdbusCal::handle-get-uri signal.
36
* @handle_get_cache_dir: Handler for the #EGdbusCal::handle-get-cache-dir signal.
37
* @handle_open: Handler for the #EGdbusCal::handle-open signal.
38
* @handle_refresh: Handler for the #EGdbusCal::handle-refresh signal.
39
* @handle_close: Handler for the #EGdbusCal::handle-close signal.
40
* @handle_remove: Handler for the #EGdbusCal::handle-remove signal.
41
* @handle_is_read_only: Handler for the #EGdbusCal::handle-is-read-only signal.
42
* @handle_get_cal_address: Handler for the #EGdbusCal::handle-get-cal-address signal.
43
* @handle_get_alarm_email_address: Handler for the #EGdbusCal::handle-get-alarm-email-address signal.
44
* @handle_get_ldap_attribute: Handler for the #EGdbusCal::handle-get-ldap-attribute signal.
45
* @handle_get_scheduling_information: Handler for the #EGdbusCal::handle-get-scheduling-information signal.
46
* @handle_set_mode: Handler for the #EGdbusCal::handle-set-mode signal.
47
* @handle_get_default_object: Handler for the #EGdbusCal::handle-get-default-object signal.
48
* @handle_get_object: Handler for the #EGdbusCal::handle-get-object signal.
49
* @handle_get_object_list: Handler for the #EGdbusCal::handle-get-object-list signal.
50
* @handle_get_changes: Handler for the #EGdbusCal::handle-get-changes signal.
51
* @handle_get_free_busy: Handler for the #EGdbusCal::handle-get-free-busy signal.
52
* @handle_discard_alarm: Handler for the #EGdbusCal::handle-discard-alarm signal.
53
* @handle_create_object: Handler for the #EGdbusCal::handle-create-object signal.
54
* @handle_modify_object: Handler for the #EGdbusCal::handle-modify-object signal.
55
* @handle_remove_object: Handler for the #EGdbusCal::handle-remove-object signal.
56
* @handle_receive_objects: Handler for the #EGdbusCal::handle-receive-objects signal.
57
* @handle_send_objects: Handler for the #EGdbusCal::handle-send-objects signal.
58
* @handle_get_attachment_list: Handler for the #EGdbusCal::handle-get-attachment-list signal.
59
* @handle_get_query: Handler for the #EGdbusCal::handle-get-query signal.
60
* @handle_get_timezone: Handler for the #EGdbusCal::handle-get-timezone signal.
61
* @handle_add_timezone: Handler for the #EGdbusCal::handle-add-timezone signal.
62
* @handle_set_default_timezone: Handler for the #EGdbusCal::handle-set-default-timezone signal.
66
typedef struct _EGdbusCalIface EGdbusCalIface;
68
GType e_gdbus_cal_get_type (void) G_GNUC_CONST;
70
/* ---------------------------------------------------------------------- */
72
typedef struct _EGdbusCalProxy EGdbusCalProxy;
73
typedef struct _EGdbusCalProxyClass EGdbusCalProxyClass;
76
* EGdbusCalProxyPrivate:
78
* The #EGdbusCalProxyPrivate structure contains only private data.
80
typedef struct _EGdbusCalProxyPrivate EGdbusCalProxyPrivate;
85
* The #EGdbusCalProxy structure contains only private data and
86
* should only be accessed using the provided API.
88
struct _EGdbusCalProxy
90
GDBusProxy parent_instance;
91
EGdbusCalProxyPrivate *priv;
95
* EGdbusCalProxyClass:
97
* Class structure for #EGdbusCalProxy.
99
struct _EGdbusCalProxyClass
101
GDBusProxyClass parent_class;
104
#define E_GDBUS_TYPE_CAL_PROXY (e_gdbus_cal_proxy_get_type ())
105
GType e_gdbus_cal_proxy_get_type (void) G_GNUC_CONST;
107
void e_gdbus_cal_proxy_new (GDBusConnection *connection,
108
GDBusProxyFlags flags,
110
const gchar *object_path,
111
GCancellable *cancellable,
112
GAsyncReadyCallback callback,
114
EGdbusCal *e_gdbus_cal_proxy_new_finish (GAsyncResult *res,
116
EGdbusCal *e_gdbus_cal_proxy_new_sync (GDBusConnection *connection,
117
GDBusProxyFlags flags,
119
const gchar *object_path,
120
GCancellable *cancellable,
123
void e_gdbus_cal_proxy_new_for_bus (GBusType bus_type,
124
GDBusProxyFlags flags,
126
const gchar *object_path,
127
GCancellable *cancellable,
128
GAsyncReadyCallback callback,
130
EGdbusCal *e_gdbus_cal_proxy_new_for_bus_finish (GAsyncResult *res,
132
EGdbusCal *e_gdbus_cal_proxy_new_for_bus_sync (GBusType bus_type,
133
GDBusProxyFlags flags,
135
const gchar *object_path,
136
GCancellable *cancellable,
139
/* ---------------------------------------------------------------------- */
141
typedef struct _EGdbusCalStub EGdbusCalStub;
142
typedef struct _EGdbusCalStubClass EGdbusCalStubClass;
145
* EGdbusCalStubPrivate:
147
* The #EGdbusCalStubPrivate structure contains only private data.
149
typedef struct _EGdbusCalStubPrivate EGdbusCalStubPrivate;
154
* The #EGdbusCalStub structure contains only private data and
155
* should only be accessed using the provided API.
157
struct _EGdbusCalStub
159
GObject parent_instance;
160
EGdbusCalStubPrivate *priv;
164
* EGdbusCalStubClass:
166
* Class structure for #EGdbusCalStub.
168
struct _EGdbusCalStubClass
170
GObjectClass parent_class;
173
#define E_GDBUS_TYPE_CAL_STUB (e_gdbus_cal_stub_get_type ())
174
GType e_gdbus_cal_stub_get_type (void) G_GNUC_CONST;
176
EGdbusCal *e_gdbus_cal_stub_new (void);
178
guint e_gdbus_cal_register_object (EGdbusCal *object,
179
GDBusConnection *connection,
180
const gchar *object_path,
183
void e_gdbus_cal_drain_notify (EGdbusCal *object);
185
const GDBusInterfaceInfo *e_gdbus_cal_interface_info (void) G_GNUC_CONST;
187
struct _EGdbusCalIface
189
GTypeInterface parent_iface;
191
/* Signal handlers for receiving D-Bus signals: */
192
void (*auth_required) (
194
void (*backend_error) (
196
const gchar *arg_error);
199
gboolean arg_is_readonly);
204
/* Signal handlers for handling D-Bus method calls: */
205
gboolean (*handle_get_uri) (
207
GDBusMethodInvocation *invocation);
208
gboolean (*handle_get_cache_dir) (
210
GDBusMethodInvocation *invocation);
211
gboolean (*handle_open) (
213
GDBusMethodInvocation *invocation,
214
gboolean in_only_if_exists,
215
const gchar *in_username,
216
const gchar *in_password);
217
gboolean (*handle_refresh) (
219
GDBusMethodInvocation *invocation);
220
gboolean (*handle_close) (
222
GDBusMethodInvocation *invocation);
223
gboolean (*handle_remove) (
225
GDBusMethodInvocation *invocation);
226
gboolean (*handle_is_read_only) (
228
GDBusMethodInvocation *invocation);
229
gboolean (*handle_get_cal_address) (
231
GDBusMethodInvocation *invocation);
232
gboolean (*handle_get_alarm_email_address) (
234
GDBusMethodInvocation *invocation);
235
gboolean (*handle_get_ldap_attribute) (
237
GDBusMethodInvocation *invocation);
238
gboolean (*handle_get_scheduling_information) (
240
GDBusMethodInvocation *invocation);
241
gboolean (*handle_set_mode) (
243
GDBusMethodInvocation *invocation,
245
gboolean (*handle_get_default_object) (
247
GDBusMethodInvocation *invocation);
248
gboolean (*handle_get_object) (
250
GDBusMethodInvocation *invocation,
252
const gchar *in_rid);
253
gboolean (*handle_get_object_list) (
255
GDBusMethodInvocation *invocation,
256
const gchar *in_sexp);
257
gboolean (*handle_get_changes) (
259
GDBusMethodInvocation *invocation,
260
const gchar *in_change_id);
261
gboolean (*handle_get_free_busy) (
263
GDBusMethodInvocation *invocation,
264
const gchar * const *in_user_list,
267
gboolean (*handle_discard_alarm) (
269
GDBusMethodInvocation *invocation,
271
const gchar *in_auid);
272
gboolean (*handle_create_object) (
274
GDBusMethodInvocation *invocation,
275
const gchar *in_calobj);
276
gboolean (*handle_modify_object) (
278
GDBusMethodInvocation *invocation,
279
const gchar *in_calobj,
281
gboolean (*handle_remove_object) (
283
GDBusMethodInvocation *invocation,
287
gboolean (*handle_receive_objects) (
289
GDBusMethodInvocation *invocation,
290
const gchar *in_calobj);
291
gboolean (*handle_send_objects) (
293
GDBusMethodInvocation *invocation,
294
const gchar *in_calobj);
295
gboolean (*handle_get_attachment_list) (
297
GDBusMethodInvocation *invocation,
299
const gchar *in_rid);
300
gboolean (*handle_get_query) (
302
GDBusMethodInvocation *invocation,
303
const gchar *in_sexp);
304
gboolean (*handle_get_timezone) (
306
GDBusMethodInvocation *invocation,
307
const gchar *in_tzid);
308
gboolean (*handle_add_timezone) (
310
GDBusMethodInvocation *invocation,
312
gboolean (*handle_set_default_timezone) (
314
GDBusMethodInvocation *invocation,
318
/* C Bindings for properties */
321
void e_gdbus_cal_call_get_uri (
323
GCancellable *cancellable,
324
GAsyncReadyCallback callback,
327
gboolean e_gdbus_cal_call_get_uri_finish (
329
gchar **out_str_uri_copy,
333
gboolean e_gdbus_cal_call_get_uri_sync (
335
gchar **out_str_uri_copy,
336
GCancellable *cancellable,
339
void e_gdbus_cal_call_get_cache_dir (
341
GCancellable *cancellable,
342
GAsyncReadyCallback callback,
345
gboolean e_gdbus_cal_call_get_cache_dir_finish (
351
gboolean e_gdbus_cal_call_get_cache_dir_sync (
354
GCancellable *cancellable,
357
void e_gdbus_cal_call_open (
359
gboolean in_only_if_exists,
360
const gchar *in_username,
361
const gchar *in_password,
362
GCancellable *cancellable,
363
GAsyncReadyCallback callback,
366
gboolean e_gdbus_cal_call_open_finish (
371
gboolean e_gdbus_cal_call_open_sync (
373
gboolean in_only_if_exists,
374
const gchar *in_username,
375
const gchar *in_password,
376
GCancellable *cancellable,
379
void e_gdbus_cal_call_refresh (
381
GCancellable *cancellable,
382
GAsyncReadyCallback callback,
385
gboolean e_gdbus_cal_call_refresh_finish (
390
gboolean e_gdbus_cal_call_refresh_sync (
392
GCancellable *cancellable,
395
void e_gdbus_cal_call_close (
397
GCancellable *cancellable,
398
GAsyncReadyCallback callback,
401
gboolean e_gdbus_cal_call_close_finish (
406
gboolean e_gdbus_cal_call_close_sync (
408
GCancellable *cancellable,
411
void e_gdbus_cal_call_remove (
413
GCancellable *cancellable,
414
GAsyncReadyCallback callback,
417
gboolean e_gdbus_cal_call_remove_finish (
422
gboolean e_gdbus_cal_call_remove_sync (
424
GCancellable *cancellable,
427
void e_gdbus_cal_call_is_read_only (
429
GCancellable *cancellable,
430
GAsyncReadyCallback callback,
433
gboolean e_gdbus_cal_call_is_read_only_finish (
438
gboolean e_gdbus_cal_call_is_read_only_sync (
440
GCancellable *cancellable,
443
void e_gdbus_cal_call_get_cal_address (
445
GCancellable *cancellable,
446
GAsyncReadyCallback callback,
449
gboolean e_gdbus_cal_call_get_cal_address_finish (
455
gboolean e_gdbus_cal_call_get_cal_address_sync (
458
GCancellable *cancellable,
461
void e_gdbus_cal_call_get_alarm_email_address (
463
GCancellable *cancellable,
464
GAsyncReadyCallback callback,
467
gboolean e_gdbus_cal_call_get_alarm_email_address_finish (
473
gboolean e_gdbus_cal_call_get_alarm_email_address_sync (
476
GCancellable *cancellable,
479
void e_gdbus_cal_call_get_ldap_attribute (
481
GCancellable *cancellable,
482
GAsyncReadyCallback callback,
485
gboolean e_gdbus_cal_call_get_ldap_attribute_finish (
491
gboolean e_gdbus_cal_call_get_ldap_attribute_sync (
494
GCancellable *cancellable,
497
void e_gdbus_cal_call_get_scheduling_information (
499
GCancellable *cancellable,
500
GAsyncReadyCallback callback,
503
gboolean e_gdbus_cal_call_get_scheduling_information_finish (
505
gchar **out_capabilities,
509
gboolean e_gdbus_cal_call_get_scheduling_information_sync (
511
gchar **out_capabilities,
512
GCancellable *cancellable,
515
void e_gdbus_cal_call_set_mode (
518
GCancellable *cancellable,
519
GAsyncReadyCallback callback,
522
gboolean e_gdbus_cal_call_set_mode_finish (
527
gboolean e_gdbus_cal_call_set_mode_sync (
530
GCancellable *cancellable,
533
void e_gdbus_cal_call_get_default_object (
535
GCancellable *cancellable,
536
GAsyncReadyCallback callback,
539
gboolean e_gdbus_cal_call_get_default_object_finish (
545
gboolean e_gdbus_cal_call_get_default_object_sync (
548
GCancellable *cancellable,
551
void e_gdbus_cal_call_get_object (
555
GCancellable *cancellable,
556
GAsyncReadyCallback callback,
559
gboolean e_gdbus_cal_call_get_object_finish (
565
gboolean e_gdbus_cal_call_get_object_sync (
570
GCancellable *cancellable,
573
void e_gdbus_cal_call_get_object_list (
575
const gchar *in_sexp,
576
GCancellable *cancellable,
577
GAsyncReadyCallback callback,
580
gboolean e_gdbus_cal_call_get_object_list_finish (
582
gchar ***out_objects,
586
gboolean e_gdbus_cal_call_get_object_list_sync (
588
const gchar *in_sexp,
589
gchar ***out_objects,
590
GCancellable *cancellable,
593
void e_gdbus_cal_call_get_changes (
595
const gchar *in_change_id,
596
GCancellable *cancellable,
597
GAsyncReadyCallback callback,
600
gboolean e_gdbus_cal_call_get_changes_finish (
602
gchar ***out_additions,
603
gchar ***out_modifications,
604
gchar ***out_removals,
608
gboolean e_gdbus_cal_call_get_changes_sync (
610
const gchar *in_change_id,
611
gchar ***out_additions,
612
gchar ***out_modifications,
613
gchar ***out_removals,
614
GCancellable *cancellable,
617
void e_gdbus_cal_call_get_free_busy (
619
const gchar * const *in_user_list,
622
GCancellable *cancellable,
623
GAsyncReadyCallback callback,
626
gboolean e_gdbus_cal_call_get_free_busy_finish (
628
gchar ***out_freebusy,
632
gboolean e_gdbus_cal_call_get_free_busy_sync (
634
const gchar * const *in_user_list,
637
gchar ***out_freebusy,
638
GCancellable *cancellable,
641
void e_gdbus_cal_call_discard_alarm (
644
const gchar *in_auid,
645
GCancellable *cancellable,
646
GAsyncReadyCallback callback,
649
gboolean e_gdbus_cal_call_discard_alarm_finish (
654
gboolean e_gdbus_cal_call_discard_alarm_sync (
657
const gchar *in_auid,
658
GCancellable *cancellable,
661
void e_gdbus_cal_call_create_object (
663
const gchar *in_calobj,
664
GCancellable *cancellable,
665
GAsyncReadyCallback callback,
668
gboolean e_gdbus_cal_call_create_object_finish (
674
gboolean e_gdbus_cal_call_create_object_sync (
676
const gchar *in_calobj,
678
GCancellable *cancellable,
681
void e_gdbus_cal_call_modify_object (
683
const gchar *in_calobj,
685
GCancellable *cancellable,
686
GAsyncReadyCallback callback,
689
gboolean e_gdbus_cal_call_modify_object_finish (
694
gboolean e_gdbus_cal_call_modify_object_sync (
696
const gchar *in_calobj,
698
GCancellable *cancellable,
701
void e_gdbus_cal_call_remove_object (
706
GCancellable *cancellable,
707
GAsyncReadyCallback callback,
710
gboolean e_gdbus_cal_call_remove_object_finish (
715
gboolean e_gdbus_cal_call_remove_object_sync (
720
GCancellable *cancellable,
723
void e_gdbus_cal_call_receive_objects (
725
const gchar *in_calobj,
726
GCancellable *cancellable,
727
GAsyncReadyCallback callback,
730
gboolean e_gdbus_cal_call_receive_objects_finish (
735
gboolean e_gdbus_cal_call_receive_objects_sync (
737
const gchar *in_calobj,
738
GCancellable *cancellable,
741
void e_gdbus_cal_call_send_objects (
743
const gchar *in_calobj,
744
GCancellable *cancellable,
745
GAsyncReadyCallback callback,
748
gboolean e_gdbus_cal_call_send_objects_finish (
755
gboolean e_gdbus_cal_call_send_objects_sync (
757
const gchar *in_calobj,
760
GCancellable *cancellable,
763
void e_gdbus_cal_call_get_attachment_list (
767
GCancellable *cancellable,
768
GAsyncReadyCallback callback,
771
gboolean e_gdbus_cal_call_get_attachment_list_finish (
773
gchar ***out_attachments,
777
gboolean e_gdbus_cal_call_get_attachment_list_sync (
781
gchar ***out_attachments,
782
GCancellable *cancellable,
785
void e_gdbus_cal_call_get_query (
787
const gchar *in_sexp,
788
GCancellable *cancellable,
789
GAsyncReadyCallback callback,
792
gboolean e_gdbus_cal_call_get_query_finish (
798
gboolean e_gdbus_cal_call_get_query_sync (
800
const gchar *in_sexp,
802
GCancellable *cancellable,
805
void e_gdbus_cal_call_get_timezone (
807
const gchar *in_tzid,
808
GCancellable *cancellable,
809
GAsyncReadyCallback callback,
812
gboolean e_gdbus_cal_call_get_timezone_finish (
818
gboolean e_gdbus_cal_call_get_timezone_sync (
820
const gchar *in_tzid,
822
GCancellable *cancellable,
825
void e_gdbus_cal_call_add_timezone (
828
GCancellable *cancellable,
829
GAsyncReadyCallback callback,
832
gboolean e_gdbus_cal_call_add_timezone_finish (
837
gboolean e_gdbus_cal_call_add_timezone_sync (
840
GCancellable *cancellable,
843
void e_gdbus_cal_call_set_default_timezone (
846
GCancellable *cancellable,
847
GAsyncReadyCallback callback,
850
gboolean e_gdbus_cal_call_set_default_timezone_finish (
855
gboolean e_gdbus_cal_call_set_default_timezone_sync (
858
GCancellable *cancellable,
861
/* D-Bus Methods Completion Helpers */
862
void e_gdbus_cal_complete_get_uri (
864
GDBusMethodInvocation *invocation,
865
const gchar *out_str_uri_copy);
867
void e_gdbus_cal_complete_get_cache_dir (
869
GDBusMethodInvocation *invocation,
870
const gchar *out_dirname);
872
void e_gdbus_cal_complete_open (
874
GDBusMethodInvocation *invocation);
876
void e_gdbus_cal_complete_refresh (
878
GDBusMethodInvocation *invocation);
880
void e_gdbus_cal_complete_close (
882
GDBusMethodInvocation *invocation);
884
void e_gdbus_cal_complete_remove (
886
GDBusMethodInvocation *invocation);
888
void e_gdbus_cal_complete_is_read_only (
890
GDBusMethodInvocation *invocation);
892
void e_gdbus_cal_complete_get_cal_address (
894
GDBusMethodInvocation *invocation,
895
const gchar *out_address);
897
void e_gdbus_cal_complete_get_alarm_email_address (
899
GDBusMethodInvocation *invocation,
900
const gchar *out_address);
902
void e_gdbus_cal_complete_get_ldap_attribute (
904
GDBusMethodInvocation *invocation,
905
const gchar *out_address);
907
void e_gdbus_cal_complete_get_scheduling_information (
909
GDBusMethodInvocation *invocation,
910
const gchar *out_capabilities);
912
void e_gdbus_cal_complete_set_mode (
914
GDBusMethodInvocation *invocation);
916
void e_gdbus_cal_complete_get_default_object (
918
GDBusMethodInvocation *invocation,
919
const gchar *out_object);
921
void e_gdbus_cal_complete_get_object (
923
GDBusMethodInvocation *invocation,
924
const gchar *out_object);
926
void e_gdbus_cal_complete_get_object_list (
928
GDBusMethodInvocation *invocation,
929
const gchar * const *out_objects);
931
void e_gdbus_cal_complete_get_changes (
933
GDBusMethodInvocation *invocation,
934
const gchar * const *out_additions,
935
const gchar * const *out_modifications,
936
const gchar * const *out_removals);
938
void e_gdbus_cal_complete_get_free_busy (
940
GDBusMethodInvocation *invocation,
941
const gchar * const *out_freebusy);
943
void e_gdbus_cal_complete_discard_alarm (
945
GDBusMethodInvocation *invocation);
947
void e_gdbus_cal_complete_create_object (
949
GDBusMethodInvocation *invocation,
950
const gchar *out_uid);
952
void e_gdbus_cal_complete_modify_object (
954
GDBusMethodInvocation *invocation);
956
void e_gdbus_cal_complete_remove_object (
958
GDBusMethodInvocation *invocation);
960
void e_gdbus_cal_complete_receive_objects (
962
GDBusMethodInvocation *invocation);
964
void e_gdbus_cal_complete_send_objects (
966
GDBusMethodInvocation *invocation,
967
const gchar * const *out_users,
968
const gchar *out_calobj);
970
void e_gdbus_cal_complete_get_attachment_list (
972
GDBusMethodInvocation *invocation,
973
const gchar * const *out_attachments);
975
void e_gdbus_cal_complete_get_query (
977
GDBusMethodInvocation *invocation,
978
const gchar *out_query);
980
void e_gdbus_cal_complete_get_timezone (
982
GDBusMethodInvocation *invocation,
983
const gchar *out_object);
985
void e_gdbus_cal_complete_add_timezone (
987
GDBusMethodInvocation *invocation);
989
void e_gdbus_cal_complete_set_default_timezone (
991
GDBusMethodInvocation *invocation);
993
/* D-Bus Signal Emission Helpers */
994
void e_gdbus_cal_emit_auth_required (
997
void e_gdbus_cal_emit_backend_error (
999
const gchar *arg_error);
1001
void e_gdbus_cal_emit_readonly (
1003
gboolean arg_is_readonly);
1005
void e_gdbus_cal_emit_mode (
1011
#endif /* __E_GDBUS_E_GDBUS_CAL_H__ */