Chatterino
|
MessagePredicate checking for message flags. More...
#include <MessageFlagsPredicate.hpp>
Public Member Functions | |
MessageFlagsPredicate (const QString &flags) | |
Create a MessageFlagsPredicate with a list of flags to search for. More... | |
bool | appliesTo (const Message &message) |
Checks whether the message has any of the flags passed in the constructor. More... | |
MessagePredicate checking for message flags.
This predicate will only allow messages with a list of flags. Specified by user-friendly names for the flags.
chatterino::MessageFlagsPredicate::MessageFlagsPredicate | ( | const QString & | flags | ) |
Create a MessageFlagsPredicate with a list of flags to search for.
The flags can be specified by user-friendly names. "deleted" and "disabled" are used for the "Disabled" flag. "sub" and "subscription" are used for the "Subscription" flag. "timeout" is used for the "Timeout" flag. "highlighted" is used for the "Highlighted" flag. "system" is used for the "System" flag.
flags | a string comma seperated list of names for the flags a message should have |
|
virtual |
Checks whether the message has any of the flags passed in the constructor.
message | the message to check |
Implements chatterino::MessagePredicate.