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