X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclientsettings.h;h=c874b780290f991c1f2753a10aafd07eb04ea0fd;hp=b14cb45196c2e3c526249d398e5dc94bf1de31a4;hb=da791527a453a98e0fc800336fee4022ec3d4207;hpb=44b22c4419f478a20f6324f9f3a700a2dec56302 diff --git a/src/client/clientsettings.h b/src/client/clientsettings.h index b14cb451..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 * @@ -24,7 +24,6 @@ #include "settings.h" class ClientSettings : public Settings { - Q_OBJECT public: virtual ~ClientSettings(); @@ -40,11 +39,10 @@ class ClientSettings : public Settings { }; -class AccountSettings : public ClientSettings { - Q_OBJECT +class CoreAccountSettings : public ClientSettings { public: - AccountSettings(); + CoreAccountSettings(); QStringList knownAccounts(); QString lastAccount(); @@ -52,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); };