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 8466 2006-09-05 08:59:44Z 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                 
00111                 UserList &getUserList();
00112                 UserList getUserList(bool remove);
00113                 
00119                 ArtistResultList &getArtistResults();
00120                 ArtistResultList getArtistResults(bool remove);
00121                 
00127                 TrackResultList &getTrackResults();
00128                 TrackResultList getTrackResults(bool remove);
00129                 
00135                 ReleaseResultList &getReleaseResults();
00136                 ReleaseResultList getReleaseResults(bool remove);
00137                 
00138         private:
00139         
00140                 class MetadataPrivate;
00141                 MetadataPrivate *d;
00142         };
00143         
00144 }
00145 
00146 #endif
00147 

Generated on Tue Nov 13 04:07:39 2007 for libmusicbrainz3 by  doxygen 1.5.3-20071008