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 @@ */ -#ifndef OPIE_PIM_NOTIFY_H -#define OPIE_PIM_NOTIFY_H +#ifndef OPIMNOTIFY_H +#define OPIMNOTIFY_H + +/* QT */ #include <qdatetime.h> @@ -34,4 +36,4 @@ - -namespace Opie { +namespace Opie +{ /** @@ -49,4 +51,6 @@ namespace Opie { */ -class OPimNotify { -public: +class OPimNotify +{ + + public: typedef QValueList<OPimNotify> ValueList; @@ -56,10 +60,10 @@ public: - OPimNotify &operator=(const OPimNotify& ); + OPimNotify &operator=( const OPimNotify& ); bool operator==( const OPimNotify& ); - virtual QString type()const = 0; + virtual QString type() const = 0; /** start date */ - QDateTime dateTime()const; - QString service()const; + QDateTime dateTime() const; + QString service() const; @@ -68,3 +72,3 @@ public: */ - int parent()const; + int parent() const; @@ -73,3 +77,3 @@ public: */ - int duration()const; + int duration() const; @@ -78,3 +82,3 @@ public: */ - QDateTime endTime()const; + QDateTime endTime() const; @@ -82,3 +86,3 @@ public: void setDuration( int dur ); - void setParent(int uid ); + void setParent( int uid ); void setService( const QString& ); @@ -86,3 +90,3 @@ public: -private: + private: inline void copyIntern(); @@ -102,5 +106,6 @@ private: */ -class OPimAlarm : public OPimNotify { -public: - enum Sound{Loud=1, Silent=0, Custom=2 }; +class OPimAlarm : public OPimNotify +{ + public: + enum Sound{Loud = 1, Silent = 0, Custom = 2 }; OPimAlarm( int sound = Silent, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); @@ -111,6 +116,6 @@ public: bool operator==( const OPimAlarm& ); - QString type()const; + QString type() const; - int sound()const; - QString file()const; + int sound() const; + QString file() const; @@ -120,3 +125,3 @@ public: -private: + private: void deref(); @@ -137,5 +142,5 @@ private: */ -class OPimReminder : public OPimNotify { -public: - +class OPimReminder : public OPimNotify +{ + public: /** @@ -147,8 +152,8 @@ public: */ - OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), - int duration = 0, int parent = 0 ); + OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), + int duration = 0, int parent = 0 ); OPimReminder( const OPimReminder& ); - OPimReminder &operator=(const OPimReminder& ); + OPimReminder &operator=( const OPimReminder& ); - QString type()const; + QString type() const; @@ -160,6 +165,6 @@ public: */ - int recordUid()const; + int recordUid() const; void setRecordUid( int uid ); -private: + private: void deref(); |