cec: renamed all Broadcast...() and Report...() methods to Transmit...()
[deb_libcec.git] / src / lib / devices / CECBusDevice.h
index 8d5eafb92a2c2b86423c797a349efcb6a365be2a..4c7e54066c9ae4f41c70b23a6085f0d6a5ddbc9b 100644 (file)
@@ -42,6 +42,8 @@ namespace CEC
 
   class CCECBusDevice
   {
+    friend class CCECProcessor;
+
   public:
     CCECBusDevice(CCECProcessor *processor, cec_logical_address address, uint16_t iPhysicalAddress = 0);
     virtual ~CCECBusDevice(void);
@@ -79,17 +81,17 @@ namespace CEC
     virtual CCECProcessor *GetProcessor() const { return m_processor; }
     virtual CCECCommandHandler *GetHandler(void) const { return m_handler; };
 
-    virtual bool ReportCECVersion(cec_logical_address dest);
-    virtual bool ReportDeckStatus(cec_logical_address dest);
-    virtual bool ReportMenuState(cec_logical_address dest, bool bActive = true);
-    virtual bool ReportOSDName(cec_logical_address dest);
-    virtual bool ReportPowerState(cec_logical_address dest);
-    virtual bool ReportVendorID(cec_logical_address dest);
+    virtual bool TransmitCECVersion(cec_logical_address dest);
+    virtual bool TransmitDeckStatus(cec_logical_address dest);
+    virtual bool TransmitMenuState(cec_logical_address dest);
+    virtual bool TransmitOSDName(cec_logical_address dest);
+    virtual bool TransmitPowerState(cec_logical_address dest);
+    virtual bool TransmitVendorID(cec_logical_address dest);
 
-    virtual bool BroadcastActiveView(void);
-    virtual bool BroadcastInactiveView(void);
-    virtual bool BroadcastPhysicalAddress(void);
-    virtual bool BroadcastActiveSource(void);
+    virtual bool TransmitActiveView(void);
+    virtual bool TransmitInactiveView(void);
+    virtual bool TransmitPhysicalAddress(void);
+    virtual bool TransmitActiveSource(void);
 
   protected:
     cec_device_type     m_type;
@@ -101,6 +103,7 @@ namespace CEC
     CCECProcessor      *m_processor;
     CCECCommandHandler *m_handler;
     cec_vendor          m_vendor;
+    bool                m_bMenuActive;
     uint8_t             m_iVendorClass;
     uint64_t            m_iLastActive;
     cec_version         m_cecVersion;