Chatterino
SubstringPredicate.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace chatterino {
6 
14 {
15 public:
23  SubstringPredicate(const QString &search);
24 
34  bool appliesTo(const Message &message);
35 
36 private:
38  const QString search_;
39 };
40 
41 } // namespace chatterino
Definition: Application.cpp:48
MessagePredicate checking whether a substring exists in the message.
Definition: SubstringPredicate.hpp:13
SubstringPredicate(const QString &search)
Create a SubstringPredicate with a substring to search for.
Definition: SubstringPredicate.cpp:5
Abstract base class for message predicates.
Definition: MessagePredicate.hpp:17
bool appliesTo(const Message &message)
Checks whether the message contains the substring passed in the constructor.
Definition: SubstringPredicate.cpp:10
Definition: Message.hpp:54