author | zecke <zecke> | 2003-02-21 23:31:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-21 23:31:52 (UTC) |
commit | 46f47c0a1e542a8b4222f3ced8f3304534c7509d (patch) (unidiff) | |
tree | 82dc97a07bae77387987711c0c21697691955937 /libopie/pim/oevent.cpp | |
parent | a7448ec87d97a0128618e83ad7526bd884ef8853 (diff) | |
download | opie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.zip opie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.tar.gz opie-46f47c0a1e542a8b4222f3ced8f3304534c7509d.tar.bz2 |
Add XML datebookresource
-clean up todoaccessxml header
-implement some more stuff in the oeven tester
-extend DefaultFactory to not crash and to use datebook
-reading of OEvents is working nicely.. saving will be added
tomorrow
-fix spelling in ODateBookAcces
-rw-r--r-- | libopie/pim/oevent.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopie/pim/oevent.cpp b/libopie/pim/oevent.cpp index aaae3b2..ada596c 100644 --- a/libopie/pim/oevent.cpp +++ b/libopie/pim/oevent.cpp | |||
@@ -178,24 +178,29 @@ QDateTime OEvent::endDateTimeInZone()const { | |||
178 | return zone.toDateTime( data->end, OTimeZone::current() ); | 178 | return zone.toDateTime( data->end, OTimeZone::current() ); |
179 | } | 179 | } |
180 | void OEvent::setEndDateTime( const QDateTime& dt ) { | 180 | void OEvent::setEndDateTime( const QDateTime& dt ) { |
181 | changeOrModify(); | 181 | changeOrModify(); |
182 | data->end = dt; | 182 | data->end = dt; |
183 | } | 183 | } |
184 | bool OEvent::isMultipleDay()const { | 184 | bool OEvent::isMultipleDay()const { |
185 | return data->end.date().day() - data->start.date().day(); | 185 | return data->end.date().day() - data->start.date().day(); |
186 | } | 186 | } |
187 | bool OEvent::isAllDay()const { | 187 | bool OEvent::isAllDay()const { |
188 | return data->isAllDay; | 188 | return data->isAllDay; |
189 | } | 189 | } |
190 | void OEvent::setAllDay( bool allDay ) { | ||
191 | changeOrModify(); | ||
192 | data->isAllDay = allDay; | ||
193 | if (allDay ) data->timezone = "UTC"; | ||
194 | } | ||
190 | void OEvent::setTimeZone( const QString& tz ) { | 195 | void OEvent::setTimeZone( const QString& tz ) { |
191 | changeOrModify(); | 196 | changeOrModify(); |
192 | data->timezone = tz; | 197 | data->timezone = tz; |
193 | } | 198 | } |
194 | QString OEvent::timeZone()const { | 199 | QString OEvent::timeZone()const { |
195 | return data->timezone; | 200 | return data->timezone; |
196 | } | 201 | } |
197 | bool OEvent::match( const QRegExp& )const { | 202 | bool OEvent::match( const QRegExp& )const { |
198 | // FIXME | 203 | // FIXME |
199 | return false; | 204 | return false; |
200 | } | 205 | } |
201 | QString OEvent::toRichText()const { | 206 | QString OEvent::toRichText()const { |