X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsettings.h;h=7142e72231ad070c1429f818e182e5cedc06094b;hp=9fe6e64ba2f2c08d43e72cebd60ce5557382edc1;hb=0b881e26eb5d741effae4a8096b319c9f5bcd462;hpb=ec17201104f75eafaddccc174de8709b42b15ccb diff --git a/src/common/settings.h b/src/common/settings.h index 9fe6e64b..7142e722 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * 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 * @@ -30,16 +30,19 @@ class Settings : private QSettings { public: virtual ~Settings(); - static void setGuiValue(QString, QVariant) {}; - static QVariant guiValue(QString, QVariant = QVariant()) { return QVariant(); } + //static void setGuiValue(QString, QVariant) {}; + //static QVariant guiValue(QString, QVariant = QVariant()) { return QVariant(); } + + enum Mode { Default, Custom }; + protected: Settings(QString group = "General"); void setGroup(QString group); virtual QStringList allLocalKeys(); - virtual QStringList localChildKeys(); - virtual QStringList localChildGroups(); + virtual QStringList localChildKeys(const QString &rootkey = QString()); + virtual QStringList localChildGroups(const QString &rootkey = QString()); //virtual QStringList allSessionKeys() = 0; virtual QStringList sessionKeys() = 0;