cec: only switch handlers once when using the generic handler
[deb_libcec.git] / src / lib / devices / CECPlaybackDevice.h
index 24ce072af0e423fba722c7b5b3f393bbe1624724..a188489efc9ba1a53512ffdb7f2dbee5fda5ad0c 100644 (file)
@@ -41,13 +41,16 @@ namespace CEC
     CCECPlaybackDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = 0);
     virtual ~CCECPlaybackDevice(void) {};
 
-    virtual cec_deck_info GetDeckStatus(void) const { return m_deckStatus; };
+    virtual cec_deck_info GetDeckStatus(void);
+    virtual cec_deck_control_mode GetDeckControlMode(void);
 
     virtual void SetDeckStatus(cec_deck_info deckStatus);
+    virtual void SetDeckControlMode(cec_deck_control_mode mode);
 
     virtual bool TransmitDeckStatus(cec_logical_address dest);
 
   protected:
-    cec_deck_info m_deckStatus;
+    cec_deck_info         m_deckStatus;
+    cec_deck_control_mode m_deckControlMode;
   };
 }