#include <CoverLocation.h>
|
| CoverLocation (const CoverLocation &) |
|
void | print () const |
|
QString | toString () const |
|
bool | valid () const |
|
QStringList | local_paths () const |
|
QString | local_path (int idx) const |
|
QString | cover_path () const |
|
QString | search_url () const |
|
QString | search_term () const |
|
void | set_search_term (const QString &search_term) |
|
§ get_cover_directory()
static QString CoverLocation::get_cover_directory |
( |
| ) |
|
|
static |
returns the standard cover directory
- Returns
- usually ~/.Sayonara/covers
§ get_cover_location() [1/8]
static CoverLocation CoverLocation::get_cover_location |
( |
const QString & |
album_name, |
|
|
const QString & |
artist_name |
|
) |
| |
|
static |
§ get_cover_location() [2/8]
static CoverLocation CoverLocation::get_cover_location |
( |
const QString & |
album_name, |
|
|
const QStringList & |
artists |
|
) |
| |
|
static |
§ get_cover_location() [3/8]
§ get_cover_location() [4/8]
static CoverLocation CoverLocation::get_cover_location |
( |
int |
album_id, |
|
|
quint8 |
db_id |
|
) |
| |
|
static |
§ get_cover_location() [5/8]
static CoverLocation CoverLocation::get_cover_location |
( |
const QString & |
artist | ) |
|
|
static |
Creates cover token of the form artist_<md5sum of artist>
- Parameters
-
- Returns
- CoverLocation object
§ get_cover_location() [6/8]
§ get_cover_location() [7/8]
§ get_cover_location() [8/8]
static CoverLocation CoverLocation::get_cover_location |
( |
const QUrl & |
url, |
|
|
const QString & |
target_path |
|
) |
| |
|
static |
fetch a cover from a specific url
- Parameters
-
url | url, the cover has to be fetched from |
target_path | path where the found image has to be saved |
- Returns
- CoverLocation object
§ get_cover_location_by_searchstring()
static CoverLocation CoverLocation::get_cover_location_by_searchstring |
( |
const QString & |
search_string, |
|
|
const QString & |
target_path |
|
) |
| |
|
static |
fetch a cover for a specific search string
- Parameters
-
search_string | the string where the cover has to be fetched for |
target_path | path where the found image has to be saved |
- Returns
- CoverLocation object
§ getInvalidLocation()
§ isInvalidLocation()
static bool CoverLocation::isInvalidLocation |
( |
const QString & |
cover_path | ) |
|
|
static |
returns if path is the same as the invalid location path
- Parameters
-
cover_path | the path to be compared |
- Returns