#include <CoverLocation.h>
|
| Location (const Location &cl) |
|
Location & | operator= (const Location &cl) |
|
bool | valid () const |
| returns if the current location is a valid or a standard constructed location More...
|
|
QStringList | local_paths () const |
| returns paths of images in the directory where the soundfiles are located. More...
|
|
void | add_local_path (const QString &path) |
| adds an local path to other local paths More...
|
|
QString | preferred_path () const |
| Returns the most suitable path for covers. Usually this is the first of local_paths(). If not, the cover_path() is taken. If this file does not exist either, the fallback path is returned (logo) More...
|
|
QString | cover_path () const |
| Returns the standard cover path in the .Sayonara directory. More...
|
|
QString | identifer () const |
| This identifier may be used in order to check how the cover algorithm determined the locations. More...
|
|
QStringList | search_urls () const |
| Retrieve the urls where a new cover can be searched. More...
|
|
bool | has_search_urls () const |
| Check for existing search urls. More...
|
|
QMap< QString, QString > | all_search_urls () const |
|
QString | search_term () const |
| Search term for a free search. As a human you would type that search term into your browser. More...
|
|
void | set_search_term (const QString &search_term) |
| Set a new search term. More...
|
|
void | set_search_term (const QString &search_term, const QString &cover_fetcher_identifier) |
|
void | set_search_urls (const QStringList &urls) |
|
QString | to_string () const |
| to_string More...
|
|
◆ add_local_path()
void Cover::Location::add_local_path |
( |
const QString & |
path | ) |
|
adds an local path to other local paths
- Parameters
-
◆ cover_location() [1/7]
static Location Cover::Location::cover_location |
( |
const QString & |
album_name, |
|
|
const QString & |
artist_name |
|
) |
| |
|
static |
creates CoverLocation by taking the md5 sum between album_name and artist_name
- Parameters
-
- Returns
- CoverLocation object
◆ cover_location() [2/7]
static Location Cover::Location::cover_location |
( |
const QString & |
album_name, |
|
|
const QStringList & |
artists |
|
) |
| |
|
static |
◆ cover_location() [3/7]
static Location Cover::Location::cover_location |
( |
const Album & |
album | ) |
|
|
static |
◆ cover_location() [4/7]
static Location Cover::Location::cover_location |
( |
const QString & |
artist | ) |
|
|
static |
Creates cover token of the form artist_<md5sum of artist>
- Parameters
-
- Returns
- CoverLocation object
◆ cover_location() [5/7]
static Location Cover::Location::cover_location |
( |
const Artist & |
artist | ) |
|
|
static |
◆ cover_location() [6/7]
◆ cover_location() [7/7]
static Location Cover::Location::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
◆ cover_path()
QString Cover::Location::cover_path |
( |
| ) |
const |
Returns the standard cover path in the .Sayonara directory.
- Returns
◆ get_cover_directory()
static QString Cover::Location::get_cover_directory |
( |
const QString & |
append_path | ) |
|
|
static |
returns the standard cover directory
- Returns
- usually ~/.Sayonara/covers
◆ has_search_urls()
bool Cover::Location::has_search_urls |
( |
| ) |
const |
Check for existing search urls.
- Returns
◆ identifer()
QString Cover::Location::identifer |
( |
| ) |
const |
This identifier may be used in order to check how the cover algorithm determined the locations.
- Returns
◆ invalid_location()
static Location Cover::Location::invalid_location |
( |
| ) |
|
|
static |
returns an invalid location
- Returns
- CoverLocation object
◆ is_invalid()
static bool Cover::Location::is_invalid |
( |
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
◆ local_paths()
QStringList Cover::Location::local_paths |
( |
| ) |
const |
returns paths of images in the directory where the soundfiles are located.
- Returns
◆ preferred_path()
QString Cover::Location::preferred_path |
( |
| ) |
const |
Returns the most suitable path for covers. Usually this is the first of local_paths(). If not, the cover_path() is taken. If this file does not exist either, the fallback path is returned (logo)
- Returns
◆ search_term()
QString Cover::Location::search_term |
( |
| ) |
const |
Search term for a free search. As a human you would type that search term into your browser.
- Returns
◆ search_urls()
QStringList Cover::Location::search_urls |
( |
| ) |
const |
Retrieve the urls where a new cover can be searched.
- Returns
◆ set_search_term()
void Cover::Location::set_search_term |
( |
const QString & |
search_term | ) |
|
Set a new search term.
- Parameters
-
◆ to_string()
QString Cover::Location::to_string |
( |
| ) |
const |
◆ valid()
bool Cover::Location::valid |
( |
| ) |
const |
returns if the current location is a valid or a standard constructed location
- Returns