7#define LIBCEC_ENABLED QString("libCECEnabled")
8#define LIBCEC_DEVICE QString("libCECDevice")
9#define LIBCEC_BASE QString("libCECBase")
10#define LIBCEC_PORT QString("libCECPort")
11#define POWEROFFTV_ALLOWED QString("PowerOffTVAllowed")
12#define POWEROFFTV_ONEXIT QString("PowerOffTVOnExit")
13#define POWERONTV_ALLOWED QString("PowerOnTVAllowed")
14#define POWERONTV_ONSTART QString("PowerOnTVOnStart")
17#include <libcec/cec.h>
36#if CEC_LIB_VERSION_MAJOR <= 3
40 static int AlertCallback (
void* ,
const libcec_alert Alert,
const libcec_parameter Data);
45 static void AlertCallback (
void* , libcec_alert Alert, libcec_parameter Data);
47 static void SourceCallback (
void* , cec_logical_address Address, uint8_t Activated);
61 static void HandleSource (cec_logical_address Address, uint8_t Activated);
62 static int LogMessage (
const cec_log_message &Message);
63 static int HandleAlert (libcec_alert Alert, libcec_parameter Data);
An action (for this plugin) consists of a description, and a set of key sequences.
ICECCallbacks m_callbacks
static int KeyPressCallback(void *Adapter, const cec_keypress Keypress)
void IgnoreKeys(bool Ignore)
static QString AddressToString(int Address)
static void HandleSource(cec_logical_address Address, uint8_t Activated)
void Open(MythMainWindow *Window)
static int LogMessageCallback(void *, const cec_log_message Message)
bool m_switchInputAllowed
static int HandleAlert(libcec_alert Alert, libcec_parameter Data)
void Action(const QString &Action)
static int AlertCallback(void *, const libcec_alert Alert, const libcec_parameter Data)
static int LogMessage(const cec_log_message &Message)
void HandleActions(MythCECActions Actions)
static void SourceCallback(void *, cec_logical_address Address, uint8_t Activated)
int HandleCommand(const cec_command &Command)
int HandleKeyPress(cec_keypress Key) const
static int CommandCallback(void *Adapter, const cec_command Command)