| 50 | #define ToString(x) CCECTypeUtils::ToString(x) |
| 51 | |
| 52 | CCECClient::CCECClient(CCECProcessor *processor, const libcec_configuration &configuration) : |
| 53 | m_processor(processor), |
| 54 | m_bInitialised(false), |
| 55 | m_bRegistered(false), |
| 56 | m_iCurrentButton(CEC_USER_CONTROL_CODE_UNKNOWN), |
| 57 | m_initialButtontime(0), |
| 58 | m_updateButtontime(0), |
| 59 | m_repeatButtontime(0), |
| 60 | m_releaseButtontime(0), |
| 61 | m_pressedButtoncount(0), |
| 62 | m_releasedButtoncount(0), |
| 63 | m_iPreventForwardingPowerOffCommand(0) |
| 64 | { |
| 65 | m_configuration.Clear(); |
| 66 | // set the initial configuration |
| 67 | SetConfiguration(configuration); |
| 68 | CreateThread(false); |
| 69 | } |
| 70 | |
| 71 | CCECClient::~CCECClient(void) |
| 72 | { |