1/* libecalendar-1.2.vapi generated by vapigen, do not modify. */
2
3[CCode (cprefix = "ECal", gir_namespace = "ECal", gir_version = "1.2", lower_case_cprefix = "e_cal_")]
4namespace ECal {
5	namespace BackendProperty {
6		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_BACKEND_PROPERTY_ALARM_EMAIL_ADDRESS")]
7		public const string ALARM_EMAIL_ADDRESS;
8		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_BACKEND_PROPERTY_CAL_EMAIL_ADDRESS")]
9		public const string CAL_EMAIL_ADDRESS;
10		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_BACKEND_PROPERTY_DEFAULT_OBJECT")]
11		public const string DEFAULT_OBJECT;
12	}
13	[CCode (cheader_filename = "libecal/libecal.h", type_id = "e_cal_client_get_type ()")]
14	public class Client : E.Client, GLib.AsyncInitable, GLib.Initable {
15		[CCode (has_construct_function = false)]
16		public Client (E.Source source, ECal.ClientSourceType source_type) throws GLib.Error;
17		[Version (since = "3.8")]
18		public static async E.Client connect (E.Source source, ECal.ClientSourceType source_type, uint32 wait_for_connected_seconds, GLib.Cancellable? cancellable) throws GLib.Error;
19		[Version (since = "3.8")]
20		public static E.Client connect_sync (E.Source source, ECal.ClientSourceType source_type, uint32 wait_for_connected_seconds, GLib.Cancellable? cancellable = null) throws GLib.Error;
21		public async bool add_timezone (ICal.Timezone zone, GLib.Cancellable cancellable) throws GLib.Error;
22		public bool add_timezone_sync (ICal.Timezone zone, GLib.Cancellable cancellable) throws GLib.Error;
23		public bool check_one_alarm_only ();
24		public bool check_organizer_must_accept ();
25		public bool check_organizer_must_attend ();
26		public bool check_recurrences_no_master ();
27		public bool check_save_schedules ();
28		public static bool check_timezones (ICal.Component comp, GLib.List comps, GLib.Callback tzlookup, void* ecalclient, GLib.Cancellable cancellable) throws GLib.Error;
29		public async bool create_object (ICal.Component icalcomp, GLib.Cancellable? cancellable, out string uid) throws GLib.Error;
30		public bool create_object_sync (ICal.Component icalcomp, out string uid, GLib.Cancellable? cancellable) throws GLib.Error;
31		[CCode (has_construct_function = false)]
32		public Client.@default (ECal.ClientSourceType source_type) throws GLib.Error;
33		public async bool discard_alarm (string uid, string rid, string auid, GLib.Cancellable? cancellable) throws GLib.Error;
34		public bool discard_alarm_sync (string uid, string rid, string auid, GLib.Cancellable? cancellable) throws GLib.Error;
35		public static void free_ecalcomp_slist (GLib.SList<ECal.Component> ecalcomps);
36		public static void free_icalcomp_slist (GLib.SList<ICal.Component> icalcomps);
37		[CCode (has_construct_function = false)]
38		public Client.from_uri (string uri, ECal.ClientSourceType source_type) throws GLib.Error;
39		public void generate_instances (ulong start, ulong end, GLib.Cancellable? cancellable, ECal.RecurInstanceFn cb, void* cb_data, owned GLib.DestroyNotify? destroy_cb_data);
40		public void generate_instances_for_object (ICal.Component icalcomp, time_t start, time_t end, GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] ECal.RecurInstanceFn cb);
41		public void generate_instances_for_object_sync (ICal.Component icalcomp, time_t start, time_t end, [CCode (delegate_target_pos = 4.33333)] ECal.RecurInstanceFn cb);
42		public void generate_instances_sync (ulong start, ulong end, [CCode (delegate_target_pos = 3.33333)] ECal.RecurInstanceFn cb);
43		public async bool get_attachment_uris (string uid, string rid, GLib.Cancellable? cancellable, out GLib.SList attachment_uris) throws GLib.Error;
44		public bool get_attachment_uris_sync (string uid, string rid, GLib.SList attachment_uris, GLib.Cancellable? cancellable) throws GLib.Error;
45		public unowned string get_component_as_string (ICal.Component icalcomp);
46		public async bool get_default_object (GLib.Cancellable? cancellable, out ICal.Component icalcomp) throws GLib.Error;
47		public bool get_default_object_sync (out unowned ICal.Component icalcomp, GLib.Cancellable? cancellable) throws GLib.Error;
48		public unowned ICal.Timezone get_default_timezone ();
49		public async bool get_free_busy (ulong start, ulong end, GLib.SList users, GLib.Cancellable? cancellable) throws GLib.Error;
50		public bool get_free_busy_sync (ulong start, ulong end, GLib.SList users, GLib.Cancellable? cancellable) throws GLib.Error;
51		public unowned string get_local_attachment_store ();
52		public async bool get_object (string uid, string rid, GLib.Cancellable? cancellable, out ICal.Component icalcomp) throws GLib.Error;
53		public async bool get_object_list (string sexp, GLib.Cancellable? cancellable, out GLib.SList<ICal.Component> icalcomps) throws GLib.Error;
54		public async bool get_object_list_as_comps (string sexp, GLib.Cancellable? cancellable, out GLib.SList<ECal.Component> ecalcomps) throws GLib.Error;
55		public bool get_object_list_as_comps_sync (string sexp, out GLib.SList<ECal.Component> ecalcomps, GLib.Cancellable? cancellable) throws GLib.Error;
56		public bool get_object_list_sync (string sexp, out GLib.SList<ICal.Component> icalcomps, GLib.Cancellable? cancellable) throws GLib.Error;
57		public bool get_object_sync (string uid, string rid, out ICal.Component icalcomp, GLib.Cancellable? cancellable) throws GLib.Error;
58		public async bool get_objects_for_uid (string uid, GLib.Cancellable? cancellable, out GLib.SList<ECal.Component> ecalcomps) throws GLib.Error;
59		public bool get_objects_for_uid_sync (string uid, out GLib.SList<ECal.Component> ecalcomps, GLib.Cancellable? cancellable) throws GLib.Error;
60		public ECal.ClientSourceType get_source_type ();
61		public async bool get_timezone (string tzid, GLib.Cancellable? cancellable, out ICal.Timezone zone) throws GLib.Error;
62		public bool get_timezone_sync (string tzid, out ICal.Timezone zone, GLib.Cancellable? cancellable) throws GLib.Error;
63		public async bool get_view (string sexp, GLib.Cancellable? cancellable, out ECal.ClientView view) throws GLib.Error;
64		public bool get_view_sync (string sexp, out ECal.ClientView view, GLib.Cancellable? cancellable) throws GLib.Error;
65		public async bool modify_object (ICal.Component icalcomp, ECal.ObjModType mod, GLib.Cancellable? cancellable) throws GLib.Error;
66		public bool modify_object_sync (ICal.Component icalcomp, ECal.ObjModType mod, GLib.Cancellable? cancellable) throws GLib.Error;
67		public async bool receive_objects (ICal.Component icalcomp, GLib.Cancellable? cancellable) throws GLib.Error;
68		public bool receive_objects_sync (ICal.Component icalcomp, GLib.Cancellable? cancellable) throws GLib.Error;
69		public async bool remove_object (string uid, string rid, ECal.ObjModType mod, GLib.Cancellable? cancellable) throws GLib.Error;
70		public bool remove_object_sync (string uid, string rid, ECal.ObjModType mod, GLib.Cancellable? cancellable) throws GLib.Error;
71		public static unowned ICal.Timezone resolve_tzid_cb (string tzid, void* data);
72		public async bool send_objects (ICal.Component icalcomp, GLib.Cancellable? cancellable, out GLib.SList<string> users, out ICal.Component modified_icalcomp) throws GLib.Error;
73		public bool send_objects_sync (ICal.Component icalcomp, out GLib.SList<string> users, out ICal.Component modified_icalcomp, GLib.Cancellable? cancellable) throws GLib.Error;
74		public bool set_default () throws GLib.Error;
75		public static bool set_default_source (E.Source source, ECal.ClientSourceType source_type) throws GLib.Error;
76		public void set_default_timezone (ICal.Timezone zone);
77		[CCode (has_construct_function = false)]
78		public Client.system (ECal.ClientSourceType source_type) throws GLib.Error;
79		public static unowned ICal.Timezone tzlookup (string tzid, void* ecalclient, GLib.Cancellable cancellable) throws GLib.Error;
80		public static unowned ICal.Timezone tzlookup_icomp (string tzid, void* custom, GLib.Cancellable cancellable) throws GLib.Error;
81		public virtual signal void free_busy_data (void* free_busy_ecalcomps);
82	}
83	[CCode (cheader_filename = "libecal/libecal.h", type_id = "e_cal_client_view_get_type ()")]
84	public class ClientView : GLib.Object {
85		[CCode (has_construct_function = false)]
86		protected ClientView ();
87		public bool is_running ();
88		public void set_fields_of_interest (GLib.SList<string>? fields_of_interest) throws GLib.Error;
89		public void set_flags (ECal.ClientViewFlags flags) throws GLib.Error;
90		public void start () throws GLib.Error;
91		public void stop () throws GLib.Error;
92		public ECal.Client client { get; construct; }
93		[NoAccessorMethod]
94		public void* view { get; construct; }
95		public virtual signal void complete (GLib.Error error);
96		public virtual signal void objects_added (GLib.SList<weak ICal.Component> objects);
97		public virtual signal void objects_modified (GLib.SList<weak ICal.Component> objects);
98		public virtual signal void objects_removed (GLib.SList<weak ECal.ComponentId?> uids);
99		public virtual signal void progress (uint percent, string message);
100	}
101	[CCode (cheader_filename = "libecal/libecal.h", type_id = "e_cal_component_get_type ()")]
102	public class Component : GLib.Object {
103		[CCode (has_construct_function = false)]
104		public Component ();
105		[CCode (has_construct_function = false)]
106		public Component.from_string (string calobj);
107		[CCode (has_construct_function = false)]
108		public Component.from_icalcomponent (ICal.Component icalcomp);
109		public void abort_sequence ();
110		public void add_alarm (ECal.ComponentAlarm alarm);
111		public unowned ECal.Component clone ();
112		public void commit_sequence ();
113		public bool event_dates_match (ECal.Component comp2);
114		public static void free_attendee_list (GLib.SList<ECal.ComponentAttendee> attendee_list);
115		public static void free_categories_list (GLib.SList<string> categ_list);
116		public static void free_datetime (ECal.ComponentDateTime dt);
117		public static void free_exdate_list (GLib.SList exdate_list);
118		public static void free_geo (ICal.Geo geo);
119		public static void free_icaltimetype (ICal.Time t);
120		public static void free_id (ECal.ComponentId id);
121		public static void free_percent (int percent);
122		public static void free_period_list (GLib.SList period_list);
123		public static void free_priority (int priority);
124		public static void free_range (ECal.ComponentRange range);
125		public static void free_recur_list (GLib.SList<ECal.ComponentRange> recur_list);
126		public static void free_sequence (int sequence);
127		public static void free_text_list (GLib.SList<ECal.ComponentText> text_list);
128		public static string gen_uid ();
129		public ECal.ComponentAlarm get_alarm (string auid);
130		public GLib.List<string> get_alarm_uids ();
131		public string get_as_string ();
132		public void get_attachment_list (out GLib.SList<string> attachment_list);
133		public void get_attendee_list (out GLib.SList<ECal.ComponentAttendee?> attendee_list);
134		public void get_categories (out string? categories);
135		public void get_categories_list (out GLib.SList<string> categ_list);
136		public void get_classification (out ECal.ComponentClassification? classif);
137		public void get_comment_list (out GLib.SList<ECal.ComponentText> text_list);
138		public void get_completed (out ICal.Time? t);
139		public void get_contact_list (out GLib.SList<ECal.ComponentText> text_list);
140		public void get_created (out ICal.Time? t);
141		public void get_description_list (out GLib.SList<ECal.ComponentText> text_list);
142		public void get_dtend (out ECal.ComponentDateTime? dt);
143		public void get_dtstamp (out ICal.Time? t);
144		public void get_dtstart (out ECal.ComponentDateTime dt);
145		public void get_due (out ECal.ComponentDateTime? dt);
146		public void get_exdate_list (out GLib.SList<ECal.ComponentDateTime> exdate_list);
147		public void get_exrule_list (out GLib.SList<ICal.Recurrence> recur_list);
148		public void get_exrule_property_list (out GLib.SList<ECal.ComponentRange> recur_list);
149		public void get_geo (out ICal.Geo? geo);
150		public unowned ICal.Component get_icalcomponent ();
151		public ECal.ComponentId get_id ();
152		public void get_last_modified (out ICal.Time? t);
153		public void get_location (out string? location);
154		public int get_num_attachments ();
155		public void get_organizer (out ECal.ComponentOrganizer? organizer);
156		public void get_percent (out int? percent);
157		public int get_percent_as_int ();
158		public void get_priority (out int? priority);
159		public void get_rdate_list (out GLib.SList<ECal.ComponentPeriod> period_list);
160		public void get_recurid (out ECal.ComponentRange? recur_id);
161		public string get_recurid_as_string ();
162		public void get_rrule_list (out GLib.SList<ICal.Recurrence> recur_list);
163		public void get_rrule_property_list (out GLib.SList<ECal.ComponentRange> recur_list);
164		public void get_sequence (out int? sequence);
165		public void get_status (out ICal.PropertyStatus? status);
166		public ECal.ComponentText get_summary ();
167		public void get_transparency (out ECal.ComponentTransparency? transp);
168		public void get_uid (out string uid);
169		public void get_url (out string? url);
170		public ECal.ComponentVType get_vtype ();
171		public bool has_alarms ();
172		public bool has_attachments ();
173		public bool has_attendees ();
174		public bool has_exceptions ();
175		public bool has_exdates ();
176		public bool has_exrules ();
177		public bool has_organizer ();
178		public bool has_rdates ();
179		public bool has_recurrences ();
180		public bool has_rrules ();
181		public bool has_simple_recurrence ();
182		public bool is_instance ();
183		public void remove_alarm (string auid);
184		public void remove_all_alarms ();
185		public void rescan ();
186		public void set_attachment_list (GLib.SList<string> attachment_list);
187		public void set_attendee_list (GLib.SList<ECal.ComponentAttendee> attendee_list);
188		public void set_categories (string categories);
189		public void set_categories_list (GLib.SList<string> categ_list);
190		public void set_classification (ECal.ComponentClassification classif);
191		public void set_comment_list (GLib.SList<ECal.ComponentText> text_list);
192		public void set_completed (ref ICal.Time t);
193		public void set_contact_list (GLib.SList<ECal.ComponentText> text_list);
194		public void set_created (ICal.Time t);
195		public void set_description_list (GLib.SList<ECal.ComponentText> text_list);
196		public void set_dtend (ECal.ComponentDateTime dt);
197		public void set_dtstamp (ICal.Time t);
198		public void set_dtstart (ECal.ComponentDateTime dt);
199		public void set_due (ECal.ComponentDateTime dt);
200		public void set_exdate_list (GLib.SList<ECal.ComponentDateTime>? exdate_list);
201		public void set_exrule_list (GLib.SList<ICal.Recurrence> recur_list);
202		public void set_geo (ICal.Geo* geo);
203		public bool set_icalcomponent (owned ICal.Component icalcomp);
204		public void set_last_modified (ICal.Time t);
205		public void set_location (string location);
206		public void set_new_vtype (ECal.ComponentVType type);
207		public void set_organizer (ECal.ComponentOrganizer organizer);
208		public void set_percent (int percent);
209		[CCode (cname = "e_cal_component_set_percent_as_int")]
210		public void set_percent_complete (int percent);
211		public void set_priority (int priority);
212		public void set_rdate_list (GLib.SList<ECal.ComponentPeriod> period_list);
213		public void set_recurid (ECal.ComponentRange recur_id);
214		public void set_rrule_list (GLib.SList<ICal.Recurrence> recur_list);
215		public void set_sequence (int sequence);
216		public void set_status (ICal.PropertyStatus status);
217		public void set_summary (ECal.ComponentText summary);
218		public void set_transparency (ECal.ComponentTransparency transp);
219		public void set_uid (string uid);
220		public void set_url (string url);
221		public void strip_errors ();
222	}
223	[CCode (cheader_filename = "libecal/libecal.h", free_function = "e_cal_component_alarm_free")]
224	[Compact]
225	public class ComponentAlarm {
226		[CCode (has_construct_function = false)]
227		public ComponentAlarm ();
228		public ECal.ComponentAlarm clone ();
229		public void get_action (out ECal.ComponentAlarmAction action);
230		public void get_attach (out ICal.Attach attach);
231		public void get_attendee_list (out GLib.SList<ECal.ComponentAttendee> attendee_list);
232		public void get_description (out ECal.ComponentText description);
233		public ICal.Component get_icalcomponent ();
234		public void get_repeat (out ECal.ComponentAlarmRepeat repeat);
235		public void get_trigger (out ECal.ComponentAlarmTrigger trigger);
236		public unowned string get_uid ();
237		public bool has_attendees ();
238		public void set_action (ECal.ComponentAlarmAction action);
239		public void set_attach (ICal.Attach attach);
240		public void set_attendee_list (GLib.SList<ECal.ComponentAttendee> attendee_list);
241		public void set_description (ECal.ComponentText description);
242		public void set_repeat (ECal.ComponentAlarmRepeat repeat);
243		public void set_trigger (ECal.ComponentAlarmTrigger trigger);
244	}
245	[CCode (cheader_filename = "libecal/libecal.h")]
246	public struct Change {
247		public weak ECal.Component comp;
248		public ECal.ChangeType type;
249	}
250	[CCode (cheader_filename = "libecal/libecal.h")]
251	public struct ComponentAlarmInstance {
252		public weak string auid;
253		public time_t trigger;
254		public time_t occur_start;
255		public time_t occur_end;
256	}
257	[CCode (cheader_filename = "libecal/libecal.h")]
258	public struct ComponentAlarmRepeat {
259		public int repetitions;
260		public ICal.Duration duration;
261	}
262	[SimpleType]
263	[CCode (cheader_filename = "libecal/libecal.h")]
264	public struct ComponentAlarmTrigger {
265		public ECal.ComponentAlarmTriggerKind type;
266		[CCode(cname = "u.rel_duration")]
267		public ICal.Duration rel_duration;
268		[CCode(cname = "u.abs_time")]
269		public ICal.Time abs_time;
270		[CCode(cname = "_vala_e_cal_component_alarm_trigger_get_kind")]
271		public ECal.ComponentAlarmTriggerKind get_kind () {
272			return type;
273		}
274
275		[CCode(cname = "_vala_e_cal_component_alarm_trigger_set_kind")]
276		public void set_kind (ECal.ComponentAlarmTriggerKind kind) {
277			type = kind;
278		}
279
280		[CCode(cname = "_vala_e_cal_component_alarm_trigger_get_duration")]
281		public unowned ICal.Duration get_duration () {
282			return rel_duration;
283		}
284
285		[CCode(cname = "_vala_e_cal_component_alarm_trigger_set_duration")]
286		public void set_duration (ICal.Duration duration) {
287			rel_duration = duration;
288		}
289	}
290	[CCode (cheader_filename = "libecal/libecal.h", free_function = "e_cal_component_alarms_free")]
291	public struct ComponentAlarms {
292		public weak ECal.Component comp;
293		[CCode (cheader_filename = "libecal/libecal.h")]
294		public weak GLib.SList<ECal.ComponentAlarmInstance> alarms;
295		public void free ();
296	}
297	[CCode (cheader_filename = "libecal/libecal.h", has_type_id = false)]
298	public struct ComponentAttendee {
299		public weak string value;
300		public weak string member;
301		public ICal.ParameterCutype cutype;
302		public ICal.ParameterRole role;
303		public ICal.ParameterPartstat status;
304		public bool rsvp;
305		public weak string delto;
306		public weak string delfrom;
307		public weak string sentby;
308		public weak string cn;
309		public weak string language;
310	}
311	[CCode (cheader_filename = "libecal/libecal.h", free_function = "e_cal_component_free_datetime", has_copy_function = false, has_destroy_function = false)]
312	public struct ComponentDateTime {
313		public ICal.Time? value;
314		public weak string tzid;
315		[CCode (cname = "_vala_e_cal_component_get_value")]
316		public unowned ICal.Time? get_value () {
317			return value;
318		}
319	}
320	[CCode (cheader_filename = "libecal/libecal.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "e_cal_component_id_get_type ()")]
321	[Compact]
322	public class ComponentId {
323		[CCode (has_construct_function = false)]
324		[Version (since = "3.10")]
325		public ComponentId (string uid, string? rid);
326		[Version (since = "3.10")]
327		public ECal.ComponentId copy ();
328		[Version (since = "3.10")]
329		public bool equal (ECal.ComponentId id2);
330		[Version (since = "3.10")]
331		public uint hash ();
332		public weak string uid;
333		public weak string? rid;
334		[CCode (cname = "_vala_e_cal_component_id_get_uid")]
335		public unowned string get_uid () {
336			return this.uid;
337		}
338		[CCode (cname = "_vala_e_cal_component_id_get_rid")]
339		public unowned string? get_rid () {
340			return this.rid;
341		}
342	}
343	[CCode (cheader_filename = "libecal/libecal.h")]
344	public struct ComponentOrganizer {
345		public weak string value;
346		public weak string sentby;
347		public weak string cn;
348		public weak string language;
349	}
350	[CCode (cheader_filename = "libecal/libecal.h")]
351	public struct ComponentPeriod {
352		public ECal.ComponentPeriodType type;
353		[CCode (cheader_filename = "libecal/libecal.h")]
354		public ICal.Time start;
355		[CCode(cname = "u.duration")]
356		public ICal.Duration duration;
357		[CCode(cname = "u.end")]
358		public ICal.Time end;
359	}
360	[CCode (cheader_filename = "libecal/libecal.h", free_function = "e_cal_component_free_range")]
361	public struct ComponentRange {
362		public ECal.ComponentRangeType type;
363		public ECal.ComponentDateTime datetime;
364	}
365	[CCode (cheader_filename = "libecal/libecal.h")]
366	public struct ComponentText {
367		public weak string value;
368		public weak string altrep;
369		[CCode (cname = "_vala_e_cal_component_text_get_altrep")]
370		public unowned string get_altrep () {
371			return this.altrep;
372		}
373		[CCode (cname = "_vala_e_cal_component_text_get_value")]
374		public unowned string get_value () {
375			return this.value;
376		}
377	}
378	[CCode (cheader_filename = "libecal/libecal.h")]
379	public struct ObjInstance {
380		public weak string uid;
381		public ulong start;
382		public ulong end;
383		[CCode (cname = "cal_obj_instance_list_free")]
384		public static void list_free (GLib.List list);
385	}
386	[CCode (cheader_filename = "libecal/libecal.h", type_id = "e_timezone_cache_get_type")]
387	public interface TimezoneCache {
388		public void add_timezone (ICal.Timezone zone);
389		public ICal.Timezone get_timezone (string tzid);
390		public GLib.List<ICal.Timezone> list_timezones ();
391		public signal void timezone_added (ICal.Timezone zone);
392	}
393	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_CHANGE_", type_id = "e_cal_change_type_get_type ()")]
394	public enum ChangeType {
395		ADDED,
396		MODIFIED,
397		DELETED
398	}
399	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_CLIENT_ERROR_")]
400	public errordomain ClientError {
401		NO_SUCH_CALENDAR,
402		OBJECT_NOT_FOUND,
403		INVALID_OBJECT,
404		UNKNOWN_USER,
405		OBJECT_ID_ALREADY_EXISTS,
406		INVALID_RANGE;
407		public static GLib.Error create (ECal.ClientError code, string custom_msg);
408		public static GLib.Quark quark ();
409		public static unowned string to_string (ECal.ClientError code);
410	}
411	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_CLIENT_SOURCE_TYPE_", type_id = "e_cal_client_source_type_get_type ()")]
412	public enum ClientSourceType {
413		EVENTS,
414		TASKS,
415		MEMOS,
416		LAST
417	}
418	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_ALARM_", has_type_id = false)]
419	public enum ComponentAlarmAction {
420		NONE,
421		AUDIO,
422		DISPLAY,
423		EMAIL,
424		PROCEDURE,
425		UNKNOWN
426	}
427	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_CLIENT_VIEW_FLAGS_")]
428	[Flags]
429	public enum ClientViewFlags {
430		NONE,
431		NOTIFY_INITIAL
432	}
433	[CCode (cheader_filename = "libecal/libecal.h", cname = "ECalComponentAlarmTriggerType", cprefix = "E_CAL_COMPONENT_ALARM_TRIGGER_", has_type_id = false)]
434	public enum ComponentAlarmTriggerKind {
435		NONE,
436		RELATIVE_START,
437		RELATIVE_END,
438		ABSOLUTE
439	}
440	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_CLASS_", has_type_id = false)]
441	public enum ComponentClassification {
442		NONE,
443		PUBLIC,
444		PRIVATE,
445		CONFIDENTIAL,
446		UNKNOWN
447	}
448	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_FIELD_", has_type_id = false)]
449	public enum ComponentField {
450		CATEGORIES,
451		CLASSIFICATION,
452		COMPLETED,
453		DTEND,
454		DTSTART,
455		DUE,
456		GEO,
457		PERCENT,
458		PRIORITY,
459		SUMMARY,
460		TRANSPARENCY,
461		URL,
462		HAS_ALARMS,
463		ICON,
464		COMPLETE,
465		RECURRING,
466		OVERDUE,
467		COLOR,
468		STATUS,
469		COMPONENT,
470		LOCATION,
471		NUM_FIELDS
472	}
473	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_PERIOD_", has_type_id = false)]
474	public enum ComponentPeriodType {
475		DATETIME,
476		DURATION
477	}
478	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_RANGE_", has_type_id = false)]
479	public enum ComponentRangeType {
480		SINGLE,
481		THISPRIOR,
482		THISFUTURE
483	}
484	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_TRANSP_", has_type_id = false)]
485	public enum ComponentTransparency {
486		NONE,
487		TRANSPARENT,
488		OPAQUE,
489		UNKNOWN
490	}
491	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_COMPONENT_", has_type_id = false)]
492	public enum ComponentVType {
493		NO_TYPE,
494		EVENT,
495		TODO,
496		JOURNAL,
497		FREEBUSY,
498		TIMEZONE
499	}
500	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_LOAD_", has_type_id = false)]
501	public enum LoadState {
502		NOT_LOADED,
503		AUTHENTICATING,
504		LOADING,
505		LOADED
506	}
507	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "CAL_MODE_", has_type_id = false)]
508	public enum Mode {
509		INVALID,
510		LOCAL,
511		REMOTE,
512		ANY
513	}
514	[CCode (cheader_filename = "libecal/libecal.h", cname="CalObjModType", cprefix = "E_CAL_OBJ_MOD_", has_type_id = false)]
515	[Flags]
516	public enum ObjModType {
517		THIS,
518		THIS_AND_PRIOR,
519		THIS_AND_FUTURE,
520		ONLY_THIS,
521		ALL
522	}
523	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_SET_MODE_", has_type_id = false)]
524	public enum SetModeStatus {
525		SUCCESS,
526		ERROR,
527		NOT_SUPPORTED
528	}
529	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CAL_SOURCE_TYPE_", has_type_id = false)]
530	public enum SourceType {
531		EVENT,
532		TODO,
533		JOURNAL,
534		LAST
535	}
536	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "E_CALENDAR_STATUS_", type_id = "e_calendar_status_get_type ()")]
537	public enum CalendarStatus {
538		OK,
539		INVALID_ARG,
540		BUSY,
541		REPOSITORY_OFFLINE,
542		NO_SUCH_CALENDAR,
543		OBJECT_NOT_FOUND,
544		INVALID_OBJECT,
545		URI_NOT_LOADED,
546		URI_ALREADY_LOADED,
547		PERMISSION_DENIED,
548		UNKNOWN_USER,
549		OBJECT_ID_ALREADY_EXISTS,
550		PROTOCOL_NOT_SUPPORTED,
551		CANCELLED,
552		COULD_NOT_CANCEL,
553		AUTHENTICATION_FAILED,
554		AUTHENTICATION_REQUIRED,
555		DBUS_EXCEPTION,
556		OTHER_ERROR,
557		INVALID_SERVER_VERSION,
558		NOT_SUPPORTED
559	}
560	namespace StaticCapability {
561		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_CREATE_MESSAGES")]
562		public const string CREATE_MESSAGES;
563		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_DELEGATE_SUPPORTED")]
564		public const string DELEGATE_SUPPORTED;
565		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_DELEGATE_TO_MANY")]
566		public const string DELEGATE_TO_MANY;
567		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_HAS_UNACCEPTED_MEETING")]
568		public const string HAS_UNACCEPTED_MEETING;
569		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_ALARM_REPEAT")]
570		public const string NO_ALARM_REPEAT;
571		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_AUDIO_ALARMS")]
572		public const string NO_AUDIO_ALARMS;
573		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK")]
574		public const string NO_CONV_TO_ASSIGN_TASK;
575		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_CONV_TO_RECUR")]
576		public const string NO_CONV_TO_RECUR;
577		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_DISPLAY_ALARMS")]
578		public const string NO_DISPLAY_ALARMS;
579		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS")]
580		public const string NO_EMAIL_ALARMS;
581		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_GEN_OPTIONS")]
582		public const string NO_GEN_OPTIONS;
583		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_ORGANIZER")]
584		public const string NO_ORGANIZER;
585		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_PROCEDURE_ALARMS")]
586		public const string NO_PROCEDURE_ALARMS;
587		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT")]
588		public const string NO_TASK_ASSIGNMENT;
589		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_THISANDFUTURE")]
590		public const string NO_THISANDFUTURE;
591		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_THISANDPRIOR")]
592		public const string NO_THISANDPRIOR;
593		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_NO_TRANSPARENCY")]
594		public const string NO_TRANSPARENCY;
595		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_ONE_ALARM_ONLY")]
596		public const string ONE_ALARM_ONLY;
597		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ACCEPT")]
598		public const string ORGANIZER_MUST_ACCEPT;
599		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ATTEND")]
600		public const string ORGANIZER_MUST_ATTEND;
601		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS")]
602		public const string ORGANIZER_NOT_EMAIL_ADDRESS;
603		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_RECURRENCES_NO_MASTER")]
604		public const string RECURRENCES_NO_MASTER;
605		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_REFRESH_SUPPORTED")]
606		public const string REFRESH_SUPPORTED;
607		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_REMOVE_ALARMS")]
608		public const string REMOVE_ALARMS;
609		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_REMOVE_ONLY_THIS")]
610		public const string REMOVE_ONLY_THIS;
611		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS")]
612		public const string REQ_SEND_OPTIONS;
613		[CCode (cheader_filename = "libecal/libecal.h", cname = "CAL_STATIC_CAPABILITY_SAVE_SCHEDULES")]
614		public const string SAVE_SCHEDULES;
615	}
616	[CCode (cheader_filename = "libecal/libecal.h", cprefix = "", has_type_id = false)]
617	public enum DataCalMode {
618		Local,
619		Remote,
620		AnyMode
621	}
622	[CCode (cheader_filename = "libecal/libecal.h", instance_pos = 3.9)]
623	public delegate bool RecurInstanceCb (ICal.Component icomp, ICal.Time instance_start, ICal.Time instance_end, GLib.Cancellable? cancellable = null) throws GLib.Error;
624	[CCode (cheader_filename = "libecal/libecal.h", instance_pos = 1.9)]
625	public delegate unowned ICal.Timezone? RecurResolveTimezoneCb (string tzid, GLib.Cancellable? cancellable = null) throws GLib.Error;
626	[CCode (cheader_filename = "libecal/libecal.h")]
627	public delegate bool RecurInstanceFn (ECal.Component comp, time_t instance_start, time_t instance_end);
628	[CCode (cheader_filename = "libecal/libecal.h")]
629	public delegate ICal.Timezone RecurResolveTimezoneFn (string tzid);
630	[CCode (cheader_filename = "libecal/libecal.h")]
631	public delegate ICal.Timezone TzLookup (string tzid, ECal.Client ecalclient, GLib.Cancellable? cancellable = null) throws GLib.Error;
632	[CCode (cheader_filename = "libecal/libecal.h", cname = "cal_obj_uid_list_free")]
633	public static void cal_obj_uid_list_free (GLib.List list);
634	public static string cal_system_timezone_get_location ();
635	[CCode (cheader_filename = "libecal/libecal.h", cname = "isodate_from_time_t")]
636	public static unowned string isodate_from_time_t (time_t t);
637	[CCode (cheader_filename = "libecal/libecal.h")]
638	public static bool recur_generate_instances_sync (ICal.Component icalcomp, ICal.Time interval_start, ICal.Time interval_end, [CCode (delegate_target_pos = 4.5)] ECal.RecurInstanceCb? callback, [CCode (delegate_target_pos = 5.5)] ECal.RecurResolveTimezoneCb? get_tz_callback, ICal.Timezone default_timezone, GLib.Cancellable? cancellable = null) throws GLib.Error;
639	namespace Util {
640		[CCode (cheader_filename = "libecal/libecal.h", cname = "icaltimetype_to_tm")]
641		public static Posix.tm icaltimetype_to_tm (ICal.Time itt);
642		[CCode (cheader_filename = "libecal/libecal.h", cname = "icaltimetype_to_tm_with_zone")]
643		public static Posix.tm icaltimetype_to_tm_with_zone (ICal.Time itt, ICal.Timezone from_zone, ICal.Timezone to_zone);
644		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_add_day")]
645		public static time_t time_add_day (time_t time, int days);
646		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_add_day_with_zone")]
647		public static time_t time_add_day_with_zone (time_t time, int days, ICal.Timezone zone);
648		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_add_month_with_zone")]
649		public static time_t time_add_month_with_zone (time_t time, int months, ICal.Timezone zone);
650		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_add_week")]
651		public static time_t time_add_week (time_t time, int weeks);
652		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_add_week_with_zone")]
653		public static time_t time_add_week_with_zone (time_t time, int weeks, ICal.Timezone zone);
654		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_begin")]
655		public static time_t time_day_begin (time_t t);
656		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_begin_with_zone")]
657		public static time_t time_day_begin_with_zone (time_t time, ICal.Timezone zone);
658		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_end")]
659		public static time_t time_day_end (time_t t);
660		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_end_with_zone")]
661		public static time_t time_day_end_with_zone (time_t time, ICal.Timezone zone);
662		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_of_week")]
663		public static int time_day_of_week (int day, int month, int year);
664		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_day_of_year")]
665		public static int time_day_of_year (int day, int month, int year);
666		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_days_in_month")]
667		public static int time_days_in_month (int year, int month);
668		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_from_isodate")]
669		public static time_t time_from_isodate (string str);
670		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_is_leap_year")]
671		public static bool time_is_leap_year (int year);
672		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_leap_years_up_to")]
673		public static int time_leap_years_up_to (int year);
674		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_month_begin_with_zone")]
675		public static time_t time_month_begin_with_zone (time_t time, ICal.Timezone zone);
676		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_to_gdate_with_zone")]
677		public static void time_to_gdate_with_zone (GLib.Date date, time_t time, ICal.Timezone zone);
678		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_week_begin_with_zone")]
679		public static time_t time_week_begin_with_zone (time_t time, int week_start_day, ICal.Timezone zone);
680		[CCode (cheader_filename = "libecal/libecal.h", cname = "time_year_begin_with_zone")]
681		public static time_t time_year_begin_with_zone (time_t time, ICal.Timezone zone);
682		[CCode (cheader_filename = "libecal/libecal.h", cname = "tm_to_icaltimetype")]
683		public static ICal.Time tm_to_icaltimetype (Posix.tm time, bool is_date);
684		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_get_system_timezone_location")]
685		public static string get_system_timezone_location ();
686		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_get_system_timezone")]
687		public static unowned ICal.Timezone get_system_timezone ();
688		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_priority_from_string")]
689		public static int priority_from_string (string string);
690		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_priority_to_string")]
691		public static unowned string priority_to_string (int priority);
692		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_new_component")]
693		public static ICal.Component new_component (ICal.ComponentKind kind);
694		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_parse_ics_string")]
695		public static ICal.Component parse_ics_string (string string);
696		[CCode (cheader_filename = "libecal/libecal.h", cname = "e_cal_util_parse_ics_file")]
697		public static ICal.Component parse_ics_file (string filename);
698		public static bool cal_client_check_timezones (ICal.Component comp, GLib.List<ICal.Component> comps, TzLookup tzlookup, ECal.Client ecalclient, GLib.Cancellable? cancellable = null) throws GLib.Error;
699	}
700}
701