X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=88b398a2452a37be971ca3670ec2fc2116058675;hp=2015f70a3dc27fc9cfce1d98a190cece0cc9dd41;hb=3867471c05de4c463373c6c4d1c414871c14cdc8;hpb=ef3e54f6daebeeaa8d6e105a98711cb1760a637d diff --git a/src/core/core.h b/src/core/core.h index 2015f70a..88b398a2 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -504,6 +504,19 @@ public: static QVariantList backendInfo(); + /** + * Checks if a storage backend is the default storage backend. This + * hardcodes this information into the core (not the client). + * + * \param backend The backend to check. + * + * @return True if storage backend is default, false otherwise. + */ + static inline bool isStorageBackendDefault(const Storage *backend) + { + return (backend->displayName() == "SQLite") ? true : false; + } + static QString setup(const QString &adminUser, const QString &adminPassword, const QString &backend, const QVariantMap &setupData); static inline QTimer &syncTimer() { return instance()->_storageSyncTimer; }