projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: Fix build without SSL
[quassel.git]
/
src
/
core
/
corehighlightrulemanager.h
diff --git
a/src/core/corehighlightrulemanager.h
b/src/core/corehighlightrulemanager.h
index
85a26ff
..
4cf3427
100644
(file)
--- a/
src/core/corehighlightrulemanager.h
+++ b/
src/core/corehighlightrulemanager.h
@@
-25,6
+25,11
@@
class CoreSession;
struct RawMessage;
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
class CoreHighlightRuleManager : public HighlightRuleManager
{
Q_OBJECT
@@
-33,7
+38,12
@@
class CoreHighlightRuleManager : public HighlightRuleManager
using HighlightRuleManager::match;
public:
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; }
virtual const QMetaObject *syncMetaObject() const override { return &HighlightRuleManager::staticMetaObject; }
@@
-50,5
+60,11
@@
public slots:
}
private slots:
}
private slots:
- void save() const;
+ /**
+ * Saves the config to the database.
+ */
+ void save();
+
+private:
+ CoreSession *_coreSession {nullptr}; ///< Pointer to the parent CoreSession
};
};