29 #include "Utils/Pimpl.h" 30 #include "Utils/Library/SearchMode.h" 61 bool operator==(
const Filter& other);
69 QStringList
filtertext(
bool with_percent)
const;
86 void set_filtertext(
const QString& str, SearchModeMask search_mode);
92 Filter::Mode
mode()
const;
void set_filtertext(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 is_invalid_genre() const
Is the invalid genre mode active?
TrackID track_id() const
When searching for a track (Filter::Mode == Filter::Mode::Track) this will return the track id.
bool is_usable() const
Invalid mode is not usable. Invalid genre means, that this is a valid query -> Usable....
void set_mode(Filter::Mode mode)
Sets the Filter::Mode.
QStringList search_mode_filtertext(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:32
static QString get_text(Mode mode)
Get an human readable string for the mode.
void set_invalid_genre(bool b)
Sets a genre, which is not searched directly. This is meant to fetch all tracks which contains no gen...