author | mickeyl <mickeyl> | 2004-02-23 13:15:42 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-02-23 13:15:42 (UTC) |
commit | f9f0c26d9ac94586ffc36efa1b582ece3dbc43cf (patch) (unidiff) | |
tree | 4044006e676c78370fdeccf960ea4214f13eabd2 /libopie2/opiepim/otodo.h | |
parent | 2d37d653310da0a9d6e2e2e6c9f5bf092e54cbbb (diff) | |
download | opie-f9f0c26d9ac94586ffc36efa1b582ece3dbc43cf.zip opie-f9f0c26d9ac94586ffc36efa1b582ece3dbc43cf.tar.gz opie-f9f0c26d9ac94586ffc36efa1b582ece3dbc43cf.tar.bz2 |
cosmetics
-rw-r--r-- | libopie2/opiepim/otodo.h | 147 |
1 files changed, 76 insertions, 71 deletions
diff --git a/libopie2/opiepim/otodo.h b/libopie2/opiepim/otodo.h index 61add04..04dd269 100644 --- a/libopie2/opiepim/otodo.h +++ b/libopie2/opiepim/otodo.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | Copyright (C) The Main Author <main-author@whereever.org> | 3 | Copyright (C) The Main Author <main-author@whereever.org> |
4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> | 4 | =. Copyright (C) The Opie Team <opie-devel@handhelds.org> |
5 | .=l. | 5 | .=l. |
6 | .>+-= | 6 | .>+-= |
7 | _;:, .> :=|. This program is free software; you can | 7 | _;:, .> :=|. This program is free software; you can |
8 | .> <`_, > . <= redistribute it and/or modify it under | 8 | .> <`_, > . <= redistribute it and/or modify it under |
@@ -10,24 +10,30 @@ | |||
10 | .="- .-=="i, .._ License as published by the Free Software | 10 | .="- .-=="i, .._ License as published by the Free Software |
11 | - . .-<_> .<> Foundation; either version 2 of the License, | 11 | - . .-<_> .<> Foundation; either version 2 of the License, |
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This program is distributed in the hope that | 14 | .i_,=:_. -<s. This program is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU |
19 | ..}^=.= = ; Library General Public License for more | 19 | ..}^=.= = ; Library General Public License for more |
20 | ++= -. .` .: details. | 20 | ++= -. .` .: details. |
21 | : = ...= . :.=- | 21 | : = ...= . :.=- |
22 | -. .:....=;==+<; You should have received a copy of the GNU | 22 | -. .:....=;==+<; You should have received a copy of the GNU |
23 | -_. . . )=. = Library General Public License along with | 23 | -_. . . )=. = Library General Public License along with |
24 | -- :-=` this library; see the file COPYING.LIB. | 24 | -- :-=` this library; see the file COPYING.LIB. |
25 | If not, write to the Free Software Foundation, | 25 | If not, write to the Free Software Foundation, |
26 | Inc., 59 Temple Place - Suite 330, | 26 | Inc., 59 Temple Place - Suite 330, |
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | #ifndef OPIE_TODO_EVENT_H | ||
30 | #define OPIE_TODO_EVENT_H | ||
31 | 29 | ||
30 | #ifndef OTODOEVENT_H | ||
31 | #define OTODOEVENT_H | ||
32 | 32 | ||
33 | /* OPIE */ | ||
34 | #include <opie2/opimrecord.h> | ||
35 | #include <qpe/recordfields.h> | ||
36 | #include <qpe/palmtopuidgen.h> | ||
37 | |||
38 | /* QT */ | ||
33 | #include <qarray.h> | 39 | #include <qarray.h> |
@@ -39,9 +45,4 @@ | |||
39 | 45 | ||
40 | #include <qpe/recordfields.h> | 46 | namespace Opie |
41 | #include <qpe/palmtopuidgen.h> | 47 | { |
42 | |||
43 | #include <opie2/opimrecord.h> | ||
44 | |||
45 | |||
46 | namespace Opie { | ||
47 | 48 | ||
@@ -51,4 +52,5 @@ class OPimMaintainer; | |||
51 | class OPimNotifyManager; | 52 | class OPimNotifyManager; |
52 | class OTodo : public OPimRecord { | 53 | class OTodo : public OPimRecord |
53 | public: | 54 | { |
55 | public: | ||
54 | typedef QValueList<OTodo> ValueList; | 56 | typedef QValueList<OTodo> ValueList; |
@@ -76,5 +78,5 @@ public: | |||
76 | }; | 78 | }; |
77 | public: | 79 | public: |
78 | // priorities from Very low to very high | 80 | // priorities from Very low to very high |
79 | enum TaskPriority { VeryHigh=1, High, Normal, Low, VeryLow }; | 81 | enum TaskPriority { VeryHigh = 1, High, Normal, Low, VeryLow }; |
80 | 82 | ||
@@ -103,3 +105,3 @@ public: | |||
103 | ushort progress = 0, | 105 | ushort progress = 0, |
104 | bool hasDate = false, QDate date = QDate::currentDate(), | 106 | bool hasDate = false, QDate date = QDate::currentDate(), |
105 | int uid = 0 /* empty */ ); | 107 | int uid = 0 /* empty */ ); |
@@ -109,3 +111,3 @@ public: | |||
109 | */ | 111 | */ |
110 | OTodo(const OTodo & ); | 112 | OTodo( const OTodo & ); |
111 | 113 | ||
@@ -125,4 +127,4 @@ public: | |||
125 | bool hasDueDate() const; | 127 | bool hasDueDate() const; |
126 | bool hasStartDate()const; | 128 | bool hasStartDate() const; |
127 | bool hasCompletedDate()const; | 129 | bool hasCompletedDate() const; |
128 | 130 | ||
@@ -131,3 +133,3 @@ public: | |||
131 | */ | 133 | */ |
132 | int priority()const ; | 134 | int priority() const ; |
133 | 135 | ||
@@ -141,3 +143,3 @@ public: | |||
141 | */ | 143 | */ |
142 | QDate dueDate()const; | 144 | QDate dueDate() const; |
143 | 145 | ||
@@ -146,3 +148,3 @@ public: | |||
146 | */ | 148 | */ |
147 | QDate startDate()const; | 149 | QDate startDate() const; |
148 | 150 | ||
@@ -151,3 +153,3 @@ public: | |||
151 | */ | 153 | */ |
152 | QDate completedDate()const; | 154 | QDate completedDate() const; |
153 | 155 | ||
@@ -156,3 +158,3 @@ public: | |||
156 | */ | 158 | */ |
157 | bool hasState()const; | 159 | bool hasState() const; |
158 | 160 | ||
@@ -161,3 +163,3 @@ public: | |||
161 | */ | 163 | */ |
162 | OPimState state()const; | 164 | OPimState state() const; |
163 | 165 | ||
@@ -166,3 +168,3 @@ public: | |||
166 | */ | 168 | */ |
167 | bool hasRecurrence()const; | 169 | bool hasRecurrence() const; |
168 | 170 | ||
@@ -171,3 +173,3 @@ public: | |||
171 | */ | 173 | */ |
172 | ORecur recurrence()const; | 174 | ORecur recurrence() const; |
173 | 175 | ||
@@ -176,3 +178,3 @@ public: | |||
176 | */ | 178 | */ |
177 | bool hasMaintainer()const; | 179 | bool hasMaintainer() const; |
178 | 180 | ||
@@ -181,3 +183,3 @@ public: | |||
181 | */ | 183 | */ |
182 | OPimMaintainer maintainer()const; | 184 | OPimMaintainer maintainer() const; |
183 | 185 | ||
@@ -186,3 +188,3 @@ public: | |||
186 | */ | 188 | */ |
187 | QString description()const; | 189 | QString description() const; |
188 | 190 | ||
@@ -199,3 +201,3 @@ public: | |||
199 | 201 | ||
200 | bool hasNotifiers()const; | 202 | bool hasNotifiers() const; |
201 | /* | 203 | /* |
@@ -212,3 +214,3 @@ public: | |||
212 | */ | 214 | */ |
213 | const OPimNotifyManager ¬ifiers()const; | 215 | const OPimNotifyManager ¬ifiers() const; |
214 | 216 | ||
@@ -217,5 +219,5 @@ public: | |||
217 | */ | 219 | */ |
218 | QString type()const; | 220 | QString type() const; |
219 | QString toShortText()const; | 221 | QString toShortText() const; |
220 | QString recordField(int id )const; | 222 | QString recordField( int id ) const; |
221 | 223 | ||
@@ -225,3 +227,3 @@ public: | |||
225 | */ | 227 | */ |
226 | QMap<int, QString> toMap()const; | 228 | QMap<int, QString> toMap() const; |
227 | 229 | ||
@@ -230,3 +232,3 @@ public: | |||
230 | */ | 232 | */ |
231 | void setCompleted(bool completed ); | 233 | void setCompleted( bool completed ); |
232 | 234 | ||
@@ -244,3 +246,3 @@ public: | |||
244 | */ | 246 | */ |
245 | void setPriority(int priority ); | 247 | void setPriority( int priority ); |
246 | 248 | ||
@@ -268,4 +270,4 @@ public: | |||
268 | 270 | ||
269 | void setDescription(const QString& ); | 271 | void setDescription( const QString& ); |
270 | void setSummary(const QString& ); | 272 | void setSummary( const QString& ); |
271 | 273 | ||
@@ -275,3 +277,3 @@ public: | |||
275 | */ | 277 | */ |
276 | void setState( const OPimState& state); | 278 | void setState( const OPimState& state ); |
277 | 279 | ||
@@ -285,11 +287,11 @@ public: | |||
285 | 287 | ||
286 | virtual bool match( const QRegExp &r )const; | 288 | virtual bool match( const QRegExp &r ) const; |
287 | 289 | ||
288 | bool operator<(const OTodo &toDoEvent )const; | 290 | bool operator<( const OTodo &toDoEvent ) const; |
289 | bool operator<=(const OTodo &toDoEvent )const; | 291 | bool operator<=( const OTodo &toDoEvent ) const; |
290 | bool operator!=(const OTodo &toDoEvent )const; | 292 | bool operator!=( const OTodo &toDoEvent ) const; |
291 | bool operator>(const OTodo &toDoEvent )const; | 293 | bool operator>( const OTodo &toDoEvent ) const; |
292 | bool operator>=(const OTodo &toDoEvent)const; | 294 | bool operator>=( const OTodo &toDoEvent ) const; |
293 | bool operator==(const OTodo &toDoEvent )const; | 295 | bool operator==( const OTodo &toDoEvent ) const; |
294 | OTodo &operator=(const OTodo &toDoEvent ); | 296 | OTodo &operator=( const OTodo &toDoEvent ); |
295 | 297 | ||
@@ -297,3 +299,3 @@ public: | |||
297 | 299 | ||
298 | private: | 300 | private: |
299 | class OTodoPrivate; | 301 | class OTodoPrivate; |
@@ -308,4 +310,7 @@ public: | |||
308 | }; | 310 | }; |
309 | inline bool OTodo::operator!=(const OTodo &toDoEvent )const { | 311 | |
310 | return !(*this == toDoEvent); | 312 | |
313 | inline bool OTodo::operator!=( const OTodo &toDoEvent ) const | ||
314 | { | ||
315 | return !( *this == toDoEvent ); | ||
311 | } | 316 | } |