8 * Copyright (C) 2005-2013 Team XBMC
11 * This Program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2, or (at your option)
16 * This Program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with XBMC; see the file COPYING. If not, see
23 * <http://www.gnu.org/licenses/>.
31 #include "utils/ScraperUrl.h"
38 CAlbum(const CFileItem& item);
39 CAlbum() { idAlbum = 0; iRating = 0; iYear = 0; iTimesPlayed = 0; };
40 bool operator<(const CAlbum &a) const;
46 strMusicBrainzAlbumID.Empty();
48 artistCredits.clear();
59 m_strDateOfRelease.Empty();
67 CStdString GetArtistString() const;
68 CStdString GetGenreString() const;
70 /*! \brief Load album information from an XML file.
71 See CVideoInfoTag::Load for a description of the types of elements we load.
72 \param element the root XML element to parse.
73 \param append whether information should be added to the existing tag, or whether it should be reset first.
74 \param prioritise if appending, whether additive tags should be prioritised (i.e. replace or prepend) over existing values. Defaults to false.
75 \sa CVideoInfoTag::Load
77 bool Load(const TiXmlElement *element, bool append = false, bool prioritise = false);
78 bool Save(TiXmlNode *node, const CStdString &tag, const CStdString& strPath);
82 CStdString strMusicBrainzAlbumID;
83 std::vector<std::string> artist;
84 VECARTISTCREDITS artistCredits;
85 std::vector<std::string> genre;
87 std::vector<std::string> moods;
88 std::vector<std::string> styles;
89 std::vector<std::string> themes;
90 std::map<std::string, std::string> art;
95 CStdString m_strDateOfRelease;
103 typedef std::vector<CAlbum> VECALBUMS;