* @return True when the configuration was persisted, false otherwise.
*/
virtual bool PersistConfiguration(libcec_configuration *configuration) = 0;
+
+ /*!
+ * @return The name of the port
+ */
+ virtual CStdString GetPortName(void) = 0;
};
};
if (m_outBuffer.Pop(msg))
SendMessageToAdapter(msg);
}
+
+CStdString CUSBCECAdapterCommunication::GetPortName(void)
+{
+ CStdString strName;
+ strName = m_port->GetName();
+ return strName;
+}
virtual uint16_t GetFirmwareVersion(void);
virtual bool SetControlledMode(bool controlled);
virtual bool PersistConfiguration(libcec_configuration * UNUSED(configuration)) { return false; } // TODO
+ virtual CStdString GetPortName(void);
void *Process(void);
private: