-rw-r--r-- | noncore/multimedia/opierec/qtrec.h | 1 |
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,107 +1,106 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Created: Thu Jan 17 11:19:45 2002 | 2 | ** Created: Thu Jan 17 11:19:45 2002 |
3 | copyright 2002 by L.J. Potter ljp@llornkcor.com | 3 | copyright 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 | ||
24 | class QButtonGroup; | 23 | class QButtonGroup; |
25 | class QCheckBox; | 24 | class QCheckBox; |
26 | class QComboBox; | 25 | class QComboBox; |
27 | class QGridLayout; | 26 | class QGridLayout; |
28 | class QGroupBox; | 27 | class QGroupBox; |
29 | class QHBoxLayout; | 28 | class QHBoxLayout; |
30 | class QIconView; | 29 | class QIconView; |
31 | class QIconViewItem; | 30 | class QIconViewItem; |
32 | class QLabel; | 31 | class QLabel; |
33 | class QLabel; | 32 | class QLabel; |
34 | class QListView; | 33 | class QListView; |
35 | class QListViewItem; | 34 | class QListViewItem; |
36 | class QPushButton; | 35 | class QPushButton; |
37 | class QSlider; | 36 | class QSlider; |
38 | class QTabWidget; | 37 | class QTabWidget; |
39 | class QTimer; | 38 | class QTimer; |
40 | class QVBoxLayout; | 39 | class QVBoxLayout; |
41 | class QLineEdit; | 40 | class 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 | ||
54 | class QtRec : public QWidget | 53 | class QtRec : public QWidget |
55 | { | 54 | { |
56 | Q_OBJECT | 55 | Q_OBJECT |
57 | 56 | ||
58 | public: | 57 | public: |
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 | ||
64 | public slots: | 63 | public slots: |
65 | private: | 64 | private: |
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 | ||
100 | private slots: | 99 | private 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); |