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
@@ -15,29 +15,37 @@ 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> 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