#include <CoverLocation.h>
|
enum | CoverSourceType {
Invalid =0,
SayonaraCoverDir,
LocalPath,
AudioFile
} |
|
|
| 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...
|
|
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...
|
|
const QStringList & | search_urls () const |
| Retrieve the urls where a new cover can be searched. More...
|
|
QString | search_url (int idx) const |
|
bool | has_search_urls () const |
| Check for existing search urls. More...
|
|
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) |
|
void | enable_freetext_search (bool b) |
|
bool | is_freetext_search_enabled () const |
|
QString | to_string () const |
| to_string More...
|
|
QString | hash () const |
|
void | set_hash (const QString &str) |
|
bool | has_audio_file_source () const |
|
QString | audio_file_source () const |
|
QString | audio_file_target () const |
|
bool | set_audio_file_source (const QString &audio_file_source, const QString &cover_path) |
|
QString | local_path_hint () const |
|
void | set_local_path_hint (const QString &base_path) |
|
QString | preferred_path () const |
|
◆ 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
◆ 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()
const 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