21 #ifndef COVERLOCATION_H 22 #define COVERLOCATION_H 26 #include "Utils/Pimpl.h" 131 const QString& cover_fetcher_identifier);
133 void set_search_urls(
const QStringList& urls);
225 #endif // COVERLOCATION_H QString preferred_path() const
Returns the most suitable path for covers. Usually this is the first of local_paths(). If not, the cover_path() is taken. If this file does not exist either, the fallback path is returned (logo)
bool valid() const
returns if the current location is a valid or a standard constructed location
bool has_search_urls() const
Check for existing search urls.
static Location invalid_location()
returns an invalid location
void set_search_term(const QString &search_term)
Set a new search term.
static bool is_invalid(const QString &cover_path)
returns if path is the same as the invalid location path
The CoverLocation class.
Definition: CoverLocation.h:41
static QString get_cover_directory(const QString &append_path)
returns the standard cover directory
QString identifer() const
This identifier may be used in order to check how the cover algorithm determined the locations...
QStringList local_paths() const
returns paths of images in the directory where the soundfiles are located.
static Location cover_location(const QString &album_name, const QString &artist_name)
creates CoverLocation by taking the md5 sum between album_name and artist_name
QString cover_path() const
Returns the standard cover path in the .Sayonara directory.
QStringList search_urls() const
Retrieve the urls where a new cover can be searched.
QString to_string() const
to_string
void add_local_path(const QString &path)
adds an local path to other local paths
The Album class.
Definition: Album.h:38
Definition: SomaFMStation.h:33
The Artist class.
Definition: Artist.h:35
QString search_term() const
Search term for a free search. As a human you would type that search term into your browser...