![]() |
Sayonara Player
|
#include <CoverLocation.h>
The CoverLocation class.
Public Member Functions | |
CoverLocation (const CoverLocation &cl) | |
CoverLocation & | operator= (const CoverLocation &cl) |
bool | valid () const |
QStringList | local_paths () const |
void | add_local_path (const QString &path) |
QString | local_path (int idx) const |
QString | cover_path () const |
QString | identifer () const |
QStringList | search_urls () const |
void | remove_first_search_url () |
bool | has_search_urls () const |
QString | search_term () const |
void | set_search_term (const QString &search_term) |
QString | to_string () const |
QString | preferred_path () const |
Static Public Member Functions | |
static CoverLocation | get_cover_location (const QString &album_name, const QString &artist_name) |
creates CoverLocation by taking the md5 sum between album_name and artist_name More... | |
static CoverLocation | get_cover_location (const QString &album_name, const QStringList &artists) |
overloaded. Picks major artist out of artists and calls get_cover_location(const QString& album_name, const QString& artist_name) More... | |
static CoverLocation | get_cover_location (const Album &album) |
overloaded. Calls get_cover_location(const QString& album_name, const QStringList& artists) More... | |
static CoverLocation | get_cover_location (const QString &artist) |
The slowest, but by far the most accurate function. Checks all local cover paths by all known tracks for the album. Fetches album from database and calls get_cover_location(const QString& album_name, const QStringList& artists) More... | |
static CoverLocation | get_cover_location (const Artist &artist) |
overloaded. extracts artist name and calls get_cover_location(const QString& artist) More... | |
static CoverLocation | get_cover_location (const MetaData &md) |
overloaded. if MetaData::album_id < 0 calls get_cover_location(const QString& album_name, const QString& artist_name) else extract Album from database and calls get_cover_location(const Album& album) More... | |
static CoverLocation | get_cover_location (const QUrl &url, const QString &target_path) |
fetch a cover from a specific url More... | |
static CoverLocation | getInvalidLocation () |
returns an invalid location More... | |
static bool | isInvalidLocation (const QString &cover_path) |
returns if path is the same as the invalid location path More... | |
static QString | get_cover_directory (const QString &append_path) |
returns the standard cover directory More... | |
|
static |
returns the standard cover directory
|
static |
creates CoverLocation by taking the md5 sum between album_name and artist_name
|
static |
overloaded. Picks major artist out of artists and calls get_cover_location(const QString& album_name, const QString& artist_name)
album_name | Album name |
artists | List of artists |
|
static |
overloaded. Calls get_cover_location(const QString& album_name, const QStringList& artists)
album |
|
static |
The slowest, but by far the most accurate function. Checks all local cover paths by all known tracks for the album. Fetches album from database and calls get_cover_location(const QString& album_name, const QStringList& artists)
album_id | Album ID |
db_id | Database ID for album |
artist | Artist name |
|
static |
overloaded. extracts artist name and calls get_cover_location(const QString& artist)
artist | Artist object |
|
static |
overloaded. if MetaData::album_id < 0 calls get_cover_location(const QString& album_name, const QString& artist_name) else extract Album from database and calls get_cover_location(const Album& album)
Metadata | object |
|
static |
fetch a cover from a specific url
url | url, the cover has to be fetched from |
target_path | path where the found image has to be saved |
|
static |
returns an invalid location
|
static |
returns if path is the same as the invalid location path
cover_path | the path to be compared |