aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/idl/evolution-calendar.idl
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/idl/evolution-calendar.idl')
-rw-r--r--calendar/idl/evolution-calendar.idl24
1 files changed, 24 insertions, 0 deletions
diff --git a/calendar/idl/evolution-calendar.idl b/calendar/idl/evolution-calendar.idl
index eda35a3419..b08b8fd07f 100644
--- a/calendar/idl/evolution-calendar.idl
+++ b/calendar/idl/evolution-calendar.idl
@@ -34,6 +34,14 @@ module Calendar {
const CalObjType TYPE_OTHER = 1 << 3;
const CalObjType TYPE_ANY = 0x0f;
+ /* Types of alarms */
+ enum AlarmType {
+ MAIL,
+ PROGRAM,
+ DISPLAY,
+ AUDIO
+ };
+
/* Used to store a time_t */
typedef unsigned long Time_t;
@@ -51,6 +59,16 @@ module Calendar {
typedef sequence<CalObjInstance> CalObjInstanceSeq;
+ /* An alarm trigger instance */
+ struct CalAlarmInstance {
+ CalObjUID uid;
+ AlarmType type;
+ Time_t trigger;
+ Time_t occur;
+ };
+
+ typedef sequence<CalAlarmInstance> CalAlarmInstanceSeq;
+
interface Listener;
/* Calendar client interface */
@@ -73,6 +91,12 @@ module Calendar {
CalObjInstanceSeq get_events_in_range (in Time_t start, in Time_t end)
raises (InvalidRange);
+ /* Gets the objects whose alarms trigger in the specified time
+ * range.
+ */
+ CalAlarmInstanceSeq get_alarms_in_range (in Time_t start, in Time_t end)
+ raises (InvalidRange);
+
/* Updates an object by adding it if it does not exist or by
* changing an existing one.
*/