-rw-r--r-- | libopie2/opiepim/oevent.h | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/libopie2/opiepim/oevent.h b/libopie2/opiepim/oevent.h index 9502efa..dc5e4d6 100644 --- a/libopie2/opiepim/oevent.h +++ b/libopie2/opiepim/oevent.h @@ -1,6 +1,6 @@ /* This file is part of the Opie Project - Copyright (C) Stefan Eilers (Eilers.Stefan@epost.de) + Copyright (C) Stefan Eilers <Eilers.Stefan@epost.de> =. Copyright (C) The Opie Team <opie-devel@handhelds.org> .=l. .>+-= @@ -28,21 +28,24 @@ */ // CONTAINS GPLed code of TT -#ifndef OPIE_PIM_EVENT_H -#define OPIE_PIM_EVENT_H - -#include <qstring.h> -#include <qdatetime.h> -#include <qvaluelist.h> +#ifndef OEVENT_H +#define OEVENT_H +/* OPIE */ +#include <opie2/otimezone.h> +#include <opie2/opimrecord.h> #include <qpe/recordfields.h> #include <qpe/palmtopuidgen.h> -#include <opie2/otimezone.h> -#include <opie2/opimrecord.h> +/* QT */ +#include <qstring.h> +#include <qdatetime.h> +#include <qvaluelist.h> -namespace Opie { -struct OCalendarHelper { +namespace Opie +{ +struct OCalendarHelper +{ /** calculate the week number of the date */ static int week( const QDate& ); /** calculate the occurence of week days since the start of the month */ @@ -65,7 +68,8 @@ class ORecur; * available information for a single Event * @short container for events. */ -class OEvent : public OPimRecord { +class OEvent : public OPimRecord +{ public: typedef QValueList<OEvent> ValueList; /** @@ -191,6 +195,7 @@ public: bool operator>( const OEvent& ); bool operator>=(const OEvent& ); */ + private: inline void changeOrModify(); void deref(); @@ -204,7 +209,9 @@ private: /** * AN Event can span through multiple days. We split up a multiday eve */ -class OEffectiveEvent { +class OEffectiveEvent +{ + public: typedef QValueList<OEffectiveEvent> ValueList; enum Position { MidWay, Start, End, StartEnd }; |