Diffstat (limited to 'libopie2/opiepim/core/opimnotify.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimnotify.h | 67 |
1 files changed, 36 insertions, 31 deletions
diff --git a/libopie2/opiepim/core/opimnotify.h b/libopie2/opiepim/core/opimnotify.h index fed3970..d0e40ca 100644 --- a/libopie2/opiepim/core/opimnotify.h +++ b/libopie2/opiepim/core/opimnotify.h | |||
@@ -28,5 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | #ifndef OPIE_PIM_NOTIFY_H | ||
30 | #define OPIE_PIM_NOTIFY_H | ||
31 | 29 | ||
30 | #ifndef OPIMNOTIFY_H | ||
31 | #define OPIMNOTIFY_H | ||
32 | |||
33 | /* QT */ | ||
32 | #include <qdatetime.h> | 34 | #include <qdatetime.h> |
@@ -34,4 +36,4 @@ | |||
34 | 36 | ||
35 | 37 | namespace Opie | |
36 | namespace Opie { | 38 | { |
37 | /** | 39 | /** |
@@ -49,4 +51,6 @@ namespace Opie { | |||
49 | */ | 51 | */ |
50 | class OPimNotify { | 52 | class OPimNotify |
51 | public: | 53 | { |
54 | |||
55 | public: | ||
52 | typedef QValueList<OPimNotify> ValueList; | 56 | typedef QValueList<OPimNotify> ValueList; |
@@ -56,10 +60,10 @@ public: | |||
56 | 60 | ||
57 | OPimNotify &operator=(const OPimNotify& ); | 61 | OPimNotify &operator=( const OPimNotify& ); |
58 | bool operator==( const OPimNotify& ); | 62 | bool operator==( const OPimNotify& ); |
59 | 63 | ||
60 | virtual QString type()const = 0; | 64 | virtual QString type() const = 0; |
61 | 65 | ||
62 | /** start date */ | 66 | /** start date */ |
63 | QDateTime dateTime()const; | 67 | QDateTime dateTime() const; |
64 | QString service()const; | 68 | QString service() const; |
65 | 69 | ||
@@ -68,3 +72,3 @@ public: | |||
68 | */ | 72 | */ |
69 | int parent()const; | 73 | int parent() const; |
70 | 74 | ||
@@ -73,3 +77,3 @@ public: | |||
73 | */ | 77 | */ |
74 | int duration()const; | 78 | int duration() const; |
75 | 79 | ||
@@ -78,3 +82,3 @@ public: | |||
78 | */ | 82 | */ |
79 | QDateTime endTime()const; | 83 | QDateTime endTime() const; |
80 | 84 | ||
@@ -82,3 +86,3 @@ public: | |||
82 | void setDuration( int dur ); | 86 | void setDuration( int dur ); |
83 | void setParent(int uid ); | 87 | void setParent( int uid ); |
84 | void setService( const QString& ); | 88 | void setService( const QString& ); |
@@ -86,3 +90,3 @@ public: | |||
86 | 90 | ||
87 | private: | 91 | private: |
88 | inline void copyIntern(); | 92 | inline void copyIntern(); |
@@ -102,5 +106,6 @@ private: | |||
102 | */ | 106 | */ |
103 | class OPimAlarm : public OPimNotify { | 107 | class OPimAlarm : public OPimNotify |
104 | public: | 108 | { |
105 | enum Sound{Loud=1, Silent=0, Custom=2 }; | 109 | public: |
110 | enum Sound{Loud = 1, Silent = 0, Custom = 2 }; | ||
106 | OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); | 111 | OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); |
@@ -111,6 +116,6 @@ public: | |||
111 | bool operator==( const OPimAlarm& ); | 116 | bool operator==( const OPimAlarm& ); |
112 | QString type()const; | 117 | QString type() const; |
113 | 118 | ||
114 | int sound()const; | 119 | int sound() const; |
115 | QString file()const; | 120 | QString file() const; |
116 | 121 | ||
@@ -120,3 +125,3 @@ public: | |||
120 | 125 | ||
121 | private: | 126 | private: |
122 | void deref(); | 127 | void deref(); |
@@ -137,5 +142,5 @@ private: | |||
137 | */ | 142 | */ |
138 | class OPimReminder : public OPimNotify { | 143 | class OPimReminder : public OPimNotify |
139 | public: | 144 | { |
140 | 145 | public: | |
141 | /** | 146 | /** |
@@ -147,8 +152,8 @@ public: | |||
147 | */ | 152 | */ |
148 | OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), | 153 | OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), |
149 | int duration = 0, int parent = 0 ); | 154 | int duration = 0, int parent = 0 ); |
150 | OPimReminder( const OPimReminder& ); | 155 | OPimReminder( const OPimReminder& ); |
151 | OPimReminder &operator=(const OPimReminder& ); | 156 | OPimReminder &operator=( const OPimReminder& ); |
152 | 157 | ||
153 | QString type()const; | 158 | QString type() const; |
154 | 159 | ||
@@ -160,6 +165,6 @@ public: | |||
160 | */ | 165 | */ |
161 | int recordUid()const; | 166 | int recordUid() const; |
162 | void setRecordUid( int uid ); | 167 | void setRecordUid( int uid ); |
163 | 168 | ||
164 | private: | 169 | private: |
165 | void deref(); | 170 | void deref(); |