X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorehighlightrulemanager.h;h=064852494116acf81b1bc217e3e08ddb107500b1;hp=85a26ff53d785e6b485169ea15d893e44b62b6d1;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hpb=a68417655dbb2982567642e75e95292fd57e6aec diff --git a/src/core/corehighlightrulemanager.h b/src/core/corehighlightrulemanager.h index 85a26ff5..06485249 100644 --- a/src/core/corehighlightrulemanager.h +++ b/src/core/corehighlightrulemanager.h @@ -25,17 +25,24 @@ 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 - SYNCABLE_OBJECT using HighlightRuleManager::match; public: - explicit CoreHighlightRuleManager(CoreSession *parent); - - virtual const QMetaObject *syncMetaObject() const override { return &HighlightRuleManager::staticMetaObject; } + /** + * Constructor. + * + * @param[in] session Pointer to the parent CoreSession (takes ownership) + */ + explicit CoreHighlightRuleManager(CoreSession *session); bool match(const RawMessage &msg, const QString ¤tNick, const QStringList &identityNicks); @@ -50,5 +57,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 };