Complete rewrite. Does not work yet.
[irwi] / src / remote.h
1 #ifndef _REMOTE_H_
2 #define _REMOTE_H_
3
4 #include "iremote.h"
5 #include "model.h"
6
7 #include <QString>
8
9 class IrCtrl;
10 class NetIO;
11 class QSettings;
12
13 class Remote : public IRemote
14 {
15 public:
16     Remote();
17     Remote(const QString &id, NetIO *);
18     ~Remote();
19
20     const QString &id() const;
21     void setId(const QString &id);
22     void setNetIO(NetIO *);
23
24     // visible for gui
25     void updateRating();
26     void sendRating(bool good);
27     void sendCmd(RemoteCmd);
28
29 private:
30     Remote(const Remote &remote);
31
32 private:
33     bool rated;
34     Model model;
35     QSettings *settings;
36     IrCtrl *irCtrl;
37     NetIO *netIO;
38 };
39
40 #endif // _REMOTE_H_
41
42
43