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