X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreusersettings.h;h=01a72c8111929adf67e91d39cfe9205079bd2678;hb=cdc6091a2e02b84a48937cda287a0769ceb8726a;hp=eee2e5733757ff29fa9678d7abb396f4496bcfdd;hpb=21d8d7f0a79eeeb541664aa80ce481fdbfc41f09;p=quassel.git diff --git a/src/core/coreusersettings.h b/src/core/coreusersettings.h index eee2e573..01a72c81 100644 --- a/src/core/coreusersettings.h +++ b/src/core/coreusersettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef _COREUSERSETTINGS_H_ @@ -23,22 +23,25 @@ #include "coresettings.h" #include "identity.h" +#include "network.h" #include "types.h" #include -class CoreUserSettings : public CoreSettings { - - public: +class CoreUserSettings : public CoreSettings +{ +public: CoreUserSettings(UserId user); - void storeIdentity(const Identity &identity); - void removeIdentity(const Identity &identity); - Identity identity(IdentityId id); QList identityIds(); + void storeIdentity(const Identity &identity); + void removeIdentity(IdentityId id); + + void setSessionState(const QVariant &data); + QVariant sessionState(const QVariant &def = QVariant()); - private: +private: // this stuff should only be accessed by CoreSession! QVariantMap sessionData(); QVariant sessionValue(const QString &key, const QVariant &def = QVariant()); @@ -49,4 +52,5 @@ class CoreUserSettings : public CoreSettings { friend class CoreSession; }; + #endif