summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/remotetab.h
Unidiff
Diffstat (limited to 'noncore/tools/remote/remotetab.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/remote/remotetab.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/noncore/tools/remote/remotetab.h b/noncore/tools/remote/remotetab.h
new file mode 100644
index 0000000..77a7318
--- a/dev/null
+++ b/noncore/tools/remote/remotetab.h
@@ -0,0 +1,64 @@
1/*
2Opie-Remote. emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie.
3Copyright (C) 2002 Thomas Stephens
4
5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
6License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7version.
8
9This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
10implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11Public License for more details.
12
13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15*/
16
17#include <qpe/config.h>
18#include <qwidget.h>
19#include <qlayout.h>
20#include <qvbox.h>
21#include <qmessagebox.h>
22#include <qstring.h>
23#include <qsize.h>
24#include <qobjectlist.h>
25
26#include <stdio.h>
27#include <stdlib.h>
28#include <string.h>
29#include <sys/socket.h>
30#include <sys/types.h>
31#include <sys/un.h>
32#include <unistd.h>
33#include <errno.h>
34
35#include "topgroup.h"
36#include "dvdgroup.h"
37#include "channelgroup.h"
38#include "vcrgroup.h"
39
40#define PACKET_SIZE 256
41#define TIMEOUT 3
42
43class RemoteTab : public QWidget
44{
45 Q_OBJECT
46public:
47 RemoteTab(QWidget *parent=0, const char *name=0);
48 void setIRSocket(int newfd);
49 const char *readPacket();
50 void setConfig(Config *newCfg);
51 void updateRemotesList();
52public slots:
53 void sendIR();
54 void remoteSelected(const QString &string);
55private:
56 int fd;
57 int timeout;
58 struct sockaddr_un addr;
59 Config *cfg;
60 TopGroup *topGroup;
61 DVDGroup *dvdGroup;
62 VCRGroup *vcrGroup;
63 ChannelGroup *channelGroup;
64};