summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemo.h
Side-by-side diff
Diffstat (limited to 'core/applets/vmemo/vmemo.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.h50
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 @@
+/**************************************************************************************94x78**
+**
+** This file may be distributed and/or modified under the terms of the
+** GNU General Public License version 2 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file.
+**
+** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+*********************************************************************************************/
+
+/*
+ * $Id$
+ */
+
+#ifndef __VMEMO_H__
+#define __VMEMO_H__
+
+#include <qwidget.h>
+#include <qpixmap.h>
+#include <qpe/applnk.h>
+#include <qfile.h>
+
+class VMemo : public QWidget
+{
+ Q_OBJECT
+public:
+ VMemo( QWidget *parent, const char *name = NULL);
+ ~VMemo();
+ QFile track;
+public slots:
+ void record();
+ void mousePressEvent( QMouseEvent * );
+ void mouseReleaseEvent( QMouseEvent * );
+
+private:
+ void paintEvent( QPaintEvent* );
+
+ int openDSP();
+ int openWAV(const char *filename);
+
+ QPixmap vmemoPixmap;
+
+ int dsp, wav, rate, speed, channels, format, resolution;
+ bool recording;
+};
+
+#endif // __VMEMO_H__
+