[AFV] Ref T739, remove implementation details from IContextAudio to keep the DBus interface "pure"

* This was an approach to avoid registration of "local signals"
* that part DID NOT work as planned, as all object's signals are registered
* the refactoring itself nevertheless is NOT a bad idea and has been kept
* as the audio context has this special "concept" and CAfvClient can run on both sides (proxy AND impl.side)
This commit is contained in:
Klaus Basan
2019-10-16 12:36:41 +02:00
parent 632a85d079
commit 383352f79c
11 changed files with 238 additions and 193 deletions

View File

@@ -43,7 +43,7 @@ namespace BlackCore
{
//! Audio context proxy
//! \ingroup dbus
class BLACKCORE_EXPORT CContextAudioProxy : public IContextAudio
class BLACKCORE_EXPORT CContextAudioProxy : public CContextAudioBase
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTAUDIO_INTERFACENAME)
@@ -58,7 +58,7 @@ namespace BlackCore
static void unitTestRelaySignals();
public slots:
//! All Dbus xsinterface overrides
//! All DBus interface overrides
//! \publicsection
//! @{
//! Register a device on a machine (for core/GUI it will return all known devices on all machines)
@@ -76,7 +76,7 @@ namespace BlackCore
protected:
//! Contructor
CContextAudioProxy(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) : IContextAudio(mode, runtime), m_dBusInterface(nullptr) {}
CContextAudioProxy(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime) : CContextAudioBase(mode, runtime), m_dBusInterface(nullptr) {}
//! DBus version constructor
CContextAudioProxy(const QString &serviceName, QDBusConnection &connection, CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime);