Filter for tags. More...
#include <tagfilter.hpp>
Public Types | |
enum | FilterMode { Accept, Ignore } |
Defines how filter handles the unspecifed tags. More... | |
Public Member Functions | |
TagFilter (FilterMode mode=Accept) | |
QStringList | acceptedTags () const |
bool | acceptTag (const QString &tag) const |
Returns true if tag is accepted (or not ignored). | |
QStringList | ignoredTags () const |
void | setAcceptedTags (const QStringList &tags) |
void | setIgnoredTags (const QStringList &tags) |
Filter for tags.
TagFilter::TagFilter | ( | FilterMode | mode = Accept |
) |
QStringList TagFilter::acceptedTags | ( | ) | const |
bool TagFilter::acceptTag | ( | const QString & | tag | ) | const |
Returns true if tag is accepted (or not ignored).
Thread-safe.
QStringList TagFilter::ignoredTags | ( | ) | const |
void TagFilter::setAcceptedTags | ( | const QStringList & | tags | ) |
void TagFilter::setIgnoredTags | ( | const QStringList & | tags | ) |