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/lirchandler.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/lirchandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/remote/lirchandler.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/noncore/tools/remote/lirchandler.h b/noncore/tools/remote/lirchandler.h new file mode 100644 index 0000000..29894b4 --- a/dev/null +++ b/noncore/tools/remote/lirchandler.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie. | ||
3 | Copyright (C) 2007 Paul Eggleton & 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 | #ifndef LIRCHANDLER_H | ||
18 | #define LIRCHANDLER_H | ||
19 | |||
20 | class LircHandler | ||
21 | { | ||
22 | private: | ||
23 | bool connectLirc(void); | ||
24 | const char *readPacket(); | ||
25 | |||
26 | struct sockaddr_un addr; | ||
27 | int fd; | ||
28 | public: | ||
29 | LircHandler(void); | ||
30 | QStringList getRemotes(void); | ||
31 | QStringList getButtons(const char *remoteName); | ||
32 | int sendIR(const char *irbutton); | ||
33 | bool startLircd(void); | ||
34 | bool stopLircd(void); | ||
35 | bool isLircdRunning(void); | ||
36 | }; | ||
37 | |||
38 | #endif | ||