-rw-r--r-- | core/applets/vmemo/vmemo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h index 1bd735f..806fe0e 100644 --- a/core/applets/vmemo/vmemo.h +++ b/core/applets/vmemo/vmemo.h | |||
@@ -24,35 +24,41 @@ | |||
24 | #include <qfile.h> | 24 | #include <qfile.h> |
25 | #include <qpe/qcopenvelope_qws.h> | 25 | #include <qpe/qcopenvelope_qws.h> |
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | #include <qtimer.h> | 27 | #include <qtimer.h> |
28 | 28 | ||
29 | class VMemo : public QWidget | 29 | class VMemo : public QWidget |
30 | { | 30 | { |
31 | Q_OBJECT | 31 | Q_OBJECT |
32 | |||
32 | public: | 33 | public: |
34 | |||
33 | VMemo( QWidget *parent, const char *name = NULL); | 35 | VMemo( QWidget *parent, const char *name = NULL); |
34 | ~VMemo(); | 36 | ~VMemo(); |
35 | static int position(); | 37 | static int position(); |
36 | QFile track; | 38 | QFile track; |
37 | int length; | 39 | int length; |
38 | QString fileName, errorMsg, date; | 40 | QString fileName, errorMsg, date; |
39 | QLabel* msgLabel; | 41 | QLabel* msgLabel; |
40 | QTimer *t_timer; | 42 | QTimer *t_timer; |
41 | bool usingIcon, useADPCM; | 43 | bool usingIcon, useADPCM; |
44 | |||
42 | public slots: | 45 | public slots: |
46 | |||
43 | bool record(); | 47 | bool record(); |
44 | void mousePressEvent( QMouseEvent * ); | 48 | void mousePressEvent( QMouseEvent * ); |
45 | void mouseReleaseEvent( QMouseEvent * ); | 49 | void mouseReleaseEvent( QMouseEvent * ); |
46 | void receive( const QCString &msg, const QByteArray &data ); | 50 | void receive( const QCString &msg, const QByteArray &data ); |
47 | bool startRecording(); | 51 | bool startRecording(); |
48 | void stopRecording(); | 52 | void stopRecording(); |
49 | void timerBreak(); | 53 | void timerBreak(); |
54 | |||
50 | private: | 55 | private: |
56 | |||
51 | bool useAlerts; | 57 | bool useAlerts; |
52 | void paintEvent( QPaintEvent* ); | 58 | void paintEvent( QPaintEvent* ); |
53 | int setToggleButton(int); | 59 | int setToggleButton(int); |
54 | int openDSP(); | 60 | int openDSP(); |
55 | int openWAV(const char *filename); | 61 | int openWAV(const char *filename); |
56 | bool fromToggle; | 62 | bool fromToggle; |
57 | QPixmap vmemoPixmap; | 63 | QPixmap vmemoPixmap; |
58 | QCopChannel *myChannel; | 64 | QCopChannel *myChannel; |