X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=4cf3427daddb5bacd91686c11a704e9a0d49c18b;hb=f12d6496251729f7d21f4fbcb0814dec7fba4b75;hp=85a26ff53d785e6b485169ea15d893e44b62b6d1;hpb=a68417655dbb2982567642e75e95292fd57e6aec;p=quassel.git diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index 85a26ff5..4cf3427d 100644 --- a/src/core/corehighlightrulemanager.h +++ b/src/core/corehighlightrulemanager.h @@ -25,6 +25,11 @@ class CoreSession; struct RawMessage; +/** + * Core-side specialization for HighlightRuleManager. + * + * Adds the ability to load/save the settings from/to the database. + */ class CoreHighlightRuleManager : public HighlightRuleManager { Q_OBJECT @@ -33,7 +38,12 @@ class CoreHighlightRuleManager : public HighlightRuleManager using HighlightRuleManager::match; public: - explicit CoreHighlightRuleManager(CoreSession *parent); + /** + * Constructor. + * + * @param[in] session Pointer to the parent CoreSession (takes ownership) + */ + explicit CoreHighlightRuleManager(CoreSession *session); virtual const QMetaObject *syncMetaObject() const override { return &HighlightRuleManager::staticMetaObject; } @@ -50,5 +60,11 @@ public slots: } private slots: - void save() const; + /** + * Saves the config to the database. + */ + void save(); + +private: + CoreSession *_coreSession {nullptr}; ///< Pointer to the parent CoreSession };