Diffstat (limited to 'noncore/tools/remote/mainview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/remote/mainview.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/tools/remote/mainview.h b/noncore/tools/remote/mainview.h new file mode 100644 index 0000000..2434064 --- a/dev/null +++ b/noncore/tools/remote/mainview.h | |||
@@ -0,0 +1,54 @@ | |||
1 | /* | ||
2 | Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie. | ||
3 | Copyright (C) 2002 Thomas Stephens | ||
4 | |||
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 | ||
7 | version. | ||
8 | |||
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 | ||
11 | Public License for more details. | ||
12 | |||
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 | ||
15 | */ | ||
16 | |||
17 | #include <qpe/qpeapplication.h> | ||
18 | #include <qpe/resource.h> | ||
19 | #include <qpe/config.h> | ||
20 | #include <qpushbutton.h> | ||
21 | #include <qtabwidget.h> | ||
22 | #include <qlayout.h> | ||
23 | #include <qmessagebox.h> | ||
24 | #include <qpaintdevice.h> | ||
25 | #include <qobject.h> | ||
26 | #include <sys/socket.h> | ||
27 | #include <sys/types.h> | ||
28 | #include <sys/un.h> | ||
29 | #include <unistd.h> | ||
30 | #include <stdio.h> | ||
31 | #include <signal.h> | ||
32 | |||
33 | #include "remotetab.h" | ||
34 | #include "learntab.h" | ||
35 | #include "configtab.h" | ||
36 | |||
37 | #define BUFFERSIZE 256 | ||
38 | |||
39 | class MainView : public QWidget | ||
40 | { | ||
41 | Q_OBJECT | ||
42 | public: | ||
43 | MainView(QWidget *parent=0, const char *name=0); | ||
44 | int getIRSocket(); | ||
45 | void setIRSocket(int newfd); | ||
46 | public slots: | ||
47 | void updateRemotesList(); | ||
48 | private: | ||
49 | int fd; | ||
50 | RemoteTab *remote; | ||
51 | ConfigTab *config; | ||
52 | LearnTab *learn; | ||
53 | Config *cfg; | ||
54 | }; | ||