summaryrefslogtreecommitdiffstats
path: root/src/library/trackcollection.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/library/trackcollection.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/library/trackcollection.h')
-rw-r--r--src/library/trackcollection.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/trackcollection.h b/src/library/trackcollection.h
index 0ce9a23f39..05eef14fb6 100644
--- a/src/library/trackcollection.h
+++ b/src/library/trackcollection.h
@@ -23,7 +23,7 @@
#include <QSharedPointer>
#include <QSqlDatabase>
-#include "configobject.h"
+#include "preferences/usersettings.h"
#include "library/basetrackcache.h"
#include "library/dao/trackdao.h"
#include "library/dao/cratedao.h"
@@ -52,7 +52,7 @@ class TrackCollection : public QObject {
public:
static const int kRequiredSchemaVersion;
- TrackCollection(ConfigObject<ConfigValue>* pConfig);
+ TrackCollection(UserSettingsPointer pConfig);
virtual ~TrackCollection();
bool checkForTables();
@@ -67,7 +67,7 @@ class TrackCollection : public QObject {
void setTrackSource(QSharedPointer<BaseTrackCache> trackSource);
void cancelLibraryScan();
- ConfigObject<ConfigValue>* getConfig() {
+ UserSettingsPointer getConfig() {
return m_pConfig;
}
@@ -94,7 +94,7 @@ class TrackCollection : public QObject {
#endif // __SQLITE3__
private:
- ConfigObject<ConfigValue>* m_pConfig;
+ UserSettingsPointer m_pConfig;
QSqlDatabase m_db;
QSharedPointer<BaseTrackCache> m_defaultTrackSource;
PlaylistDAO m_playlistDao;