X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreusersettings.h;fp=src%2Fcore%2Fsessionsettings.h;h=4a8621d87ca815cdd65e7f5c5cb01094bcf1e370;hb=1607bfc3101e08fe0aeeaa3b50af6ddc9a4f9e3c;hp=ac18c1714e4202b12b1cfedf9f06b930683c0df5;hpb=8699dd758516d0ded076811e8ea656adc95e69d0;p=quassel.git diff --git a/src/core/sessionsettings.h b/src/core/coreusersettings.h similarity index 80% rename from src/core/sessionsettings.h rename to src/core/coreusersettings.h index ac18c171..4a8621d8 100644 --- a/src/core/sessionsettings.h +++ b/src/core/coreusersettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-08 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,23 +18,26 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _SESSIONSETTINGS_H_ -#define _SESSIONSETTINGS_H_ +#ifndef _COREUSERSETTINGS_H_ +#define _COREUSERSETTINGS_H_ #include "coresettings.h" +#include "identity.h" #include "types.h" #include -// this class should only be used from CoreSession! -//! This class stores and retrieves data from permanent storage for the use in SessionData. -/** \Note Data stored here is not propagated into the actual SessionData! - */ -class SessionSettings : public CoreSettings { +class CoreUserSettings : public CoreSettings { - private: - explicit SessionSettings(UserId user); + public: + CoreUserSettings(UserId user); + + void setIdentity(const Identity &identity); + Identity identity(IdentityId id); + + private: + // this stuff should only be accessed by CoreSession! QVariantMap sessionData(); QVariant sessionValue(const QString &key, const QVariant &def = QVariant()); void setSessionValue(const QString &key, const QVariant &value);