X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECPlaybackDevice.h;h=d12c15053878ce4ff927d8bceb1e3e7f4c16dc41;hb=6a581708f22be7d31ab7aa7242067b35d3540913;hp=24ce072af0e423fba722c7b5b3f393bbe1624724;hpb=8ac9c610be214885ff040d23acb707eeaba1276c;p=deb_libcec.git diff --git a/src/lib/devices/CECPlaybackDevice.h b/src/lib/devices/CECPlaybackDevice.h index 24ce072..d12c150 100644 --- a/src/lib/devices/CECPlaybackDevice.h +++ b/src/lib/devices/CECPlaybackDevice.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -38,16 +38,21 @@ namespace CEC class CCECPlaybackDevice : public CCECBusDevice { public: - CCECPlaybackDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = 0); + CCECPlaybackDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = CEC_INVALID_PHYSICAL_ADDRESS); virtual ~CCECPlaybackDevice(void) {}; - virtual cec_deck_info GetDeckStatus(void) const { return m_deckStatus; }; + cec_deck_info GetDeckStatus(const cec_logical_address initiator); + cec_deck_control_mode GetDeckControlMode(const cec_logical_address initiator); - virtual void SetDeckStatus(cec_deck_info deckStatus); + void SetDeckStatus(cec_deck_info deckStatus); + void SetDeckControlMode(cec_deck_control_mode mode); - virtual bool TransmitDeckStatus(cec_logical_address dest); + bool TransmitDeckStatus(cec_logical_address dest, bool bIsReply); + + virtual void ResetDeviceStatus(void); protected: - cec_deck_info m_deckStatus; + cec_deck_info m_deckStatus; + cec_deck_control_mode m_deckControlMode; }; }