DevSlashLirc
LircCodeLircDevice.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <linux/lirc.h>
4 #include "LircDevice.h"
5 
9 class LircCodeLircDevice : public LircDevice {
10 private:
11 
12  uint32_t codeLength;
13 
14  void init();
15 
16 public:
17 
18  LircCodeLircDevice(const char *path = defaultFilename);
19  LircCodeLircDevice(const LircDevice& orig);
20  //virtual ~LircCodeLircDevice();
21 
22  bool virtual open();
23 
28  bool isMode2() const { return false; }
29 
34  bool isLircCode() const { return true; }
35 
36  void report(std::ostream& stream = std::cout) const;
37 
38  uint32_t readCode();
39 
40  bool writeCode(uint32_t code);
41 };
LircCodeLircDevice(const char *path=defaultFilename)
bool isMode2() const
Always returns false.
bool writeCode(uint32_t code)
static const char * defaultFilename
Definition: LircDevice.h:51
This abstract class contains the common functionality of the derived classes.
Definition: LircDevice.h:24
This class is a LIRC_MODE_LIRCCODE device as per lirc(4).
bool isLircCode() const
Always returns true.
void report(std::ostream &stream=std::cout) const
Prints a listing of the properties implemented on the stream supplied.