/***************************************************************************
- * 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 *
};
-class AccountSettings : public ClientSettings {
+class CoreAccountSettings : public ClientSettings {
public:
- AccountSettings();
+ CoreAccountSettings();
QStringList knownAccounts();
QString lastAccount();
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<QString, QVariantMap> accounts);
+ QHash<QString, QVariantMap> retrieveAllAccounts();
void removeAccount(const QString &account);
};