49 std::string
GetImageURL(
unsigned int index = 0)
const;
58 const std::string
GetColor(
unsigned int index)
const;
71 void AddFanart(
const std::string& image,
const std::string& preview,
const std::string& colors);
82 static const unsigned int max_fanart_colors;
94 static bool ParseColors(
const std::string&colorsIn, std::string&colorsOut);
99 std::string strColors;
100 std::string strPreview;
105 std::vector<SFanartData> m_fanart;
void Clear()
Clear all internal fanart data.
Definition: Fanart.cpp:54
std::string GetImageURL(unsigned int index=0) const
Retrieves the fanart full res image URL.
Definition: Fanart.cpp:98
bool Unpack()
Takes the XML formatted string m_xml and unpacks the fanart data contained into the internal data...
Definition: Fanart.cpp:60
/brief CFanart is the core of fanart support and contains all fanart data for a specific show ...
Definition: Fanart.h:30
void Pack()
Takes the internal fanart data and packs it into an XML formatted string in m_xml.
Definition: Fanart.cpp:28
bool SetPrimaryFanart(unsigned int index)
Sets a particular fanart to be the "primary" fanart, or in other words, sets which fanart is actually...
Definition: Fanart.cpp:124
unsigned int GetNumFanarts() const
Returns how many fanarts are stored.
Definition: Fanart.cpp:137
std::string GetPreviewURL(unsigned int index=0) const
Retrieves the fanart preview image URL, or full res image URL if that doesn't exist.
Definition: Fanart.cpp:106
void AddFanart(const std::string &image, const std::string &preview, const std::string &colors)
Adds an image to internal fanart data.
Definition: Fanart.cpp:45
const std::string GetColor(unsigned int index) const
Used to return a specified fanart theme color value.
Definition: Fanart.cpp:114
std::string m_xml
m_xml contains an XML formatted string which is all fanart packed into one string.
Definition: Fanart.h:80
CFanart()
Standard constructor doesn't need to do anything.