mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[AFV] Ref T739, changed facade config
* core audio mode is remote * plus minor style changes
This commit is contained in:
committed by
Mat Sutcliffe
parent
b0714d3d80
commit
991681a1ea
@@ -14,12 +14,12 @@ namespace BlackCore
|
||||
{
|
||||
return (
|
||||
// those 3 should decide whether we are running the server
|
||||
this->m_network == LocalInDBusServer ||
|
||||
this->m_ownAircraft == LocalInDBusServer ||
|
||||
this->m_simulator == LocalInDBusServer ||
|
||||
m_network == LocalInDBusServer ||
|
||||
m_ownAircraft == LocalInDBusServer ||
|
||||
m_simulator == LocalInDBusServer ||
|
||||
|
||||
// added as work around
|
||||
this->m_audio == LocalInDBusServer
|
||||
m_audio == LocalInDBusServer
|
||||
);
|
||||
}
|
||||
|
||||
@@ -30,11 +30,11 @@ namespace BlackCore
|
||||
|
||||
bool CCoreFacadeConfig::any(CCoreFacadeConfig::ContextMode mode) const
|
||||
{
|
||||
return (this->m_application == mode ||
|
||||
this->m_audio == mode ||
|
||||
this->m_network == mode ||
|
||||
this->m_ownAircraft == mode ||
|
||||
this->m_simulator == mode);
|
||||
return (m_application == mode ||
|
||||
m_audio == mode ||
|
||||
m_network == mode ||
|
||||
m_ownAircraft == mode ||
|
||||
m_simulator == mode);
|
||||
}
|
||||
|
||||
bool CCoreFacadeConfig::anyRemote() const
|
||||
@@ -62,7 +62,6 @@ namespace BlackCore
|
||||
CCoreFacadeConfig CCoreFacadeConfig::remote(const QString &dbusBootstrapAddress)
|
||||
{
|
||||
CCoreFacadeConfig cfg = CCoreFacadeConfig(CCoreFacadeConfig(CCoreFacadeConfig::Remote, dbusBootstrapAddress));
|
||||
cfg.m_audio = CCoreFacadeConfig::LocalInDBusServer;
|
||||
return cfg;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,31 +52,31 @@ namespace BlackCore
|
||||
m_dbusAddress(dbusBootstrapAddress)
|
||||
{}
|
||||
|
||||
//! application mode
|
||||
//! Application mode
|
||||
ContextMode getModeApplication() const { return m_application; }
|
||||
|
||||
//! audio mode
|
||||
//! Audio mode
|
||||
ContextMode getModeAudio() const { return m_audio; }
|
||||
|
||||
//! network mode
|
||||
//! Network mode
|
||||
ContextMode getModeNetwork() const { return m_network; }
|
||||
|
||||
//! own aircraft
|
||||
//! Own aircraft
|
||||
ContextMode getModeOwnAircraft() const { return m_ownAircraft; }
|
||||
|
||||
//! settings mode
|
||||
//! Settings mode
|
||||
ContextMode getModeSettings() const { return m_settings; }
|
||||
|
||||
//! simulator mode
|
||||
//! Simulator mode
|
||||
ContextMode getModeSimulator() const { return m_simulator; }
|
||||
|
||||
//! local settings?
|
||||
//! Local settings?
|
||||
bool hasLocalSettings() const { return m_settings == Local || m_settings == LocalInDBusServer; }
|
||||
|
||||
//! requires server (at least one in server)?
|
||||
//! Requires server (at least one in server)?
|
||||
bool requiresDBusSever() const;
|
||||
|
||||
//! requires DBus connection (at least one remote)?
|
||||
//! Requires DBus connection (at least one remote)?
|
||||
bool requiresDBusConnection() const;
|
||||
|
||||
//! DBus address
|
||||
|
||||
Reference in New Issue
Block a user