[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

@@ -12,9 +12,9 @@
#define BLACKCORE_COREFACADE_H
#include "corefacadeconfig.h"
#include "blackcore/blackcoreexport.h"
#include "blackcore/data/launchersetup.h"
#include "blackcore/vatsim/vatsimsettings.h"
#include "blackcore/blackcoreexport.h"
#include "blackmisc/identifier.h"
#include "blackmisc/settingscache.h"
@@ -30,6 +30,7 @@ namespace BlackCore
{
class CContextApplication;
class CContextAudio;
class CContextAudioBase;
class CContextNetwork;
class CContextOwnAircraft;
class CContextSimulator;
@@ -91,6 +92,12 @@ namespace BlackCore
//! Context for audio
const Context::IContextAudio *getIContextAudio() const;
//! Context for audio
Context::CContextAudioBase *getCContextAudioBase();
//! Context for audio
const Context::CContextAudioBase *getCContextAudioBase() const;
//! Context for application
Context::IContextApplication *getIContextApplication();
@@ -178,7 +185,7 @@ namespace BlackCore
// There is a reason why we do not use smart pointers here. When the context is deleted
// we need to use deleteLater to gracefully shut the context
Context::IContextApplication *m_contextApplication = nullptr;
Context::IContextAudio *m_contextAudio = nullptr;
Context::CContextAudioBase *m_contextAudio = nullptr;
Context::IContextNetwork *m_contextNetwork = nullptr;
Context::IContextOwnAircraft *m_contextOwnAircraft = nullptr;
Context::IContextSimulator *m_contextSimulator = nullptr;