 |
Sayonara Player
|
21 #ifndef COVERLOCATION_H
22 #define COVERLOCATION_H
25 #include "Utils/Pimpl.h"
47 void set_valid(
bool b);
48 void set_identifier(
const QString& identifier);
49 void set_cover_path(
const QString&
cover_path);
50 void set_local_path_hints(
const QStringList& local_paths);
56 void set_hash(
const QString& str);
65 bool set_audio_file_source(
const QString& audio_filesource,
const QString&
cover_path);
146 const QString& cover_fetcher_identifier);
163 bool is_freetext_search_enabled()
const;
177 QString
hash()
const;
235 QString alternative_path()
const;
305 static QString invalid_path();
324 #endif // COVERLOCATION_H
bool has_search_urls() const
Check for existing search urls.
static Location invalid_location()
returns an invalid location
bool has_audio_file_source() const
Indicates if it is possible to fetch the cover directly from the audio file. If you call this method ...
QString search_term() const
Search term for a free search. As a human you would type that search term into your browser.
void set_search_term(const QString &search_term)
Set a new search term.
static QString get_cover_directory(const QString &append_path)
returns the standard cover directory
QString hash() const
Every combination of album and artist will result in a specific hash. You can find those hashes in th...
QString local_path_dir() const
Calculates the directory where the cover is located.
QString audio_file_source() const
Returns the path to the music file where a cover is stored. You can extract the cover by using Taggin...
The Album class.
Definition: Album.h:39
QString identifer() const
This identifier may be used in order to check how the cover algorithm determined the locations.
Definition: EngineUtils.h:33
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
Definition: org_mpris_media_player2_adaptor.h:21
static Location xcover_location(const Album &album)
overloaded. Calls cover_location(const QString& album_name, const QStringList& artists)
QString cover_path() const
Returns the standard cover path in the .Sayonara directory.
QString local_path() const
Get the path which is nearest to the audio files. Repair/Create a link in the Sayonara cover director...
QString audio_file_target() const
When retrieving the audio_file_source, and you want to save it afterwards, store it at the place retu...
QString to_string() const
to_string
bool is_valid() const
returns if the current location is a valid or a standard constructed location
QStringList local_path_hints() const
Get the paths audio file where a cover is stored in the same directory.
Location()
Default constructor. Creates an invalid Location with the Sayonara logo as cover.
QList< Fetcher::Url > search_urls(bool also_inactive) const
Retrieve the urls where a new cover can be searched.
Fetcher::Url search_url(int idx) const
Search urls contains urls from Google, Discogs or Audioscrobbler. They are ordered as configured in t...
Definition: CoverFetcherUrl.h:8
The Artist class.
Definition: Artist.h:36
void enable_freetext_search(bool b)
When enabling freetext search you specify the search string yourself and it is not generated automati...
The CoverLocation class.
Definition: CoverLocation.h:42
QString preferred_path() const
Use this to retrieve a filepath where a copy of the cover is stored.
void set_search_urls(const QList< Fetcher::Url > &urls)
Set urls where to look for Covers in the internet.