summaryrefslogtreecommitdiff
path: root/libopie/pim/opimmainwindow.h
Unidiff
Diffstat (limited to 'libopie/pim/opimmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/pim/opimmainwindow.h18
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
@@ -17,12 +17,13 @@
17 * (Ok how to moc a template ;) ) 17 * (Ok how to moc a template ;) )
18 * We will have the mainwindow which calls a struct which 18 * We will have the mainwindow which calls a struct which
19 * is normally reimplemented as a template ;) 19 * is normally reimplemented as a template ;)
20 */ 20 */
21 21
22class QCopChannel; 22class QCopChannel;
23class QDateTime;
23class OPimMainWindow : public QMainWindow { 24class OPimMainWindow : public QMainWindow {
24 Q_OBJECT 25 Q_OBJECT
25public: 26public:
26 enum TransPort { BlueTooth=0, 27 enum TransPort { BlueTooth=0,
27 IrDa }; 28 IrDa };
28 29
@@ -53,15 +54,25 @@ protected slots:
53 /** edit the record */ 54 /** edit the record */
54 virtual void edit( int uid ) = 0; 55 virtual void edit( int uid ) = 0;
55 56
56 /** make a copy of it! */ 57 /** make a copy of it! */
57 virtual void add( const OPimRecord& ) = 0; 58 virtual void add( const OPimRecord& ) = 0;
58 59
60 virtual void doAlarm( const QDateTime&, int uid );
59 61
60 QCopChannel* channel(); 62 QCopChannel* channel();
61 63
64protected:
65 /**
66 * start to play soundAlarm()
67 * @param count How many times the alarm is played
68 */
69 void startAlarm(int count = 10);
70 void killAlarm();
71 void timerEvent( QTimerEvent* );
72
62private slots: 73private slots:
63 void appMessage( const QCString&, const QByteArray& ); 74 void appMessage( const QCString&, const QByteArray& );
64 void setDocument( const QString& ); 75 void setDocument( const QString& );
65 76
66 77
67private: 78private:
@@ -70,20 +81,19 @@ private:
70 81
71 int m_rtti; 82 int m_rtti;
72 QCopChannel* m_channel; 83 QCopChannel* m_channel;
73 QString m_service; 84 QString m_service;
74 QCString m_str; 85 QCString m_str;
75 OPimRecord* m_fallBack; 86 OPimRecord* m_fallBack;
76 87 int m_alarmCount;
88 int m_playedCount;
89 int m_timerId;
77 /* I would love to do this as a template 90 /* I would love to do this as a template
78 * but can't think of a right way 91 * but can't think of a right way
79 * because I need signal and slots -zecke 92 * because I need signal and slots -zecke
80 */ 93 */
81 /*
82 * the only pointer in the whole PIM API :(
83 */
84 virtual OPimRecord* record( int rtti, const QByteArray& ) ; 94 virtual OPimRecord* record( int rtti, const QByteArray& ) ;
85 int service(); 95 int service();
86}; 96};
87 97
88 98
89#endif 99#endif