mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #199, cleaned up contexts a bit after rebasing to current master
* friend CRuntime on top * fixed some public constructors (made protected) * Also made registerWithDBus protected * Fixed some copy/paste issues in getIContextXXX * Reordered private/public sections
This commit is contained in:
@@ -26,29 +26,6 @@ namespace BlackCore
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
bool m_init; /*!< flag */
|
||||
CDBusServer *m_dbusServer;
|
||||
bool m_initDBusConnection;
|
||||
QDBusConnection m_dbusConnection;
|
||||
IContextNetwork *m_contextNetwork;
|
||||
IContextAudio *m_contextAudio;
|
||||
IContextSettings *m_contextSettings;
|
||||
IContextApplication *m_contextApplication;
|
||||
IContextSimulator *m_contextSimulator;
|
||||
|
||||
//! Init
|
||||
void init(const CRuntimeConfig &config);
|
||||
|
||||
//! initialization of DBus connection (where applicable)
|
||||
void initDBusConnection();
|
||||
|
||||
//! initialization of DBus connection (where applicable)
|
||||
void initDBusServer(const QString &dBusAddress);
|
||||
|
||||
//! post init tasks, mainly connecting context signal slots
|
||||
void initPostSetup();
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
CRuntime(const CRuntimeConfig &config, QObject *parent = nullptr);
|
||||
@@ -93,8 +70,34 @@ namespace BlackCore
|
||||
IContextSimulator *getIContextSimulator();
|
||||
|
||||
private:
|
||||
bool m_init; /*!< flag */
|
||||
CDBusServer *m_dbusServer;
|
||||
bool m_initDBusConnection;
|
||||
QDBusConnection m_dbusConnection;
|
||||
IContextNetwork *m_contextNetwork;
|
||||
IContextAudio *m_contextAudio;
|
||||
IContextSettings *m_contextSettings;
|
||||
IContextApplication *m_contextApplication;
|
||||
IContextSimulator *m_contextSimulator;
|
||||
|
||||
//! Init
|
||||
void init(const CRuntimeConfig &config);
|
||||
|
||||
//! initialization of DBus connection (where applicable)
|
||||
void initDBusConnection();
|
||||
|
||||
//! initialization of DBus connection (where applicable)
|
||||
void initDBusServer(const QString &dBusAddress);
|
||||
|
||||
//! post init tasks, mainly connecting context signal slots
|
||||
void initPostSetup();
|
||||
|
||||
CContextAudio *getCContextAudio();
|
||||
CContextAudio *getCContextAudio() const;
|
||||
|
||||
CContextSimulator *getCContextSimulator();
|
||||
CContextSimulator *getCContextSimulator() const;
|
||||
|
||||
};
|
||||
}
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user