Diffstat (limited to 'libopie/pim/opimmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/pim/opimmainwindow.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/libopie/pim/opimmainwindow.h b/libopie/pim/opimmainwindow.h index dca3c82..855d364 100644 --- a/libopie/pim/opimmainwindow.h +++ b/libopie/pim/opimmainwindow.h @@ -21,4 +21,5 @@ class QCopChannel; +class QDateTime; class OPimMainWindow : public QMainWindow { Q_OBJECT @@ -57,7 +58,17 @@ protected slots: virtual void add( const OPimRecord& ) = 0; + virtual void doAlarm( const QDateTime&, int uid ); QCopChannel* channel(); +protected: + /** + * start to play soundAlarm() + * @param count How many times the alarm is played + */ + void startAlarm(int count = 10); + void killAlarm(); + void timerEvent( QTimerEvent* ); + private slots: void appMessage( const QCString&, const QByteArray& ); @@ -74,12 +85,11 @@ private: QCString m_str; OPimRecord* m_fallBack; - + int m_alarmCount; + int m_playedCount; + int m_timerId; /* I would love to do this as a template * but can't think of a right way * because I need signal and slots -zecke */ - /* - * the only pointer in the whole PIM API :( - */ virtual OPimRecord* record( int rtti, const QByteArray& ) ; int service(); |