Diffstat (limited to 'noncore/tools/remote/recorddialog.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/remote/recorddialog.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/noncore/tools/remote/recorddialog.h b/noncore/tools/remote/recorddialog.h index 46a82ce..e569fb6 100644 --- a/noncore/tools/remote/recorddialog.h +++ b/noncore/tools/remote/recorddialog.h | |||
@@ -1,49 +1,70 @@ | |||
1 | /* | 1 | /* |
2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. | 2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. |
3 | Copyright (C) 2002 Thomas Stephens | 3 | Copyright (C) 2002 Thomas Stephens |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public | 5 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public |
6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later | 6 | License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later |
7 | version. | 7 | version. |
8 | 8 | ||
9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the | 9 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the |
10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | 10 | implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
11 | Public License for more details. | 11 | Public License for more details. |
12 | 12 | ||
13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free | 13 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free |
14 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 14 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #ifndef RecordDialog_H | 17 | #ifndef RecordDialog_H |
18 | #define RecordDialog_H | 18 | #define RecordDialog_H |
19 | 19 | ||
20 | #include <qdialog.h> | 20 | #include <qdialog.h> |
21 | #include <qtextview.h> | 21 | #include <qmultilineedit.h> |
22 | #include <qlineedit.h> | 22 | #include <qlineedit.h> |
23 | #include <qpushbutton.h> | 23 | #include <qpushbutton.h> |
24 | #include <qwidget.h> | 24 | #include <qwidget.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qlabel.h> | ||
26 | #include <qmessagebox.h> | 27 | #include <qmessagebox.h> |
27 | 28 | ||
28 | #include <stdio.h> | 29 | #include <stdio.h> |
29 | 30 | ||
30 | #include <opie2/oprocess.h> | 31 | #include <opie2/oprocess.h> |
31 | 32 | ||
33 | #include "lirchandler.h" | ||
34 | |||
32 | class RecordDialog : public QDialog | 35 | class RecordDialog : public QDialog |
33 | { | 36 | { |
34 | Q_OBJECT | 37 | Q_OBJECT |
35 | public: | 38 | public: |
36 | RecordDialog(QWidget *parent=0, const char *name=0); | 39 | RecordDialog(QWidget *parent=0, const char *name=0); |
40 | ~RecordDialog(void); | ||
37 | public slots: | 41 | public slots: |
38 | void retPressed(); | 42 | void nextPressed(); |
39 | void incoming(Opie::Core::OProcess *proc, char *buffer, int len); | 43 | void incoming(Opie::Core::OProcess *proc, char *buffer, int len); |
44 | void incomingErr(Opie::Core::OProcess *proc, char *buffer, int len); | ||
45 | void writeFinished(Opie::Core::OProcess *proc); | ||
40 | void done(Opie::Core::OProcess *proc); | 46 | void done(Opie::Core::OProcess *proc); |
47 | void accept(); | ||
48 | void reject(); | ||
49 | protected: | ||
50 | bool confirmClose(); | ||
51 | bool checkClose(); | ||
41 | private: | 52 | private: |
42 | QTextView *output; | 53 | QMultiLineEdit *output; |
43 | QLineEdit *input; | 54 | QLineEdit *input; |
55 | QPushButton *nextbtn; | ||
44 | Opie::Core::OProcess *record; | 56 | Opie::Core::OProcess *record; |
45 | int where; | 57 | int stepnum; |
58 | bool outputenabled; | ||
59 | bool decoding; | ||
60 | bool writeok; | ||
61 | bool ignorekill; | ||
62 | QString errors; | ||
63 | QString remotefile; | ||
64 | LircHandler *lh; | ||
65 | |||
66 | void writeToProcess(const char *buffer, int len); | ||
46 | }; | 67 | }; |
47 | 68 | ||
48 | #endif | 69 | #endif |
49 | 70 | ||