Diffstat (limited to 'libopie2/opiepim/core/opimnotifymanager.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimnotifymanager.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/libopie2/opiepim/core/opimnotifymanager.h b/libopie2/opiepim/core/opimnotifymanager.h index 0ac30a1..48410e7 100644 --- a/libopie2/opiepim/core/opimnotifymanager.h +++ b/libopie2/opiepim/core/opimnotifymanager.h | |||
@@ -18,37 +18,59 @@ public: | |||
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 | Alarms alarms()const; | 25 | Alarms alarms()const; |
26 | 26 | ||
27 | void setAlarms( const Alarms& ); | 27 | void setAlarms( const Alarms& ); |
28 | void setReminders( const Reminders& ); | 28 | void setReminders( const Reminders& ); |
29 | 29 | ||
30 | /* register is a Ansi C keyword... */ | 30 | /* register is a Ansi C keyword... */ |
31 | /** | 31 | /** |
32 | * This function will register the Notify to the Alarm Server | 32 | * This function will register the Notify to the Alarm Server |
33 | * or datebook depending on the type of the notify | 33 | * or datebook depending on the type of the notify |
34 | */ | 34 | */ |
35 | void registerNotify( const OPimNotify& ); | 35 | void registerNotify( const OPimNotify& ); |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * this will do the opposite.. | 38 | * this will do the opposite.. |
39 | */ | 39 | */ |
40 | void deregister( const OPimNotify& ); | 40 | void deregister( const OPimNotify& ); |
41 | 41 | ||
42 | |||
43 | bool isEmpty()const; | 42 | bool isEmpty()const; |
44 | 43 | ||
44 | /** | ||
45 | * Return all alarms as string | ||
46 | */ | ||
47 | QString alarmsToString() const; | ||
48 | /** | ||
49 | * Return all notifiers as string | ||
50 | */ | ||
51 | QString remindersToString() const; | ||
52 | |||
53 | /** | ||
54 | * Convert string to alarms | ||
55 | * @param str String created by alarmsToString() | ||
56 | */ | ||
57 | void alarmsFromString( const QString& str ); | ||
58 | |||
59 | /** | ||
60 | * Convert string to reminders | ||
61 | * @param str String created by remindersToString() | ||
62 | */ | ||
63 | void remindersFromString( const QString& str ); | ||
64 | |||
65 | |||
66 | |||
45 | private: | 67 | private: |
46 | Reminders m_rem; | 68 | Reminders m_rem; |
47 | Alarms m_al; | 69 | Alarms m_al; |
48 | 70 | ||
49 | class Private; | 71 | class Private; |
50 | Private *d; | 72 | Private *d; |
51 | 73 | ||
52 | }; | 74 | }; |
53 | 75 | ||
54 | #endif | 76 | #endif |