Chatterino
BadgePredicate.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace chatterino {
6 
14 {
15 public:
21  BadgePredicate(const QStringList &badges);
22 
31  bool appliesTo(const Message &message) override;
32 
33 private:
35  QStringList badges_;
36 };
37 
38 } // namespace chatterino
Definition: Application.cpp:48
BadgePredicate(const QStringList &badges)
Create an BadgePredicate with a list of badges to search for.
Definition: BadgePredicate.cpp:7
bool appliesTo(const Message &message) override
Checks whether the message contains any of the badges passed in the constructor.
Definition: BadgePredicate.cpp:35
MessagePredicate checking for the badges of a message.
Definition: BadgePredicate.hpp:13
Abstract base class for message predicates.
Definition: MessagePredicate.hpp:17
Definition: Message.hpp:54