X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fsqlitestorage.h;h=1185f9dcbd1ded87a1fee0e6789e95197a396dcd;hp=3f213067a1b860e36e8b69a9dedc5f39c7093778;hb=5e5714fb2abf8feaf9cc4a27a26e86f2f9c45b30;hpb=aca3263f8f94e0d6640bdf857e71115151b85037 diff --git a/src/core/sqlitestorage.h b/src/core/sqlitestorage.h index 3f213067..1185f9dc 100644 --- a/src/core/sqlitestorage.h +++ b/src/core/sqlitestorage.h @@ -34,6 +34,8 @@ public: SqliteStorage(QObject *parent = 0); virtual ~SqliteStorage(); + virtual AbstractSqlMigrationReader *createMigrationReader(); + public slots: /* General */ @@ -125,16 +127,6 @@ class SqliteMigrationReader : public SqliteStorage, public AbstractSqlMigrationR public: SqliteMigrationReader(); -// virtual bool readUser(QuasselUserMO &user); -// virtual bool readSender(SenderMO &sender); -// virtual bool readIdentity(IdentityMO &identity); -// virtual bool readIdentityNick(IdentityNickMO &identityNick); -// virtual bool readNetwork(NetworkMO &network); -// virtual bool readBuffer(BufferMO &buffer); -// virtual bool readBacklog(BacklogMO &backlog); -// virtual bool readIrcServer(IrcServerMO &ircserver); -// virtual bool readUserSetting(UserSettingMO &userSetting); - virtual bool readMo(QuasselUserMO &user); virtual bool readMo(SenderMO &sender); virtual bool readMo(IdentityMO &identity); @@ -153,6 +145,8 @@ protected: virtual inline bool commit() { return logDb().commit(); } }; - +inline AbstractSqlMigrationReader *SqliteStorage::createMigrationReader() { + return new SqliteMigrationReader(); +} #endif