Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/library/schemamanager.h

Go to the documentation of this file.
00001 // schemamanager.h
00002 // Created 12/29/2009 by RJ Ryan (rryan@mit.edu)
00003 
00004 #ifndef SCHEMAMANAGER_H
00005 #define SCHEMAMANAGER_H
00006 
00007 #include <QtSql>
00008 
00009 #include "configobject.h"
00010 #include "library/dao/settingsdao.h"
00011 
00012 class SchemaManager {
00013   public:
00014     static bool upgradeToSchemaVersion(ConfigObject<ConfigValue>* config,
00015                                        QSqlDatabase& db, int targetVersion);
00016   private:
00017     static bool isBackwardsCompatible(SettingsDAO& settings,
00018                                       int currentVersion,
00019                                       int targetVersion);
00020     static int getCurrentSchemaVersion(SettingsDAO& settings);
00021 
00022     static const QString SETTINGS_VERSION_STRING;
00023     static const QString SETTINGS_MINCOMPATIBLE_STRING;
00024 };
00025 
00026 #endif /* SCHEMAMANAGER_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines