29 #include "Utils/Pimpl.h" 30 #include "Utils/Library/SearchMode.h" 60 bool operator==(
const Filter& other);
70 QStringList
filtertext(
bool with_percent)
const;
87 void setFiltertext(
const QString& str, SearchModeMask search_mode);
93 Filter::Mode
mode()
const;
bool isUseable() const
Invalid mode is not usable. Invalid genre means, that this is a valid query -> Usable....
void setInvalidGenre(bool b)
Sets a genre, which is not searched directly. This is meant to fetch all tracks which contains no gen...
static QString text(Mode mode)
Get an human readable string for the mode.
void setFiltertext(const QString &str, SearchModeMask search_mode)
set comma separated filtertext. Usually this is the string found at the search box in the library
QStringList filtertext(bool with_percent) const
get splitted filtertext with or without percent. Needed for file search for example where cissearch i...
The Filter class.
Definition: Filter.h:40
bool cleared() const
Is the searchterm empty?
bool isInvalidGenre() const
Is the invalid genre mode active?
void setMode(Filter::Mode mode)
Sets the Filter::Mode.
QStringList searchModeFiltertext(bool with_percent) const
get splitted filtertext with or without percent but converts the search string suitable for cissearch...
Filter::Mode mode() const
Returns the filtermode.
void clear()
Clear the searchterm. We are not looking for an invalid genre, too.
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:30