X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fsettings.h;h=e2920c2453b7efc2193b5d268e83111fea703aa2;hb=46a76ffbf0e9e7af3d4ceb074c0b8dff461b4a86;hp=647435389879a13c7bedc3a86ec8dd807faa06a4;hpb=adda0fa0aeef6087045256b250ff30c88ee7dc00;p=quassel.git diff --git a/src/common/settings.h b/src/common/settings.h index 64743538..e2920c24 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -44,7 +44,12 @@ public: enum Mode { Default, Custom }; public: + //! Call the given slot on change of the given key virtual void notify(const QString &key, QObject *receiver, const char *slot); + + //! Sets up notification and calls the given slot to set the initial value + void initAndNotify(const QString &key, QObject *receiver, const char *slot, const QVariant &defaultValue = QVariant()); + virtual uint version(); protected: