summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opierec/qtrec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/multimedia/opierec/qtrec.h b/noncore/multimedia/opierec/qtrec.h
index 5d6ed62..ada3270 100644
--- a/noncore/multimedia/opierec/qtrec.h
+++ b/noncore/multimedia/opierec/qtrec.h
@@ -1,139 +1,138 @@
1/**************************************************************************** 1/****************************************************************************
2 ** Created: Thu Jan 17 11:19:45 2002 2 ** Created: Thu Jan 17 11:19:45 2002
3copyright 2002 by L.J. Potter ljp@llornkcor.com 3copyright 2002 by L.J. Potter ljp@llornkcor.com
4****************************************************************************/ 4****************************************************************************/
5#ifndef QTREC_H 5#ifndef QTREC_H
6#define QTREC_H 6#define QTREC_H
7#define VERSION 1.0 7#define VERSION 1.0
8 8
9#include <qpe/ir.h> 9#include <qpe/ir.h>
10 10
11#include <iostream.h>
12#include <qfile.h> 11#include <qfile.h>
13#include <qimage.h> 12#include <qimage.h>
14#include <qlineedit.h> 13#include <qlineedit.h>
15#include <qpixmap.h> 14#include <qpixmap.h>
16#include <qvariant.h> 15#include <qvariant.h>
17#include <qwidget.h> 16#include <qwidget.h>
18#include <stdio.h> 17#include <stdio.h>
19#include <stdlib.h> 18#include <stdlib.h>
20 19
21#include "device.h" 20#include "device.h"
22#include "wavFile.h" 21#include "wavFile.h"
23 22
24class QButtonGroup; 23class QButtonGroup;
25class QCheckBox; 24class QCheckBox;
26class QComboBox; 25class QComboBox;
27class QGridLayout; 26class QGridLayout;
28class QGroupBox; 27class QGroupBox;
29class QHBoxLayout; 28class QHBoxLayout;
30class QIconView; 29class QIconView;
31class QIconViewItem; 30class QIconViewItem;
32class QLabel; 31class QLabel;
33class QLabel; 32class QLabel;
34class QListView; 33class QListView;
35class QListViewItem; 34class QListViewItem;
36class QPushButton; 35class QPushButton;
37class QSlider; 36class QSlider;
38class QTabWidget; 37class QTabWidget;
39class QTimer; 38class QTimer;
40class QVBoxLayout; 39class QVBoxLayout;
41class QLineEdit; 40class QLineEdit;
42 41
43#define MAX_TRACKS 2 42#define MAX_TRACKS 2
44//#define BUFSIZE 4096 43//#define BUFSIZE 4096
45// #define BUFSIZE 8182 //Z default buffer size 44// #define BUFSIZE 8182 //Z default buffer size
46#define BUFSIZE 1024 45#define BUFSIZE 1024
47//#define BUFSIZE 2048 46//#define BUFSIZE 2048
48#define FRAGSIZE 0x7fff000A; 47#define FRAGSIZE 0x7fff000A;
49 48
50#define WAVE_FORMAT_DVI_ADPCM (0x0011) 49#define WAVE_FORMAT_DVI_ADPCM (0x0011)
51#define WAVE_FORMAT_PCM (0x0001) 50#define WAVE_FORMAT_PCM (0x0001)
52//AFMT_IMA_ADPCM 51//AFMT_IMA_ADPCM
53 52
54class QtRec : public QWidget 53class QtRec : public QWidget
55{ 54{
56 Q_OBJECT 55 Q_OBJECT
57 56
58public: 57public:
59 static QString appName() { return QString::fromLatin1("opierec"); } 58 static QString appName() { return QString::fromLatin1("opierec"); }
60 QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 ); 59 QtRec( QWidget* parent=0, const char* name=0, WFlags fl=0 );
61 ~QtRec(); 60 ~QtRec();
62 QSlider *OutputSlider,*InputSlider; 61 QSlider *OutputSlider,*InputSlider;
63 62
64public slots: 63public slots:
65private: 64private:
66// int fragment; 65// int fragment;
67 int fd1; 66 int fd1;
68 int secCount; 67 int secCount;
69 QString timeString; 68 QString timeString;
70 69
71 QLineEdit *renameBox; 70 QLineEdit *renameBox;
72 QGroupBox* GroupBox1; 71 QGroupBox* GroupBox1;
73 QString currentFile; 72 QString currentFile;
74 QString date, currentFileName, tmpFileName; 73 QString date, currentFileName, tmpFileName;
75 QTimer *t_timer; 74 QTimer *t_timer;
76 bool needsStereoOut, paused, playing; 75 bool needsStereoOut, paused, playing;
77 bool useTmpFile, autoMute; 76 bool useTmpFile, autoMute;
78 77
79 bool eventFilter( QObject * , QEvent * ); 78 bool eventFilter( QObject * , QEvent * );
80 void okRename(); 79 void okRename();
81 void cancelRename(); 80 void cancelRename();
82 QString getStorage(const QString &); 81 QString getStorage(const QString &);
83 bool rec(); 82 bool rec();
84 int getCurrentSizeLimit(); 83 int getCurrentSizeLimit();
85 long checkDiskSpace(const QString &); 84 long checkDiskSpace(const QString &);
86 void doMute(bool); 85 void doMute(bool);
87 void errorStop(); 86 void errorStop();
88 void fillDirectoryCombo(); 87 void fillDirectoryCombo();
89 void getInVol(); 88 void getInVol();
90 void getOutVol(); 89 void getOutVol();
91 void init(); 90 void init();
92 void initConfig(); 91 void initConfig();
93 void initConnections(); 92 void initConnections();
94 void selectItemByName(const QString &); 93 void selectItemByName(const QString &);
95 void setRecordButton(bool); 94 void setRecordButton(bool);
96 void start(); 95 void start();
97 void stop(); 96 void stop();
98 void timerEvent( QTimerEvent *e ); 97 void timerEvent( QTimerEvent *e );
99 98
100private slots: 99private slots:
101 100
102 101
103 void FastforwardPressed(); 102 void FastforwardPressed();
104 void FastforwardReleased(); 103 void FastforwardReleased();
105 void changeDirCombo(int); 104 void changeDirCombo(int);
106 void changeSizeLimitCombo(int); 105 void changeSizeLimitCombo(int);
107 void changeTimeSlider(int); 106 void changeTimeSlider(int);
108 void changebitrateCombo(int); 107 void changebitrateCombo(int);
109 void changedInVolume(); 108 void changedInVolume();
110 void changedOutVolume(); 109 void changedOutVolume();
111 void changesamplerateCombo(int); 110 void changesamplerateCombo(int);
112 void cleanUp(); 111 void cleanUp();
113 void compressionSelected(bool); 112 void compressionSelected(bool);
114 void deleteSound(); 113 void deleteSound();
115 void doBeam(); 114 void doBeam();
116 void doMenuPlay(); 115 void doMenuPlay();
117 void doMicMuting(bool); 116 void doMicMuting(bool);
118 void doPlayBtn(); 117 void doPlayBtn();
119 void doRename(); 118 void doRename();
120 void doVolMuting(bool); 119 void doVolMuting(bool);
121 void forwardTimerTimeout(); 120 void forwardTimerTimeout();
122 void itClick(QListViewItem *item); 121 void itClick(QListViewItem *item);
123 void listPressed(int, QListViewItem *, const QPoint&, int); 122 void listPressed(int, QListViewItem *, const QPoint&, int);
124 void newSound(); 123 void newSound();
125 void rewindPressed(); 124 void rewindPressed();
126 void rewindReleased(); 125 void rewindReleased();
127 void rewindTimerTimeout(); 126 void rewindTimerTimeout();
128 void slotAutoMute(bool); 127 void slotAutoMute(bool);
129 void thisTab(QWidget*); 128 void thisTab(QWidget*);
130 void timeSliderPressed(); 129 void timeSliderPressed();
131 void timeSliderReleased(); 130 void timeSliderReleased();
132 void timerBreak(); 131 void timerBreak();
133/* void changedOutVolume(int); */ 132/* void changedOutVolume(int); */
134/* void changedInVolume(int); */ 133/* void changedInVolume(int); */
135 134
136protected: 135protected:
137 136
138 Device *soundDevice; 137 Device *soundDevice;
139 WavFile *wavFile; 138 WavFile *wavFile;