updated copyright messages for 2013
[deb_libcec.git] / src / lib / devices / CECRecordingDevice.cpp
index e5ae9d8fbf74215b6743551200b7281e2cd9f24d..a6431ec579a262f6fbb7cac3b83621dd581cddd4 100644 (file)
@@ -1,7 +1,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-2013 Pulse-Eight Limited.  All rights reserved.
  * libCEC(R) is an original work, containing original code.
  *
  * libCEC(R) is a trademark of Pulse-Eight Limited.
  *     http://www.pulse-eight.net/
  */
 
+#include "env.h"
 #include "CECRecordingDevice.h"
 
 using namespace CEC;
+using namespace PLATFORM;
 
-CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = 0 */) :
-    CCECBusDevice(processor, address, iPhysicalAddress)
+CCECRecordingDevice::CCECRecordingDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress /* = CEC_INVALID_PHYSICAL_ADDRESS */) :
+    CCECPlaybackDevice(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;
+}
+
+void CCECRecordingDevice::ResetDeviceStatus(void)
+{
+  CLockObject lock(m_mutex);
+  m_tuner.ResetDeviceStatus();
+  CCECPlaybackDevice::ResetDeviceStatus();
 }