aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/evolution-calendar.idl
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/evolution-calendar.idl')
-rw-r--r--calendar/evolution-calendar.idl15
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/evolution-calendar.idl b/calendar/evolution-calendar.idl
index 8b9878d78e..d2ada802d5 100644
--- a/calendar/evolution-calendar.idl
+++ b/calendar/evolution-calendar.idl
@@ -23,6 +23,17 @@ module Calendar {
/* An unique identifier for a calendar object */
typedef string CalObjUID;
+ /* Sequence of unique identifiers */
+ typedef sequence<CalObjUID> CalObjUIDSeq;
+
+ /* Flags for getting UID sequences */
+ typedef long CalObjType;
+ const CalObjType TYPE_EVENT = 1 << 0;
+ const CalObjType TYPE_TODO = 1 << 1;
+ const CalObjType TYPE_JOURNAL = 1 << 2;
+ const CalObjType TYPE_OTHER = 1 << 3;
+ const CalObjType TYPE_ANY = 0x0f;
+
/* Used to store a time_t */
typedef unsigned long Time_t;
@@ -33,6 +44,7 @@ module Calendar {
* trigger.
*/
struct CalObjInstance {
+ CalObjUID uid;
CalObj calobj;
Time_t start;
Time_t end;
@@ -54,6 +66,9 @@ module Calendar {
CalObj get_object (in CalObjUID uid)
raises (NotFound);
+ /* Gets a list of UIDs based on object type */
+ CalObjUIDSeq get_uids (in CalObjType type);
+
/* Gets the events that occur or recur in the specified time range */
CalObjInstanceSeq get_events_in_range (in Time_t start, in Time_t end)
raises (InvalidRange);