controldev
Remote.hpp
Go to the documentation of this file.
1 #ifndef CONTROLDEV_REMOTE_TASK_HPP
2 #define CONTROLDEV_REMOTE_TASK_HPP
3 
4 #include "controldev/RemoteBase.hpp"
5 
6 #include <vector>
7 
8 namespace controldev {
9  class Remote : public RemoteBase
10  {
11  friend class RemoteBase;
12  protected:
13 // GenericRawCommand grc;
14  unsigned int sliders;
15  unsigned int buttons;
16  unsigned int resolution;
17  unsigned int next_sequenznumber;
18  unsigned int expected_sequences;
19  unsigned int payloadbits;
20  unsigned int current_button;
21  unsigned int current_slider;
23  unsigned char buffered_char;
24  unsigned int buffered_charx;
25  unsigned int bad_packages;
27 
28  virtual bool updateRawCommand(RawCommand& rcmd);
29  virtual int getFileDescriptor();
30 
31  public:
32  Remote(std::string const& name = "controldev::Remote");
33 
47 // bool configureHook();
48 
54  // bool startHook();
55 
72 // void updateHook();
73 
80  // void errorHook();
81 
85  // void stopHook();
86 
91  // void cleanupHook();
92 
93 
94 
95 
96  };
97 }
98 
99 #endif
100 
Definition: Remote.hpp:9
virtual int getFileDescriptor()
Definition: Remote.cpp:13
unsigned int current_button
Definition: Remote.hpp:20
unsigned int resolution
Definition: Remote.hpp:16
Remote(std::string const &name="controldev::Remote")
Definition: Remote.cpp:7
unsigned int current_slider
Definition: Remote.hpp:21
virtual bool updateRawCommand(RawCommand &rcmd)
Definition: Remote.cpp:18
unsigned char buffered_char
Definition: Remote.hpp:23
unsigned int buttons
Definition: Remote.hpp:15
unsigned int buffered_charx
Definition: Remote.hpp:24
friend class RemoteBase
Definition: Remote.hpp:11
Definition: ControlDevTypes.hpp:8
unsigned int expected_sequences
Definition: Remote.hpp:18
RawCommand rcmd
Definition: Remote.hpp:26
unsigned int next_sequenznumber
Definition: Remote.hpp:17
unsigned int current_sequence_number
Definition: Remote.hpp:22
unsigned int bad_packages
Definition: Remote.hpp:25
unsigned int sliders
Definition: Remote.hpp:14
A data structure for raw data values of input devices.
Definition: ControlDevTypes.hpp:27
unsigned int payloadbits
Definition: Remote.hpp:19