using namespace CEC;
CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) :
- CCECPlaybackDevice(processor, address, iPhysicalAddress)
+ CCECBusDevice(processor, address, iPhysicalAddress),
+ m_playbackDevice(processor, address, iPhysicalAddress),
+ m_tuner(processor, address, iPhysicalAddress)
{
- m_type = CEC_DEVICE_TYPE_RECORDING_DEVICE;
+ m_type = CEC_DEVICE_TYPE_RECORDING_DEVICE;
+}
+
+cec_deck_info CCECRecordingDevice::GetDeckStatus(void) const
+{
+ return m_playbackDevice.GetDeckStatus();
+}
+
+cec_deck_control_mode CCECRecordingDevice::GetDeckControlMode(void) const
+{
+ return m_playbackDevice.GetDeckControlMode();
+}
+
+void CCECRecordingDevice::SetDeckStatus(cec_deck_info deckStatus)
+{
+ m_playbackDevice.SetDeckStatus(deckStatus);
+}
+
+void CCECRecordingDevice::SetDeckControlMode(cec_deck_control_mode mode)
+{
+ m_playbackDevice.SetDeckControlMode(mode);
+}
+
+bool CCECRecordingDevice::TransmitDeckStatus(cec_logical_address dest)
+{
+ return m_playbackDevice.TransmitDeckStatus(dest);
}
* http://www.pulse-eight.net/
*/
+#include "CECBusDevice.h"
#include "CECPlaybackDevice.h"
+#include "CECTuner.h"
namespace CEC
{
- class CCECRecordingDevice : public CCECPlaybackDevice
+ class CCECRecordingDevice : public CCECBusDevice
{
public:
CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = 0);
virtual ~CCECRecordingDevice(void) {};
+
+ /* playback device methods */
+ virtual cec_deck_info GetDeckStatus(void) const;
+ virtual cec_deck_control_mode GetDeckControlMode(void) const;
+
+ virtual void SetDeckStatus(cec_deck_info deckStatus);
+ virtual void SetDeckControlMode(cec_deck_control_mode mode);
+
+ virtual bool TransmitDeckStatus(cec_logical_address dest);
+
+ /* tuner methods */
+ //TODO
+
+ protected:
+ CCECPlaybackDevice m_playbackDevice;
+ CCECTuner m_tuner;
};
}