author | zecke <zecke> | 2003-05-12 13:18:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-12 13:18:29 (UTC) |
commit | c2602b4c290a14f4655d7e07eea20b55c1f38c8e (patch) (side-by-side diff) | |
tree | 1e08388bf45e65df75722af3a76a256b3178dc86 | |
parent | d6e4c1a54185b1aa4443cb79a36acc637acf84ac (diff) | |
download | opie-c2602b4c290a14f4655d7e07eea20b55c1f38c8e.zip opie-c2602b4c290a14f4655d7e07eea20b55c1f38c8e.tar.gz opie-c2602b4c290a14f4655d7e07eea20b55c1f38c8e.tar.bz2 |
Add a comment
-rw-r--r-- | libopie/pim/opimnotify.h | 2 | ||||
-rw-r--r-- | libopie2/opiepim/core/opimnotify.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libopie/pim/opimnotify.h b/libopie/pim/opimnotify.h index b0de000..58417db 100644 --- a/libopie/pim/opimnotify.h +++ b/libopie/pim/opimnotify.h @@ -41,102 +41,104 @@ public: /** * in Seconds */ int duration()const; /** * Start Time + Duration */ QDateTime endTime()const; void setDateTime( const QDateTime& ); void setDuration( int dur ); void setParent(int uid ); void setService( const QString& ); private: inline void copyIntern(); void deref(); struct Data; Data* data; /* d-pointer */ class NotifyPrivate; NotifyPrivate* d; }; /** * An alarm is a sound/mail/buzzer played/send * at a given time to inform about * an Event */ 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 ); OPimAlarm( const OPimAlarm& ); ~OPimAlarm(); OPimAlarm &operator=( const OPimAlarm& ); bool operator==( const OPimAlarm& ); QString type()const; int sound()const; QString file()const; void setSound( int ); /* only when sound is custom... */ void setFile( const QString& sound ); private: void deref(); void copyIntern(); struct Data; Data * data; class Private; Private* d; }; /** * A Reminder will be put into the * datebook + * Note that the returned dateTime() may be not valid. + * In these cases one must resolve the uid and get the OEvent */ class OPimReminder : public OPimNotify { public: /** * c'tor of a reminder * @param uid The uid of the Record inside the Datebook * @param start the StartDate invalid for all day... * @param duration The duration of the event ( -1 for all day ) * @param parent The 'parent' record of this reminder */ OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); OPimReminder( const OPimReminder& ); OPimReminder &operator=(const OPimReminder& ); QString type()const; bool operator==( const OPimReminder& ); /** * the uid of the alarm * inside the 'datebook' application */ int recordUid()const; void setRecordUid( int uid ); private: void deref(); void copyIntern(); struct Data; Data* data; class Private; Private *d; }; #endif diff --git a/libopie2/opiepim/core/opimnotify.h b/libopie2/opiepim/core/opimnotify.h index b0de000..58417db 100644 --- a/libopie2/opiepim/core/opimnotify.h +++ b/libopie2/opiepim/core/opimnotify.h @@ -41,102 +41,104 @@ public: /** * in Seconds */ int duration()const; /** * Start Time + Duration */ QDateTime endTime()const; void setDateTime( const QDateTime& ); void setDuration( int dur ); void setParent(int uid ); void setService( const QString& ); private: inline void copyIntern(); void deref(); struct Data; Data* data; /* d-pointer */ class NotifyPrivate; NotifyPrivate* d; }; /** * An alarm is a sound/mail/buzzer played/send * at a given time to inform about * an Event */ 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 ); OPimAlarm( const OPimAlarm& ); ~OPimAlarm(); OPimAlarm &operator=( const OPimAlarm& ); bool operator==( const OPimAlarm& ); QString type()const; int sound()const; QString file()const; void setSound( int ); /* only when sound is custom... */ void setFile( const QString& sound ); private: void deref(); void copyIntern(); struct Data; Data * data; class Private; Private* d; }; /** * A Reminder will be put into the * datebook + * Note that the returned dateTime() may be not valid. + * In these cases one must resolve the uid and get the OEvent */ class OPimReminder : public OPimNotify { public: /** * c'tor of a reminder * @param uid The uid of the Record inside the Datebook * @param start the StartDate invalid for all day... * @param duration The duration of the event ( -1 for all day ) * @param parent The 'parent' record of this reminder */ OPimReminder( int uid = 0, const QDateTime& start = QDateTime(), int duration = 0, int parent = 0 ); OPimReminder( const OPimReminder& ); OPimReminder &operator=(const OPimReminder& ); QString type()const; bool operator==( const OPimReminder& ); /** * the uid of the alarm * inside the 'datebook' application */ int recordUid()const; void setRecordUid( int uid ); private: void deref(); void copyIntern(); struct Data; Data* data; class Private; Private *d; }; #endif |