author | jeremy <jeremy> | 2002-02-15 15:47:21 (UTC) |
---|---|---|
committer | jeremy <jeremy> | 2002-02-15 15:47:21 (UTC) |
commit | ee2c9639827ea77d2ae33c56580fe99671dd8eab (patch) (unidiff) | |
tree | 49988cfa5530b90b0c82a154f2805df3d35478d0 | |
parent | e6125036c4260fb9aeb40105c1ec58777678792b (diff) | |
download | opie-ee2c9639827ea77d2ae33c56580fe99671dd8eab.zip opie-ee2c9639827ea77d2ae33c56580fe99671dd8eab.tar.gz opie-ee2c9639827ea77d2ae33c56580fe99671dd8eab.tar.bz2 |
Adding support the ipaq's rec button. Not totally funtioning yet, but
getting there.
-rw-r--r-- | core/applets/vmemo/vmemo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h index ee375b0..d96cd94 100644 --- a/core/applets/vmemo/vmemo.h +++ b/core/applets/vmemo/vmemo.h | |||
@@ -1,50 +1,54 @@ | |||
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 | #include <qwidget.h> | 20 | #include <qwidget.h> |
21 | #include <qpixmap.h> | 21 | #include <qpixmap.h> |
22 | #include <qpe/applnk.h> | 22 | #include <qpe/applnk.h> |
23 | #include <qfile.h> | 23 | #include <qfile.h> |
24 | #include <qpe/qcopenvelope_qws.h> | ||
24 | 25 | ||
25 | class VMemo : public QWidget | 26 | class VMemo : public QWidget |
26 | { | 27 | { |
27 | Q_OBJECT | 28 | Q_OBJECT |
28 | public: | 29 | public: |
29 | VMemo( QWidget *parent, const char *name = NULL); | 30 | VMemo( QWidget *parent, const char *name = NULL); |
30 | ~VMemo(); | 31 | ~VMemo(); |
31 | QFile track; | 32 | QFile track; |
33 | |||
32 | public slots: | 34 | public slots: |
33 | void record(); | 35 | void record(); |
34 | void mousePressEvent( QMouseEvent * ); | 36 | void mousePressEvent( QMouseEvent * ); |
35 | void mouseReleaseEvent( QMouseEvent * ); | 37 | void mouseReleaseEvent( QMouseEvent * ); |
38 | void receive( const QCString &msg, const QByteArray &data ); | ||
36 | 39 | ||
37 | private: | 40 | private: |
38 | void paintEvent( QPaintEvent* ); | 41 | void paintEvent( QPaintEvent* ); |
39 | 42 | ||
40 | int openDSP(); | 43 | int openDSP(); |
41 | int openWAV(const char *filename); | 44 | int openWAV(const char *filename); |
42 | 45 | ||
43 | QPixmap vmemoPixmap; | 46 | QPixmap vmemoPixmap; |
47 | QCopChannel *myChannel; | ||
44 | bool systemZaurus; | 48 | bool systemZaurus; |
45 | int dsp, wav, rate, speed, channels, format, resolution; | 49 | int dsp, wav, rate, speed, channels, format, resolution; |
46 | bool recording; | 50 | bool recording; |
47 | }; | 51 | }; |
48 | 52 | ||
49 | #endif // __VMEMO_H__ | 53 | #endif // __VMEMO_H__ |
50 | 54 | ||