author | llornkcor <llornkcor> | 2002-02-14 01:39:21 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-14 01:39:21 (UTC) |
commit | a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2 (patch) (unidiff) | |
tree | 4119fd1cccfa4c5fa8bd865ff25f2c66103da2f1 /core/applets/vmemo/vmemo.h | |
parent | d804cef9c9ef7f5c4831370cead1392b64a17579 (diff) | |
download | opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.zip opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.gz opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.bz2 |
ok.. now i REALLY moved vmemo..
-rw-r--r-- | core/applets/vmemo/vmemo.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/core/applets/vmemo/vmemo.h b/core/applets/vmemo/vmemo.h new file mode 100644 index 0000000..9ce08f2 --- a/dev/null +++ b/core/applets/vmemo/vmemo.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /**************************************************************************************94x78** | ||
2 | ** | ||
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 | ||
5 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
6 | ** packaging of this file. | ||
7 | ** | ||
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. | ||
10 | ** | ||
11 | *********************************************************************************************/ | ||
12 | |||
13 | /* | ||
14 | * $Id$ | ||
15 | */ | ||
16 | |||
17 | #ifndef __VMEMO_H__ | ||
18 | #define __VMEMO_H__ | ||
19 | |||
20 | #include <qwidget.h> | ||
21 | #include <qpixmap.h> | ||
22 | #include <qpe/applnk.h> | ||
23 | #include <qfile.h> | ||
24 | |||
25 | class VMemo : public QWidget | ||
26 | { | ||
27 | Q_OBJECT | ||
28 | public: | ||
29 | VMemo( QWidget *parent, const char *name = NULL); | ||
30 | ~VMemo(); | ||
31 | QFile track; | ||
32 | public slots: | ||
33 | void record(); | ||
34 | void mousePressEvent( QMouseEvent * ); | ||
35 | void mouseReleaseEvent( QMouseEvent * ); | ||
36 | |||
37 | private: | ||
38 | void paintEvent( QPaintEvent* ); | ||
39 | |||
40 | int openDSP(); | ||
41 | int openWAV(const char *filename); | ||
42 | |||
43 | QPixmap vmemoPixmap; | ||
44 | |||
45 | int dsp, wav, rate, speed, channels, format, resolution; | ||
46 | bool recording; | ||
47 | }; | ||
48 | |||
49 | #endif // __VMEMO_H__ | ||
50 | |||