26 #ifndef _COVERARTARCHIVE_COVER_ART_
27 #define _COVERARTARCHIVE_COVER_ART_
135 namespace CoverArtArchive
137 class CCoverArtPrivate;
246 std::vector<unsigned char>
FetchFront(
const std::string& ReleaseID)
const;
265 std::vector<unsigned char>
FetchBack(
const std::string& ReleaseID)
const;
345 CCoverArtPrivate *
const m_d;
347 std::vector<unsigned char> MakeRequest(
const std::string& URL)
const;
void SetProxyPort(int ProxyPort)
Set the proxy port to use.
tCoverArtResult LastResult() const
Return result of the last query.
tImageSize
Definition: caa_c.h:216
Definition: CoverArt.h:171
std::vector< unsigned char > FetchBack(const std::string &ReleaseID) const
Request the back image for a release.
CReleaseInfo ReleaseInfo(const std::string &ReleaseID) const
Return release information for a release.
tImageSize
Enumerated type for image size.
Definition: CoverArt.h:153
Definition: CoverArt.h:156
std::string Version() const
Return the library version.
tCoverArtResult
Enumerated type for query status.
Definition: CoverArt.h:165
void SetProxyPassword(const std::string &ProxyPassword)
Set the proxy password to use.
Definition: CoverArt.h:173
Definition: CoverArt.h:167
Definition: CoverArt.h:157
int LastHTTPCode() const
Return HTTP code of the last query.
Definition: CoverArt.h:172
Definition: CoverArt.h:168
std::vector< unsigned char > FetchImage(const std::string &ReleaseID, const std::string &ImageID, tImageSize ImageSize=eSize_Full) const
Fetch a specific image for a release.
void SetProxyHost(const std::string &ProxyHost)
Set the proxy server to use.
Definition: ReleaseInfo.h:36
tCoverArtResult
Definition: caa_c.h:255
Object for making cover art requests.
Definition: CoverArt.h:145
std::vector< unsigned char > FetchFront(const std::string &ReleaseID) const
Request the front image for a release.
Definition: CoverArt.h:155
std::string LastErrorMessage() const
Return error message from the last query.
void SetProxyUserName(const std::string &ProxyUserName)
Set the proxy user name to use.
CCoverArt(const std::string &UserAgent)
Constructor.
Definition: CoverArt.h:170
Definition: CoverArt.h:169