X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientsettings.h;h=c874b780290f991c1f2753a10aafd07eb04ea0fd;hp=4b2e4e95142d238e5e59ebf826425f6796486823;hb=6cd95dbc8ac28ab7a22e640d9fe6e3a6aff8f8a9;hpb=ec17201104f75eafaddccc174de8709b42b15ccb diff --git a/src/client/clientsettings.h b/src/client/clientsettings.h index 4b2e4e95..c874b780 100644 --- a/src/client/clientsettings.h +++ b/src/client/clientsettings.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel IRC Development Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -39,10 +39,10 @@ class ClientSettings : public Settings { }; -class AccountSettings : public ClientSettings { +class CoreAccountSettings : public ClientSettings { public: - AccountSettings(); + CoreAccountSettings(); QStringList knownAccounts(); QString lastAccount(); @@ -50,8 +50,10 @@ class AccountSettings : public ClientSettings { QString autoConnectAccount(); void setAutoConnectAccount(const QString &account); - void setValue(const QString &account, const QString &key, const QVariant &data); - QVariant value(const QString &account, const QString &key, const QVariant &def = QVariant()); + void storeAccount(const QString name, const QVariantMap &data); + QVariantMap retrieveAccount(const QString &name); + void storeAllAccounts(const QHash accounts); + QHash retrieveAllAccounts(); void removeAccount(const QString &account); };