libmusicbrainz3  3.0.2
metadata.h
Go to the documentation of this file.
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  * $Id: metadata.h 9218 2007-06-25 20:11:09Z luks $
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                 Track *getTrack(bool remove = false);
00096                 
00102                 void setTrack(Track *track);
00103                 
00113                 Label *getLabel(bool remove = false);
00114                 
00120                 void setLabel(Label *label);
00121                 
00129                 UserList &getUserList();
00130                 UserList getUserList(bool remove);
00131                 
00137                 ArtistResultList &getArtistResults();
00138                 ArtistResultList getArtistResults(bool remove);
00139                 
00145                 TrackResultList &getTrackResults();
00146                 TrackResultList getTrackResults(bool remove);
00147                 
00153                 ReleaseResultList &getReleaseResults();
00154                 ReleaseResultList getReleaseResults(bool remove);
00155                 
00156         private:
00157         
00158                 class MetadataPrivate;
00159                 MetadataPrivate *d;
00160         };
00161         
00162 }
00163 
00164 #endif
00165 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines