Diffstat (limited to 'libopie2/opiepim/core/opimnotifymanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimnotifymanager.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libopie2/opiepim/core/opimnotifymanager.h b/libopie2/opiepim/core/opimnotifymanager.h index 48410e7..f3c22f9 100644 --- a/libopie2/opiepim/core/opimnotifymanager.h +++ b/libopie2/opiepim/core/opimnotifymanager.h | |||
@@ -13,26 +13,41 @@ public: | |||
13 | typedef QValueList<OPimReminder> Reminders; | 13 | typedef QValueList<OPimReminder> Reminders; |
14 | typedef QValueList<OPimAlarm> Alarms; | 14 | typedef QValueList<OPimAlarm> Alarms; |
15 | OPimNotifyManager( const Reminders& rems = Reminders(), const Alarms& alarms = Alarms() ); | 15 | OPimNotifyManager( const Reminders& rems = Reminders(), const Alarms& alarms = Alarms() ); |
16 | ~OPimNotifyManager(); | 16 | ~OPimNotifyManager(); |
17 | 17 | ||
18 | /* we will cast it for you ;) */ | 18 | /* we will cast it for you ;) */ |
19 | void add( const OPimNotify& ); | 19 | void add( const OPimNotify& ); |
20 | void remove( const OPimNotify& ); | 20 | void remove( const OPimNotify& ); |
21 | /* replaces all with this one! */ | 21 | /* replaces all with this one! */ |
22 | void replace( const OPimNotify& ); | 22 | void replace( const OPimNotify& ); |
23 | 23 | ||
24 | Reminders reminders()const; | 24 | Reminders reminders()const; |
25 | |||
26 | /** | ||
27 | * Return | ||
28 | */ | ||
25 | Alarms alarms()const; | 29 | Alarms alarms()const; |
26 | 30 | ||
31 | /** | ||
32 | * Return alarm at DateTime "when". If more than one is registered at this | ||
33 | * DateTime, the first one is returned. | ||
34 | * If none was found, an empty Alarm is returned. | ||
35 | * @param when The date and time of the returned alarm | ||
36 | * @param found Returns true if anything was found. | ||
37 | * @return Returns the found alarm at given DateTime. It is empty if found is false | ||
38 | * (nothing could be found at given date and time) | ||
39 | */ | ||
40 | OPimAlarm alarmAtDateTime( const QDateTime& when, bool& found ) const; | ||
41 | |||
27 | void setAlarms( const Alarms& ); | 42 | void setAlarms( const Alarms& ); |
28 | void setReminders( const Reminders& ); | 43 | void setReminders( const Reminders& ); |
29 | 44 | ||
30 | /* register is a Ansi C keyword... */ | 45 | /* register is a Ansi C keyword... */ |
31 | /** | 46 | /** |
32 | * This function will register the Notify to the Alarm Server | 47 | * This function will register the Notify to the Alarm Server |
33 | * or datebook depending on the type of the notify | 48 | * or datebook depending on the type of the notify |
34 | */ | 49 | */ |
35 | void registerNotify( const OPimNotify& ); | 50 | void registerNotify( const OPimNotify& ); |
36 | 51 | ||
37 | /** | 52 | /** |
38 | * this will do the opposite.. | 53 | * this will do the opposite.. |