-rw-r--r-- | core/applets/vmemo/vmemo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h index 31d0a25..1bd735f 100644 --- a/core/applets/vmemo/vmemo.h +++ b/core/applets/vmemo/vmemo.h | |||
@@ -1,64 +1,65 @@ | |||
1 | /**************************************************************************************94x78** | 1 | /**************************************************************************************94x78** |
2 | ** | 2 | ** |
3 | ** This file may be distributed and/or modified under the terms of the | 3 | ** This file may be distributed and/or modified under the terms of the |
4 | ** GNU General Public License version 2 as published by the Free Software | 4 | ** GNU General Public License version 2 as published by the Free Software |
5 | ** Foundation and appearing in the file LICENSE.GPL included in the | 5 | ** Foundation and appearing in the file LICENSE.GPL included in the |
6 | ** packaging of this file. | 6 | ** packaging of this file. |
7 | ** | 7 | ** |
8 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 8 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
9 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 9 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
10 | ** | 10 | ** |
11 | *********************************************************************************************/ | 11 | *********************************************************************************************/ |
12 | 12 | ||
13 | /* | 13 | /* |
14 | * $Id$ | 14 | * $Id$ |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef __VMEMO_H__ | 17 | #ifndef __VMEMO_H__ |
18 | #define __VMEMO_H__ | 18 | #define __VMEMO_H__ |
19 | 19 | ||
20 | 20 | ||
21 | #include <qwidget.h> | 21 | #include <qwidget.h> |
22 | #include <qpixmap.h> | 22 | #include <qpixmap.h> |
23 | #include <qpe/applnk.h> | 23 | #include <qpe/applnk.h> |
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 | public: | 32 | public: |
33 | VMemo( QWidget *parent, const char *name = NULL); | 33 | VMemo( QWidget *parent, const char *name = NULL); |
34 | ~VMemo(); | 34 | ~VMemo(); |
35 | static int position(); | ||
35 | QFile track; | 36 | QFile track; |
36 | int length; | 37 | int length; |
37 | QString fileName, errorMsg, date; | 38 | QString fileName, errorMsg, date; |
38 | QLabel* msgLabel; | 39 | QLabel* msgLabel; |
39 | QTimer *t_timer; | 40 | QTimer *t_timer; |
40 | bool usingIcon, useADPCM; | 41 | bool usingIcon, useADPCM; |
41 | public slots: | 42 | public slots: |
42 | bool record(); | 43 | bool record(); |
43 | void mousePressEvent( QMouseEvent * ); | 44 | void mousePressEvent( QMouseEvent * ); |
44 | void mouseReleaseEvent( QMouseEvent * ); | 45 | void mouseReleaseEvent( QMouseEvent * ); |
45 | void receive( const QCString &msg, const QByteArray &data ); | 46 | void receive( const QCString &msg, const QByteArray &data ); |
46 | bool startRecording(); | 47 | bool startRecording(); |
47 | void stopRecording(); | 48 | void stopRecording(); |
48 | void timerBreak(); | 49 | void timerBreak(); |
49 | private: | 50 | private: |
50 | bool useAlerts; | 51 | bool useAlerts; |
51 | void paintEvent( QPaintEvent* ); | 52 | void paintEvent( QPaintEvent* ); |
52 | int setToggleButton(int); | 53 | int setToggleButton(int); |
53 | int openDSP(); | 54 | int openDSP(); |
54 | int openWAV(const char *filename); | 55 | int openWAV(const char *filename); |
55 | bool fromToggle; | 56 | bool fromToggle; |
56 | QPixmap vmemoPixmap; | 57 | QPixmap vmemoPixmap; |
57 | QCopChannel *myChannel; | 58 | QCopChannel *myChannel; |
58 | bool systemZaurus; | 59 | bool systemZaurus; |
59 | int dsp, wav, rate, speed, channels, format, resolution; | 60 | int dsp, wav, rate, speed, channels, format, resolution; |
60 | bool recording; | 61 | bool recording; |
61 | }; | 62 | }; |
62 | 63 | ||
63 | #endif // __VMEMO_H__ | 64 | #endif // __VMEMO_H__ |
64 | 65 | ||