X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fdevices%2FCECRecordingDevice.cpp;h=702f7a47b40175261c02c01ef6cb515898759cb0;hb=2dbd78f8f765f83e98190c01a123c569aea7c5b6;hp=e5ae9d8fbf74215b6743551200b7281e2cd9f24d;hpb=51b2a0943d227f8090948c3d603c643e410cd17d;p=deb_libcec.git diff --git a/src/lib/devices/CECRecordingDevice.cpp b/src/lib/devices/CECRecordingDevice.cpp index e5ae9d8..702f7a4 100644 --- a/src/lib/devices/CECRecordingDevice.cpp +++ b/src/lib/devices/CECRecordingDevice.cpp @@ -35,8 +35,34 @@ using namespace CEC; CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) : - CCECBusDevice(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_strDeviceName = "Recorder"; + m_type = CEC_DEVICE_TYPE_RECORDING_DEVICE; +} + +cec_deck_info CCECRecordingDevice::GetDeckStatus(void) +{ + return m_playbackDevice.GetDeckStatus(); +} + +cec_deck_control_mode CCECRecordingDevice::GetDeckControlMode(void) +{ + 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); }