Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

vmemo.h

Go to the documentation of this file.
00001 /**************************************************************************************94x78**
00002 **
00003 ** This file may be distributed and/or modified under the terms of the
00004 ** GNU General Public License version 2 as published by the Free Software
00005 ** Foundation and appearing in the file LICENSE.GPL included in the
00006 ** packaging of this file.
00007 **
00008 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 **
00011 *********************************************************************************************/
00012 
00013 /*
00014  * $Id: vmemo.h,v 1.16 2005/08/11 10:10:40 llornkcor Exp $
00015  */
00016 
00017 #ifndef __VMEMO_H__
00018 #define __VMEMO_H__
00019 
00020 
00021 #include <qwidget.h>
00022 #include <qpixmap.h>
00023 #include <qpe/applnk.h>
00024 #include <qfile.h>
00025 #include <qpe/qcopenvelope_qws.h>
00026 #include <qlabel.h>
00027 #include <qtimer.h>
00028 
00029 class VMemo : public QWidget
00030 {
00031   Q_OBJECT
00032                         
00033 public:
00034         
00035   VMemo( QWidget *parent, const char *name = NULL);
00036   ~VMemo();
00037   static int position();
00038   QFile track;
00039   int length;
00040   QString fileName, errorMsg, date;
00041   QLabel* msgLabel;
00042   QTimer *t_timer;
00043         bool usingIcon, useADPCM;
00044  
00045 public slots:
00046                 
00047   bool record();
00048   void mousePressEvent( QMouseEvent * );
00049   void mouseReleaseEvent( QMouseEvent * );
00050   void receive( const QCString &msg, const QByteArray &data );
00051   bool startRecording();
00052   void stopRecording();
00053   void timerBreak();
00054         
00055 private:
00056         
00057   bool useAlerts;
00058   void paintEvent( QPaintEvent* );
00059   int setToggleButton(int);
00060   int openDSP();
00061   int openWAV(const char *filename);
00062   bool fromToggle;
00063   QPixmap vmemoPixmap;
00064   QCopChannel *myChannel;
00065   bool systemZaurus;
00066   int dsp, wav, rate, speed, channels, format, resolution;
00067   bool recording;
00068 };
00069 
00070 #endif // __VMEMO_H__
00071 

Generated on Sat Nov 5 16:15:24 2005 for OPIE by  doxygen 1.4.2