author | paule <paule> | 2007-02-06 04:51:37 (UTC) |
---|---|---|
committer | paule <paule> | 2007-02-06 04:51:37 (UTC) |
commit | 97b2152a21890f05a2217dddfcba6c820c00aa24 (patch) (side-by-side diff) | |
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 @@ /* Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie. Copyright (C) 2007 Paul Eggleton & Thomas Stephens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef LIRCHANDLER_H #define LIRCHANDLER_H +#include <sys/un.h> + class LircHandler { private: bool connectLirc(void); const char *readPacket(); struct sockaddr_un addr; int fd; public: LircHandler(void); QStringList getRemotes(void); QStringList getButtons(const char *remoteName); int sendIR(const char *lircaction); bool startLircd(void); bool stopLircd(void); bool isLircdRunning(void); + bool setupModules(void); + bool cleanupModules(void); + void disableIrDA(void); }; #endif |