summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/lirchandler.h
Unidiff
Diffstat (limited to 'noncore/tools/remote/lirchandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/lirchandler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/tools/remote/lirchandler.h b/noncore/tools/remote/lirchandler.h
index 4e56b6b..5ba14b7 100644
--- a/noncore/tools/remote/lirchandler.h
+++ b/noncore/tools/remote/lirchandler.h
@@ -1,43 +1,51 @@
1/* 1/*
2Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie. 2Opie-Remote. emulates remote controls on an iPaq (and maybe a Zaurus) in Opie.
3Copyright (C) 2007 Paul Eggleton & Thomas Stephens 3Copyright (C) 2007 Paul Eggleton & Thomas Stephens
4 4
5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public 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 6License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
7version. 7version.
8 8
9This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 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 10implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11Public License for more details. 11Public License for more details.
12 12
13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free 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 14Software 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> 20#include <sys/un.h>
21#include <qfile.h>
21 22
22class LircHandler 23class LircHandler
23{ 24{
24private: 25private:
25 bool connectLirc(void); 26 bool connectLirc(void);
26 const char *readPacket(); 27 const char *readPacket();
28 bool readFromFile(QFile &file, QStringList &strlist);
29 bool writeToFile(QFile &file, QStringList &strlist);
27 30
28 struct sockaddr_un addr; 31 struct sockaddr_un addr;
29 int fd; 32 int fd;
30public: 33public:
31 LircHandler(void); 34 LircHandler(void);
32 QStringList getRemotes(void); 35 QStringList getRemotes(void);
33 QStringList getButtons(const char *remoteName); 36 QStringList getButtons(const char *remoteName);
34 int sendIR(const char *lircaction); 37 int sendIR(const char *lircaction);
35 bool startLircd(void); 38 bool startLircd(void);
36 bool stopLircd(void); 39 bool stopLircd(void);
37 bool isLircdRunning(void); 40 bool isLircdRunning(void);
41 void reloadLircdConf(void);
38 bool setupModules(void); 42 bool setupModules(void);
39 bool cleanupModules(void); 43 bool cleanupModules(void);
40 void disableIrDA(void); 44 void disableIrDA(void);
45 void mergeRemoteConfig(const QString &newconfig);
46 void removeRemote(const QString &remotetodelete);
47 bool checkRemoteExists(const QString &remote);
48 bool checkLircdConfValid(bool silent);
41}; 49};
42 50
43#endif 51#endif