Permalink
Browse files

adds AppendArt to CGUIListItem

  • Loading branch information...
1 parent 5b157ab commit b51a768af9dbe81c9e4da78dc9b25f4a162c798b Jonathan Marshall committed Oct 13, 2012
Showing with 12 additions and 0 deletions.
  1. +6 −0 xbmc/guilib/GUIListItem.cpp
  2. +6 −0 xbmc/guilib/GUIListItem.h
@@ -134,6 +134,12 @@ void CGUIListItem::SetArt(const ArtMap &art)
SetInvalid();
}
+void CGUIListItem::AppendArt(const ArtMap &art)
+{
+ for (ArtMap::const_iterator i = art.begin(); i != art.end(); ++i)
+ SetArt(i->first, i->second);
+}
+
std::string CGUIListItem::GetArt(const std::string &type) const
{
ArtMap::const_iterator i = m_art.find(type);
@@ -89,6 +89,12 @@ class CGUIListItem
*/
void SetArt(const ArtMap &art);
+ /*! \brief append artwork to an item
+ \param art a type:url map for artwork
+ \sa GetArt
+ */
+ void AppendArt(const ArtMap &art);
+
/*! \brief Get a particular art type for an item
\param type type of art to fetch.
\return the art URL, if available, else empty.

0 comments on commit b51a768

Please sign in to comment.