21 #ifndef COVERLOCATION_H 22 #define COVERLOCATION_H 26 #include "Utils/Pimpl.h" 49 void set_valid(
bool b);
50 void set_identifier(
const QString& identifier);
51 void set_cover_path(
const QString&
cover_path);
80 static bool is_invalid(
const QString& cover_path);
104 QString search_url(
int idx)
const;
127 const QString& cover_fetcher_identifier);
129 void set_search_urls(
const QStringList& urls);
131 void enable_freetext_search(
bool b);
132 bool is_freetext_search_enabled()
const;
140 QString hash()
const;
141 void set_hash(
const QString& str);
144 bool has_audio_file_source()
const;
145 QString audio_file_source()
const;
146 QString audio_file_target()
const;
147 bool set_audio_file_source(
const QString& audio_file_source,
const QString& cover_path);
150 QString local_path_hint()
const;
151 void set_local_path_hint(
const QString& base_path);
153 QString preferred_path()
const;
238 #endif // COVERLOCATION_H 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:43
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...
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.
QString to_string() const
to_string
const QStringList & search_urls() const
Retrieve the urls where a new cover can be searched.
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...