summaryrefslogtreecommitdiffstats
path: root/src/controllers/controllermanager.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2016-01-24 22:57:41 -0800
committerRJ Ryan <rryan@mixxx.org>2016-01-24 22:57:41 -0800
commit83e58a40a109acda194078ad8e53d07de68799bd (patch)
tree1a42d622c056aee939aa618abfbcdd0969ed5a23 /src/controllers/controllermanager.h
parent479c9e15159299667f2f7d16d65a8565f656a376 (diff)
Use UserSettings (typedef) instead of ConfigObject.
This will allow us to experiment with different implementations for structured user preferences. It will also reduce repeated typing of template arguments and better represent the purpose of the object.
Diffstat (limited to 'src/controllers/controllermanager.h')
-rw-r--r--src/controllers/controllermanager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controllers/controllermanager.h b/src/controllers/controllermanager.h
index e1b4d061ab..32c35c1166 100644
--- a/src/controllers/controllermanager.h
+++ b/src/controllers/controllermanager.h
@@ -8,7 +8,7 @@
#ifndef CONTROLLERMANAGER_H
#define CONTROLLERMANAGER_H
-#include "configobject.h"
+#include "preferences/usersettings.h"
#include "controllers/controllerenumerator.h"
#include "controllers/controllerpreset.h"
#include "controllers/controllerpresetinfo.h"
@@ -25,7 +25,7 @@ bool controllerCompare(Controller *a,Controller *b);
class ControllerManager : public QObject {
Q_OBJECT
public:
- ControllerManager(ConfigObject<ConfigValue> * pConfig);
+ ControllerManager(UserSettingsPointer pConfig);
virtual ~ControllerManager();
QList<Controller*> getControllers() const;
@@ -37,7 +37,7 @@ class ControllerManager : public QObject {
void setUpDevices() { emit(requestSetUpDevices()); };
void savePresets(bool onlyActive=false) { emit(requestSave(onlyActive)); };
- static QList<QString> getPresetPaths(ConfigObject<ConfigValue>* pConfig);
+ static QList<QString> getPresetPaths(UserSettingsPointer pConfig);
// If pathOrFilename is an absolute path, returns it. If it is a relative
// path and it is contained within any of the directories in presetPaths,
@@ -82,7 +82,7 @@ class ControllerManager : public QObject {
}
private:
- ConfigObject<ConfigValue> *m_pConfig;
+ UserSettingsPointer m_pConfig;
ControllerLearningEventFilter* m_pControllerLearningEventFilter;
QTimer m_pollTimer;
mutable QMutex m_mutex;