mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #199 , adjusted context classes
* removed usingLocalObjects() now in CContext * removed getRuntime() now in CContext * Constructors no longer public, context can only be obtained via runtime object * runtime class is friend class
This commit is contained in:
@@ -25,9 +25,9 @@ namespace BlackCore
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Context settings interface
|
||||
* Context settings interface
|
||||
*/
|
||||
class IContextSettings : public QObject
|
||||
class IContextSettings : public CContext
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", BLACKCORE_CONTEXTSETTINGS_INTERFACENAME)
|
||||
@@ -40,9 +40,12 @@ namespace BlackCore
|
||||
SettingsNetwork
|
||||
};
|
||||
|
||||
/*!
|
||||
* \brief Service name
|
||||
*/
|
||||
protected:
|
||||
//! DBus version constructor
|
||||
IContextSettings(CRuntimeConfig::ContextMode mode, CRuntime *runtime = nullptr) : CContext(mode, runtime)
|
||||
{}
|
||||
|
||||
public:
|
||||
static const QString &InterfaceName()
|
||||
{
|
||||
static QString s(BLACKCORE_CONTEXTSETTINGS_INTERFACENAME);
|
||||
@@ -88,14 +91,7 @@ namespace BlackCore
|
||||
return s;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief DBus version constructor
|
||||
*/
|
||||
IContextSettings(QObject *parent = nullptr) : QObject(parent) {}
|
||||
|
||||
/*!
|
||||
* Destructor
|
||||
*/
|
||||
//! Destructor
|
||||
virtual ~IContextSettings() {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user