25 #ifndef SAYONARA_LIBRARY_FILTER_H
26 #define SAYONARA_LIBRARY_FILTER_H
28 #include "Utils/Pimpl.h"
29 #include "Utils/Library/SearchMode.h"
53 bool operator==(
const Filter& other);
57 void setFiltertext(
const QString& str, SearchModeMask search_mode);
58 QStringList filtertext(
bool with_percent)
const;
59 QStringList searchModeFiltertext(
bool with_percent)
const;
61 void setMode(Filter::Mode mode);
62 Filter::Mode mode()
const;
66 bool isUseable()
const;
68 static QString filterModeName(Mode mode);
72 Q_DECLARE_METATYPE(Library::Filter::Mode)