-rw-r--r-- | libopie2/opiepim/oevent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiepim/oevent.h b/libopie2/opiepim/oevent.h index 4489be7..c718e2e 100644 --- a/libopie2/opiepim/oevent.h +++ b/libopie2/opiepim/oevent.h | |||
@@ -4,38 +4,38 @@ | |||
4 | #define OPIE_PIM_EVENT_H | 4 | #define OPIE_PIM_EVENT_H |
5 | 5 | ||
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qdatetime.h> | 7 | #include <qdatetime.h> |
8 | #include <qvaluelist.h> | 8 | #include <qvaluelist.h> |
9 | 9 | ||
10 | #include <qpe/recordfields.h> | 10 | #include <qpe/recordfields.h> |
11 | #include <qpe/palmtopuidgen.h> | 11 | #include <qpe/palmtopuidgen.h> |
12 | 12 | ||
13 | #include "otimezone.h" | 13 | #include "otimezone.h" |
14 | #include "opimrecord.h" | 14 | #include "opimrecord.h" |
15 | 15 | ||
16 | namespace OCalendarHelper { | 16 | struct OCalendarHelper { |
17 | /** calculate the week number of the date */ | 17 | /** calculate the week number of the date */ |
18 | static int week( const QDate& ); | 18 | static int week( const QDate& ); |
19 | /** calculate the occurence of week days since the start of the month */ | 19 | /** calculate the occurence of week days since the start of the month */ |
20 | static int ocurrence( const QDate& ); | 20 | static int ocurrence( const QDate& ); |
21 | 21 | ||
22 | // returns the dayOfWeek for the *first* day it finds (ignores | 22 | // returns the dayOfWeek for the *first* day it finds (ignores |
23 | // any further days!). Returns 1 (Monday) if there isn't any day found | 23 | // any further days!). Returns 1 (Monday) if there isn't any day found |
24 | static int dayOfWeek( char day ); | 24 | static int dayOfWeek( char day ); |
25 | 25 | ||
26 | /** returns the diff of month */ | 26 | /** returns the diff of month */ |
27 | static int monthDiff( const QDate& first, const QDate& second ); | 27 | static int monthDiff( const QDate& first, const QDate& second ); |
28 | 28 | ||
29 | } | 29 | }; |
30 | 30 | ||
31 | class OPimNotifyManager; | 31 | class OPimNotifyManager; |
32 | class ORecur; | 32 | class ORecur; |
33 | class OEvent : public OPimRecord { | 33 | class OEvent : public OPimRecord { |
34 | public: | 34 | public: |
35 | typedef QValueList<OEvent> ValueList; | 35 | typedef QValueList<OEvent> ValueList; |
36 | enum RecordFields { | 36 | enum RecordFields { |
37 | Uid = Qtopia::UID_ID, | 37 | Uid = Qtopia::UID_ID, |
38 | Category = Qtopia::CATEGORY_ID, | 38 | Category = Qtopia::CATEGORY_ID, |
39 | Description, | 39 | Description, |
40 | Location, | 40 | Location, |
41 | Alarm, | 41 | Alarm, |
@@ -130,25 +130,25 @@ private: | |||
130 | Data* data; | 130 | Data* data; |
131 | class Private; | 131 | class Private; |
132 | Private* priv; | 132 | Private* priv; |
133 | 133 | ||
134 | }; | 134 | }; |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * AN Event can span through multiple days. We split up a multiday eve | 137 | * AN Event can span through multiple days. We split up a multiday eve |
138 | */ | 138 | */ |
139 | 139 | ||
140 | class OEffectiveEvent { | 140 | class OEffectiveEvent { |
141 | public: | 141 | public: |
142 | QValueList<OEffectiveEvent> ValueList; | 142 | typedef QValueList<OEffectiveEvent> ValueList; |
143 | enum Position { MidWay, Start, End, StartEnd }; | 143 | enum Position { MidWay, Start, End, StartEnd }; |
144 | // If we calculate the effective event of a multi-day event | 144 | // If we calculate the effective event of a multi-day event |
145 | // we have to figure out whether we are at the first day, | 145 | // we have to figure out whether we are at the first day, |
146 | // at the end, or anywhere else ("middle"). This is important | 146 | // at the end, or anywhere else ("middle"). This is important |
147 | // for the start/end times (00:00/23:59) | 147 | // for the start/end times (00:00/23:59) |
148 | // MidWay: 00:00 -> 23:59, as we are "in the middle" of a multi- | 148 | // MidWay: 00:00 -> 23:59, as we are "in the middle" of a multi- |
149 | // day event | 149 | // day event |
150 | // Start: start time -> 23:59 | 150 | // Start: start time -> 23:59 |
151 | // End: 00:00 -> end time | 151 | // End: 00:00 -> end time |
152 | // Start | End == StartEnd: for single-day events (default) | 152 | // Start | End == StartEnd: for single-day events (default) |
153 | // here we draw start time -> end time | 153 | // here we draw start time -> end time |
154 | OEffectiveEvent(); | 154 | OEffectiveEvent(); |