X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FLibCEC.h;h=d0147d8e4f2a762b60f4938d207116f4bdc88a10;hb=e6d2161b7bc5fdfedccee261eb3a4e657d02fbda;hp=2a849526a323ea0565743ae8b1a05d3030de1f7f;hpb=13fd6a6619b36bef2df2a126455f83776cc991b4;p=deb_libcec.git diff --git a/src/lib/LibCEC.h b/src/lib/LibCEC.h index 2a84952..d0147d8 100644 --- a/src/lib/LibCEC.h +++ b/src/lib/LibCEC.h @@ -32,8 +32,7 @@ */ #include -#include "../../include/CECExports.h" -#include "../../include/CECTypes.h" +#include #include "util/buffer.h" namespace CEC @@ -64,22 +63,26 @@ namespace CEC virtual bool GetNextKeypress(cec_keypress *key); virtual bool GetNextCommand(cec_command *command); - virtual bool Transmit(const cec_frame &data, bool bWaitForAck = true); - virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress); + virtual bool Transmit(const cec_command &data, bool bWaitForAck = true); + virtual bool SetLogicalAddress(cec_logical_address iLogicalAddress = CECDEVICE_PLAYBACKDEVICE1); + virtual bool SetPhysicalAddress(uint16_t iPhysicalAddress = CEC_DEFAULT_PHYSICAL_ADDRESS); virtual bool PowerOnDevices(cec_logical_address address = CECDEVICE_TV); virtual bool StandbyDevices(cec_logical_address address = CECDEVICE_BROADCAST); virtual bool SetActiveView(void); virtual bool SetInactiveView(void); + virtual bool SetOSDString(cec_logical_address iLogicalAddress, cec_display_control duration, const char *strMessage); + virtual bool SwitchMonitoring(bool bEnable); //@} virtual void AddLog(cec_log_level level, const std::string &strMessage); virtual void AddKey(void); - virtual void AddCommand(cec_logical_address source, cec_logical_address destination, cec_opcode opcode, cec_frame *parameters); + virtual void AddCommand(const cec_command &command); virtual void CheckKeypressTimeout(void); virtual void SetCurrentButton(cec_user_control_code iButtonCode); protected: + int64_t m_iStartTime; cec_user_control_code m_iCurrentButton; int64_t m_buttontime; CCECProcessor *m_cec;