summaryrefslogtreecommitdiff
path: root/core/applets/vmemo/vmemo.h
authorllornkcor <llornkcor>2002-02-14 01:39:21 (UTC)
committer llornkcor <llornkcor>2002-02-14 01:39:21 (UTC)
commita3b4e55734b9a1d2b1f2f7278caa165138dd2aa2 (patch) (side-by-side diff)
tree4119fd1cccfa4c5fa8bd865ff25f2c66103da2f1 /core/applets/vmemo/vmemo.h
parentd804cef9c9ef7f5c4831370cead1392b64a17579 (diff)
downloadopie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.zip
opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.gz
opie-a3b4e55734b9a1d2b1f2f7278caa165138dd2aa2.tar.bz2
ok.. now i REALLY moved vmemo..
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__
+