MythTV
master
|
#include <mythcecadapter.h>
Public Types | |
enum | MythCECAction { None = 0x00, PowerOffTV = 0x01, PowerOnTV = 0x02, SwitchInput = 0x04 } |
Public Member Functions | |
MythCECAdapter ()=default | |
~MythCECAdapter () | |
void | Open (MythMainWindow *Window) |
void | Close (void) |
void | Action (const QString &Action) |
void | IgnoreKeys (bool Ignore) |
Static Public Member Functions | |
static int | LogMessageCallback (void *, const cec_log_message Message) |
static int | KeyPressCallback (void *Adapter, const cec_keypress Keypress) |
static int | CommandCallback (void *Adapter, const cec_command Command) |
static int | AlertCallback (void *, const libcec_alert Alert, const libcec_parameter Data) |
static void | SourceCallback (void *, cec_logical_address Address, uint8_t Activated) |
static QString | AddressToString (int Address) |
Protected Member Functions | |
void | HandleActions (MythCECActions Actions) |
int | HandleCommand (const cec_command &Command) |
int | HandleKeyPress (cec_keypress Key) const |
Static Protected Member Functions | |
static void | HandleSource (cec_logical_address Address, uint8_t Activated) |
static int | LogMessage (const cec_log_message &Message) |
static int | HandleAlert (libcec_alert Alert, libcec_parameter Data) |
Protected Attributes | |
ICECAdapter * | m_adapter { nullptr } |
ICECCallbacks | m_callbacks |
bool | m_valid { false } |
bool | m_ignoreKeys { false } |
bool | m_powerOffTVAllowed { false } |
bool | m_powerOffTVOnExit { false } |
bool | m_powerOnTVAllowed { false } |
bool | m_powerOnTVOnStart { false } |
bool | m_switchInputAllowed { true } |
Definition at line 23 of file mythcecadapter.h.
Enumerator | |
---|---|
None | |
PowerOffTV | |
PowerOnTV | |
SwitchInput |
Definition at line 26 of file mythcecadapter.h.
|
default |
MythCECAdapter::~MythCECAdapter | ( | ) |
Definition at line 89 of file mythcecadapter.cpp.
|
static |
Definition at line 27 of file mythcecadapter.cpp.
Referenced by Open().
|
static |
Definition at line 32 of file mythcecadapter.cpp.
Referenced by Open().
|
static |
Definition at line 40 of file mythcecadapter.cpp.
Referenced by Open().
|
static |
Definition at line 48 of file mythcecadapter.cpp.
Referenced by Open().
|
static |
Definition at line 78 of file mythcecadapter.cpp.
Referenced by Open().
|
static |
Definition at line 83 of file mythcecadapter.cpp.
Referenced by Open().
void MythCECAdapter::Open | ( | MythMainWindow * | Window | ) |
Definition at line 94 of file mythcecadapter.cpp.
void MythCECAdapter::Close | ( | void | ) |
Definition at line 260 of file mythcecadapter.cpp.
Referenced by Open(), and ~MythCECAdapter().
void MythCECAdapter::Action | ( | const QString & | Action | ) |
Definition at line 749 of file mythcecadapter.cpp.
void MythCECAdapter::IgnoreKeys | ( | bool | Ignore | ) |
Definition at line 757 of file mythcecadapter.cpp.
|
protected |
Definition at line 717 of file mythcecadapter.cpp.
|
protected |
Definition at line 293 of file mythcecadapter.cpp.
Referenced by CommandCallback().
|
protected |
Definition at line 317 of file mythcecadapter.cpp.
Referenced by HandleCommand(), and KeyPressCallback().
|
staticprotected |
Definition at line 709 of file mythcecadapter.cpp.
Referenced by SourceCallback().
|
staticprotected |
Definition at line 277 of file mythcecadapter.cpp.
Referenced by LogMessageCallback().
|
staticprotected |
Definition at line 652 of file mythcecadapter.cpp.
Referenced by AlertCallback().
|
protected |
Definition at line 66 of file mythcecadapter.h.
Referenced by Close(), HandleActions(), and Open().
|
protected |
Definition at line 67 of file mythcecadapter.h.
Referenced by Open().
Definition at line 68 of file mythcecadapter.h.
Referenced by Close(), HandleActions(), and Open().
Definition at line 69 of file mythcecadapter.h.
Referenced by HandleKeyPress(), and IgnoreKeys().
Definition at line 70 of file mythcecadapter.h.
Referenced by HandleActions(), and Open().
Definition at line 71 of file mythcecadapter.h.
Definition at line 72 of file mythcecadapter.h.
Referenced by HandleActions(), and Open().
Definition at line 73 of file mythcecadapter.h.
Referenced by Open().
Definition at line 74 of file mythcecadapter.h.
Referenced by HandleActions().