![]() |
Sayonara Player
|
#include <CoverLocation.h>
The CoverLocation class.
Public Member Functions | |
| CoverLocation (const CoverLocation &) | |
| void | print () const |
| QString | toString () 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 (int album_id, quint8 db_id) |
| overloaded. Fetches album from database and calls get_cover_location(const QString& album_name, const QStringList& artists) More... | |
| static CoverLocation | get_cover_location (const QString &artist) |
| Creates cover token of the form artist_<md5sum of artist> 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 | getInvalidLocation () |
| returns an invalid location More... | |
| static QString | get_cover_directory () |
| returns the standard cover directory More... | |
Public Attributes | |
| QString | search_url |
| search_url url where to fetch covers | |
| QString | cover_path |
| cover_path path, in .Sayonara, where cover is stored. Ignored if local_paths are not empty | |
| QStringList | local_paths |
| local_paths paths where images can be fetched from if they should not be fetched from the .Sayonara directory | |
| bool | valid |
| valid if CoverLocation object contains a valid download url | |
|
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 |
overloaded. 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 |
|
static |
Creates cover token of the form artist_<md5sum of artist>
| 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 |
returns an invalid location
1.8.11