21#ifndef COVERFETCHMANAGER_H
22#define COVERFETCHMANAGER_H
24#include "Utils/Singleton.h"
25#include "Utils/Pimpl.h"
37 using CoverFetcherPtr = std::shared_ptr<Cover::Fetcher::Base>;
85 QList<Url> radioSearchAddresses(
const QString& stationName,
const QString& radioUrl)
const;
93 const QString& coverFetcherIdentifier)
const;
109 bool isActive(
const CoverFetcherPtr fetcher)
const;
110 bool isActive(
const QString& identifier)
const;
122 Url websiteFetcherUrl(
const QString& url)
const;
124 static bool isSearchstringWebsite(
const QString& searchstring);
127 void serversChanged();
Retrieve Download Urls for Cover Searcher. CoverFetcherInterface can be registered,...
Definition: CoverFetchManager.h:50
CoverFetcherPtr coverfetcher(const Url &url) const
get a CoverFetcherInterface by a specific url
QList< Url > artistAddresses(const QString &artist) const
get urls for a artist search query
QList< Url > searchAddresses(const QString &str, const QString &coverFetcherIdentifier) const
get urls for a fuzzy query
Url directFetcherUrl(const QString &url) const
If the LibraryItem has a reference to a cover download url an appropriate Url object can be retrieved...
QList< Url > albumAddresses(const QString &artist, const QString &album) const
get urls for a album search query
QList< Url > searchAddresses(const QString &str) const
get urls for a fuzzy query
CoverFetcherList coverfetchers() const
fetches all available cover fetcher
void registerCoverFetcher(CoverFetcherPtr fetcher)
Register a cover fetcher. Per default there is one for Discogs, last.fm and Google.
An Url is defined by its identifier and a custom url string. The identifier is the same as being used...
Definition: CoverFetcherUrl.h:17
Definition: EngineUtils.h:33