author | paule <paule> | 2007-01-28 04:04:14 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-28 04:04:14 (UTC) |
commit | ec2309cb69365847762db542c41951629cd06cbe (patch) (unidiff) | |
tree | 2f0101c1f0d6268207dbd15eb21f40c812a4fff5 /noncore/tools/remote/remotetab.h | |
parent | 3cd37427b5c5f26f62cff583fbde914467ddafe3 (diff) | |
download | opie-ec2309cb69365847762db542c41951629cd06cbe.zip opie-ec2309cb69365847762db542c41951629cd06cbe.tar.gz opie-ec2309cb69365847762db542c41951629cd06cbe.tar.bz2 |
Refactored out all communication with LIRC into new LircHandler class
Diffstat (limited to 'noncore/tools/remote/remotetab.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/remote/remotetab.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/noncore/tools/remote/remotetab.h b/noncore/tools/remote/remotetab.h index 38b58e9..da0a543 100644 --- a/noncore/tools/remote/remotetab.h +++ b/noncore/tools/remote/remotetab.h | |||
@@ -16,49 +16,42 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
16 | 16 | ||
17 | #include <qpe/config.h> | 17 | #include <qpe/config.h> |
18 | #include <qwidget.h> | 18 | #include <qwidget.h> |
19 | #include <qlayout.h> | 19 | #include <qlayout.h> |
20 | #include <qvbox.h> | 20 | #include <qvbox.h> |
21 | #include <qmessagebox.h> | 21 | #include <qmessagebox.h> |
22 | #include <qstring.h> | 22 | #include <qstring.h> |
23 | #include <qsize.h> | 23 | #include <qsize.h> |
24 | #include <qobjectlist.h> | 24 | #include <qobjectlist.h> |
25 | 25 | ||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include <string.h> | 28 | #include <string.h> |
29 | #include <sys/socket.h> | 29 | #include <sys/socket.h> |
30 | #include <sys/types.h> | 30 | #include <sys/types.h> |
31 | #include <sys/un.h> | 31 | #include <sys/un.h> |
32 | #include <unistd.h> | 32 | #include <unistd.h> |
33 | #include <errno.h> | 33 | #include <errno.h> |
34 | 34 | ||
35 | #include "topgroup.h" | 35 | #include "topgroup.h" |
36 | #include "dvdgroup.h" | 36 | #include "dvdgroup.h" |
37 | #include "channelgroup.h" | 37 | #include "channelgroup.h" |
38 | #include "vcrgroup.h" | 38 | #include "vcrgroup.h" |
39 | 39 | ||
40 | #define PACKET_SIZE 256 | ||
41 | #define TIMEOUT 3 | ||
42 | |||
43 | class RemoteTab : public QWidget | 40 | class RemoteTab : public QWidget |
44 | { | 41 | { |
45 | Q_OBJECT | 42 | Q_OBJECT |
46 | public: | 43 | public: |
47 | RemoteTab(QWidget *parent=0, const char *name=0); | 44 | RemoteTab(QWidget *parent=0, const char *name=0); |
48 | void setIRSocket(int newfd); | ||
49 | const char *readPacket(); | 45 | const char *readPacket(); |
50 | void setConfig(Config *newCfg); | 46 | void setConfig(Config *newCfg); |
51 | void updateRemotesList(); | 47 | void updateRemotesList(); |
52 | public slots: | 48 | public slots: |
53 | int sendIR(); | 49 | int sendIR(); |
54 | void remoteSelected(const QString &string); | 50 | void remoteSelected(const QString &string); |
55 | private: | 51 | private: |
56 | int fd; | ||
57 | int timeout; | ||
58 | struct sockaddr_un addr; | ||
59 | Config *cfg; | 52 | Config *cfg; |
60 | TopGroup *topGroup; | 53 | TopGroup *topGroup; |
61 | DVDGroup *dvdGroup; | 54 | DVDGroup *dvdGroup; |
62 | VCRGroup *vcrGroup; | 55 | VCRGroup *vcrGroup; |
63 | ChannelGroup *channelGroup; | 56 | ChannelGroup *channelGroup; |
64 | }; | 57 | }; |