X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.h;h=d2e698c7ea936f77e98ea9f1eb8e098136384ba9;hb=e497bef2a6bd36874192ebef7fd1899ce28f7c9c;hp=815030f126c7e08bb7470145cc0edc7e16ce376a;hpb=7b4bac1b744a407d51f0ece67e0d531206ddad0b;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 815030f1..d2e698c7 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -45,6 +45,9 @@ class SessionThread; class SignalProxy; struct NetworkInfo; +class AbstractSqlMigrationReader; +class AbstractSqlMigrationWriter; + class Core : public QObject { Q_OBJECT @@ -424,8 +427,8 @@ private: bool registerStorageBackend(Storage *); void unregisterStorageBackends(); void unregisterStorageBackend(Storage *); - bool migrateBackend(const QString &backend); - bool switchBackend(const QString &backend); + bool selectBackend(const QString &backend); + void createUser(); void saveBackendSettings(const QString &backend, const QVariantMap &settings); QVariantMap promptForSettings(const Storage *storage); @@ -447,6 +450,13 @@ private: QDateTime _startTime; bool _configured; + + + static AbstractSqlMigrationReader *getMigrationReader(Storage *storage); + static AbstractSqlMigrationWriter *getMigrationWriter(Storage *storage); + static void stdInEcho(bool on); + static inline void enableStdInEcho() { stdInEcho(true); } + static inline void disableStdInEcho() { stdInEcho(false); } }; #endif