author | paule <paule> | 2007-02-06 04:51:37 (UTC) |
---|---|---|
committer | paule <paule> | 2007-02-06 04:51:37 (UTC) |
commit | 97b2152a21890f05a2217dddfcba6c820c00aa24 (patch) (unidiff) | |
tree | 55b859fbea71840f15368ec7b4b9e2de2c4f9879 /noncore/tools/remote/lirchandler.h | |
parent | a505f79190d4d14a7c9595af3e9b78d9c613da21 (diff) | |
download | opie-97b2152a21890f05a2217dddfcba6c820c00aa24.zip opie-97b2152a21890f05a2217dddfcba6c820c00aa24.tar.gz opie-97b2152a21890f05a2217dddfcba6c820c00aa24.tar.bz2 |
Start lircd on application start, and stop it on quit
Diffstat (limited to 'noncore/tools/remote/lirchandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/remote/lirchandler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/tools/remote/lirchandler.h b/noncore/tools/remote/lirchandler.h index c7665cb..4e56b6b 100644 --- a/noncore/tools/remote/lirchandler.h +++ b/noncore/tools/remote/lirchandler.h | |||
@@ -1,38 +1,43 @@ | |||
1 | /* | 1 | /* |
2 | Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie. | 2 | Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie. |
3 | Copyright (C) 2007 Paul Eggleton & Thomas Stephens | 3 | Copyright (C) 2007 Paul Eggleton & 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 LIRCHANDLER_H | 17 | #ifndef LIRCHANDLER_H |
18 | #define LIRCHANDLER_H | 18 | #define LIRCHANDLER_H |
19 | 19 | ||
20 | #include <sys/un.h> | ||
21 | |||
20 | class LircHandler | 22 | class LircHandler |
21 | { | 23 | { |
22 | private: | 24 | private: |
23 | bool connectLirc(void); | 25 | bool connectLirc(void); |
24 | const char *readPacket(); | 26 | const char *readPacket(); |
25 | 27 | ||
26 | struct sockaddr_un addr; | 28 | struct sockaddr_un addr; |
27 | int fd; | 29 | int fd; |
28 | public: | 30 | public: |
29 | LircHandler(void); | 31 | LircHandler(void); |
30 | QStringList getRemotes(void); | 32 | QStringList getRemotes(void); |
31 | QStringList getButtons(const char *remoteName); | 33 | QStringList getButtons(const char *remoteName); |
32 | int sendIR(const char *lircaction); | 34 | int sendIR(const char *lircaction); |
33 | bool startLircd(void); | 35 | bool startLircd(void); |
34 | bool stopLircd(void); | 36 | bool stopLircd(void); |
35 | bool isLircdRunning(void); | 37 | bool isLircdRunning(void); |
38 | bool setupModules(void); | ||
39 | bool cleanupModules(void); | ||
40 | void disableIrDA(void); | ||
36 | }; | 41 | }; |
37 | 42 | ||
38 | #endif | 43 | #endif |