refs #559, adjustments cache/settings moved

This commit is contained in:
Klaus Basan
2015-12-18 03:25:03 +01:00
parent 070ba8f158
commit 3ac32fa58e
42 changed files with 87 additions and 98 deletions

View File

@@ -13,7 +13,7 @@
#define BLACKSIMPLUGIN_SIMULATOR_FSX_CONFIG_H
#include "blackgui/pluginconfig.h"
#include "blackcore/settingscache.h"
#include "blackmisc/settingscache.h"
namespace BlackSimPlugin
{

View File

@@ -214,7 +214,7 @@ namespace BlackSimPlugin
private:
QDBusConnection m_conn { "default" };
QDBusServiceWatcher *m_watcher { nullptr };
BlackCore::CSetting<XBusServer> m_xbusServerSetting { this, &CSimulatorXPlaneListener::ps_xbusServerSettingChanged };
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this, &CSimulatorXPlaneListener::ps_xbusServerSettingChanged };
};

View File

@@ -13,7 +13,7 @@
#define BLACKSIMPLUGIN_SIMULATOR_XPLANE_CONFIG_H
#include "blackgui/pluginconfig.h"
#include "blackcore/settingscache.h"
#include "blackmisc/settingscache.h"
namespace BlackSimPlugin
{
@@ -23,12 +23,12 @@ namespace BlackSimPlugin
/*!
* Setting for XBus.
*/
struct XBusServer : public BlackCore::CSettingTrait<QString>
struct XBusServer : public BlackMisc::CSettingTrait<QString>
{
//! \copydoc BlackCore::CSetting::key
//! \copydoc BlackMisc::CSetting::key
static const char *key() { return "xbus/server"; }
//! \copydoc BlackCore::CSetting::defaultValue
//! \copydoc BlackMisc::CSetting::defaultValue
static QString defaultValue() { return QStringLiteral("session"); }
};

View File

@@ -48,7 +48,7 @@ namespace BlackSimPlugin
private:
QScopedPointer<Ui::CSimulatorXPlaneConfigWindow> ui;
BlackCore::CSetting<XBusServer> m_xbusServerSetting { this };
BlackMisc::CSetting<XBusServer> m_xbusServerSetting { this };
};
}