Issue #15 [GUI] Use filter to avoid sending ignored messages over dbus

This commit is contained in:
Mat Sutcliffe
2020-04-30 19:29:44 +01:00
parent 86dd91a064
commit d1e177a4ba
7 changed files with 58 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ namespace BlackMisc
//! This class acts as a SharedState filter when stored in a CVariant.
bool matches(const CVariant &message) const { return match(message.to<CStatusMessage>()); }
//! Technical category names matched by this pattern.
QSet<QString> getCategoryStrings() const { return m_strings; }
//! Returns true if this pattern is a proper subset of the other pattern.
//! \see https://en.wikipedia.org/wiki/Proper_subset
//! \details Pattern A is a proper subset of pattern B iff pattern B would match every category which pattern A matches,