Ref T709 Encapsulate the CSettingsProvider pointer in a CSettingsAware base class.

This commit is contained in:
Mat Sutcliffe
2019-08-13 19:30:01 +01:00
parent 463ed4bfbd
commit 7295ac5331
4 changed files with 36 additions and 22 deletions

View File

@@ -18,7 +18,7 @@
namespace XSwiftBus
{
//! DBus base object
class CDBusObject
class CDBusObject : public CSettingsAware
{
public:
//! Constructor
@@ -80,14 +80,6 @@ namespace XSwiftBus
//! Invoke all pending DBus calls. They will be executed in the calling thread.
void invokeQueuedDBusCalls();
//! Get the settings
CSettings getSettings() const;
//! Set the settings
bool setSettings(const CSettings &s);
CSettingsProvider *m_settingsProvider; //!< get the settings from here
private:
static void dbusObjectPathUnregisterFunction(DBusConnection *connection, void *data);
static DBusHandlerResult dbusObjectPathMessageFunction(DBusConnection *connection, DBusMessage *message, void *data);