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