X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoresettings.cpp;h=28fb7d597ac9840d25febedb348c4947b3f01b95;hp=579713a0b08784a731929ad4a0f4115f69bff608;hb=5c00beb706c7761d19f9a6b86751193056086b4a;hpb=97d674034551438238c568e8b42efb08e1ba7354 diff --git a/src/core/coresettings.cpp b/src/core/coresettings.cpp index 579713a0..28fb7d59 100644 --- a/src/core/coresettings.cpp +++ b/src/core/coresettings.cpp @@ -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 * @@ -22,7 +22,7 @@ #include -CoreSettings::CoreSettings() : Settings("Core") { +CoreSettings::CoreSettings(const QString group) : Settings(group, Global::coreApplicationName) { } CoreSettings::~CoreSettings() { @@ -44,16 +44,10 @@ uint CoreSettings::port(const uint &def) { return localValue("Port", def).toUInt(); } -QStringList CoreSettings::sessionKeys() { - Q_ASSERT(false); - return QStringList(); +void CoreSettings::setCoreState(const QVariant &data) { + setLocalValue("CoreState", data); } -void CoreSettings::setSessionValue(const QString &key, const QVariant &data) { - Q_ASSERT(false); -} - -QVariant CoreSettings::sessionValue(const QString &key, const QVariant &def) { - Q_ASSERT(false); - return QVariant(); +QVariant CoreSettings::coreState(const QVariant &def) { + return localValue("CoreState", def); }