summaryrefslogtreecommitdiff
path: root/libopie2/opiepim/core/opimnotifymanager.h
authoreilers <eilers>2004-01-16 13:37:03 (UTC)
committer eilers <eilers>2004-01-16 13:37:03 (UTC)
commit839775ea257f2c9be752a77c41a09416469df591 (patch) (unidiff)
treed856530aad005f66adae3634bd384d3d02bb6c95 /libopie2/opiepim/core/opimnotifymanager.h
parentf7936b488e81f8706c4ea900979f2ea70734cfe9 (diff)
downloadopie-839775ea257f2c9be752a77c41a09416469df591.zip
opie-839775ea257f2c9be752a77c41a09416469df591.tar.gz
opie-839775ea257f2c9be752a77c41a09416469df591.tar.bz2
Some changes to handle alarms for datebook-sql db..
Diffstat (limited to 'libopie2/opiepim/core/opimnotifymanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/core/opimnotifymanager.h15
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
@@ -1,50 +1,65 @@
1#ifndef OPIE_PIM_NOTIFY_MANAGER_H 1#ifndef OPIE_PIM_NOTIFY_MANAGER_H
2#define OPIE_PIM_NOTIFY_MANAGER_H 2#define OPIE_PIM_NOTIFY_MANAGER_H
3 3
4#include <qvaluelist.h> 4#include <qvaluelist.h>
5 5
6#include <opie/opimnotify.h> 6#include <opie/opimnotify.h>
7 7
8/** 8/**
9 * The notify manager keeps track of the Notifiers.... 9 * The notify manager keeps track of the Notifiers....
10 */ 10 */
11class OPimNotifyManager { 11class OPimNotifyManager {
12public: 12public:
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..
39 */ 54 */
40 void deregister( const OPimNotify& ); 55 void deregister( const OPimNotify& );
41 56
42 bool isEmpty()const; 57 bool isEmpty()const;
43 58
44 /** 59 /**
45 * Return all alarms as string 60 * Return all alarms as string
46 */ 61 */
47 QString alarmsToString() const; 62 QString alarmsToString() const;
48 /** 63 /**
49 * Return all notifiers as string 64 * Return all notifiers as string
50 */ 65 */