libmusicbrainz3 3.0.3
|
00001 /* 00002 * MusicBrainz -- The Internet music metadatabase 00003 * 00004 * Copyright (C) 2006 Lukas Lalinsky 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 * 00020 * 00021 */ 00022 00023 #ifndef __MUSICBRAINZ3_METADATA_H__ 00024 #define __MUSICBRAINZ3_METADATA_H__ 00025 00026 #include <musicbrainz3/model.h> 00027 #include <musicbrainz3/results.h> 00028 00029 namespace MusicBrainz 00030 { 00031 00042 class MB_API Metadata 00043 { 00044 public: 00045 00046 Metadata(); 00047 00048 virtual ~Metadata(); 00049 00059 Artist *getArtist(bool remove = false); 00060 00066 void setArtist(Artist *artist); 00067 00077 Release *getRelease(bool remove = false); 00078 00084 void setRelease(Release *release); 00085 00095 ReleaseGroup *getReleaseGroup(bool remove = false); 00096 00102 void setReleaseGroup(ReleaseGroup *releaseGroup); 00103 00113 Track *getTrack(bool remove = false); 00114 00120 void setTrack(Track *track); 00121 00131 Label *getLabel(bool remove = false); 00132 00138 void setLabel(Label *label); 00139 00147 UserList &getUserList(); 00148 UserList getUserList(bool remove); 00149 00155 ArtistResultList &getArtistResults(); 00156 ArtistResultList getArtistResults(bool remove); 00157 00163 TrackResultList &getTrackResults(); 00164 TrackResultList getTrackResults(bool remove); 00165 00171 ReleaseResultList &getReleaseResults(); 00172 ReleaseResultList getReleaseResults(bool remove); 00173 00179 ReleaseGroupResultList &getReleaseGroupResults(); 00180 ReleaseGroupResultList getReleaseGroupResults(bool remove); 00181 00182 LabelResultList &getLabelResults(); 00183 LabelResultList getLabelResults(bool remove); 00184 00185 private: 00186 00187 class MetadataPrivate; 00188 MetadataPrivate *d; 00189 }; 00190 00191 } 00192 00193 #endif 00194