summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-01-22 14:43:25 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-01-22 14:43:25 (GMT)
commitff6103b78e16383cd4d0191ae39097496be6a65c (patch)
tree8f35bac6c2effec15f2df0fc3ae5b05468a92e2c /Swift/Controllers/HighlightRule.h
parent90d05f4fc34d5ee81593ffacd6333a3ee3787072 (diff)
downloadswift-ff6103b78e16383cd4d0191ae39097496be6a65c.zip
swift-ff6103b78e16383cd4d0191ae39097496be6a65c.tar.bz2
Testing highlight keywords.
Change-Id: I808a4cf454198c41095adf294cb1d19860ed5df5
Diffstat (limited to 'Swift/Controllers/HighlightRule.h')
-rw-r--r--Swift/Controllers/HighlightRule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/HighlightRule.h b/Swift/Controllers/HighlightRule.h
index 523be47..ac1b6be 100644
--- a/Swift/Controllers/HighlightRule.h
+++ b/Swift/Controllers/HighlightRule.h
@@ -30,9 +30,11 @@ namespace Swift {
const std::vector<std::string>& getSenders() const { return senders_; }
void setSenders(const std::vector<std::string>&);
+ const std::vector<boost::regex>& getSenderRegex() const { return senderRegex_; }
const std::vector<std::string>& getKeywords() const { return keywords_; }
void setKeywords(const std::vector<std::string>&);
+ const std::vector<boost::regex>& getKeywordRegex() const { return keywordRegex_; }
bool getNickIsKeyword() const { return nickIsKeyword_; }
void setNickIsKeyword(bool);
@@ -87,6 +89,7 @@ namespace Swift {
ar & matchCase_;
ar & matchWholeWords_;
ar & action_;
+ updateRegex();
}
}