fixed a bug with where nicks where not shown in the right category
[quassel.git] / src / client / clientsettings.h
index b14cb45..c874b78 100644 (file)
@@ -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<QString, QVariantMap> accounts);
+    QHash<QString, QVariantMap> retrieveAllAccounts();
     void removeAccount(const QString &account);
 
 };