X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=88b398a2452a37be971ca3670ec2fc2116058675;hp=2015f70a3dc27fc9cfce1d98a190cece0cc9dd41;hb=5e3bcda8c341dbe6846d4723afe7096acca8f304;hpb=25a3ae50ac0d9835283e4f5f10fcfcc10ed5575d 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; }