X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fstorage.h;fp=src%2Fcore%2Fstorage.h;h=5a0a6405019c60d36cbfa80421a70451a172b851;hp=7cbc3e3dff72c88c55c41899e28199a30a5262d9;hb=436cb365db846985ef5ce508cb5bf925cd903480;hpb=b9169a652a6854b3fa85aee8f833cb9e18a8d510 diff --git a/src/core/storage.h b/src/core/storage.h index 7cbc3e3d..5a0a6405 100644 --- a/src/core/storage.h +++ b/src/core/storage.h @@ -171,6 +171,19 @@ public slots: */ virtual QVariant getUserSetting(UserId userId, const QString &settingName, const QVariant &data = QVariant()) = 0; + //! Store core state + /** + * \param data Active Sessions + */ + virtual void setCoreState(const QVariantList &data) = 0; + + //! Retrieve core state + /** + * \param default Value to return in case it's unset. + * \return Active Sessions + */ + virtual QVariantList getCoreState(const QVariantList &data = QVariantList()) = 0; + /* Identity handling */ virtual IdentityId createIdentity(UserId user, CoreIdentity &identity) = 0; virtual bool updateIdentity(UserId user, const CoreIdentity &identity) = 0;