release.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: release.h 8788 2007-01-13 22:26:09Z luks $
00021  */ 
00022 
00023 #ifndef __MUSICBRAINZ3_RELEASE_H__
00024 #define __MUSICBRAINZ3_RELEASE_H__
00025 
00026 #include <string>
00027 #include <musicbrainz3/musicbrainz.h>
00028 #include <musicbrainz3/entity.h>
00029 #include <musicbrainz3/lists.h>
00030 
00031 namespace MusicBrainz
00032 {
00033 
00034         class Artist;
00035         
00047         class MB_API Release : public Entity
00048         {
00049         public:
00050         
00051                 static const std::string TYPE_NONE;
00052         
00053                 static const std::string TYPE_ALBUM;
00054                 static const std::string TYPE_SINGLE;
00055                 static const std::string TYPE_EP;
00056                 static const std::string TYPE_COMPILATION;      
00057                 static const std::string TYPE_SOUNDTRACK;
00058                 static const std::string TYPE_SPOKENWORD;
00059                 static const std::string TYPE_INTERVIEW;
00060                 static const std::string TYPE_AUDIOBOOK;
00061                 static const std::string TYPE_LIVE;
00062                 static const std::string TYPE_REMIX;    
00063                 static const std::string TYPE_OTHER;
00064 
00065                 static const std::string TYPE_OFFICIAL;
00066                 static const std::string TYPE_PROMOTION;
00067                 static const std::string TYPE_BOOTLEG;  
00068         
00075                 Release(const std::string &id = std::string(),
00076                                 const std::string &title = std::string());
00077                 
00081                 ~Release();
00082                 
00094                 std::string getTitle() const;
00095                 
00103                 void setTitle(const std::string &title);
00104 
00119                 std::string getTextLanguage() const;
00120 
00128                 void setTextLanguage(const std::string &language);
00129 
00143                 std::string getTextScript() const;
00144 
00152                 void setTextScript(const std::string &script);
00153 
00159                 Artist *getArtist();
00160                 
00166                 void setArtist(Artist *artist);
00167 
00176                 std::string getAsin() const;
00177                 
00185                 void setAsin(const std::string &asin);
00186                 
00194                 TrackList &getTracks();
00195 
00205                 int getNumTracks() const;
00206                 
00216                 Track *getTrack(int index);
00217                 
00230                 int getTracksOffset() const;
00231                 
00239                 void setTracksOffset(const int offset);
00240                 
00252                 int getTracksCount() const;
00253                 
00261                 void setTracksCount(const int count);
00262                 
00274                 DiscList &getDiscs();
00275                 
00285                 int getNumDiscs() const;
00286                 
00296                 Disc *getDisc(int index);
00297                 
00307                 ReleaseEventList &getReleaseEvents();
00308                 
00318                 int getNumReleaseEvents() const;
00319                 
00329                 ReleaseEvent *getReleaseEvent(int index);
00330 
00336                 void setTypes(const std::vector<std::string> &types);
00337 
00345                 std::vector<std::string> &getTypes();
00346 
00352                 int getNumTypes() const;
00353 
00364                 std::string getType(int index) const;
00365 
00366         private:
00367                 
00368                 class ReleasePrivate;
00369                 ReleasePrivate *d;
00370         };
00371         
00372 }
00373 
00374 #endif
00375 

Generated on Sat Nov 10 21:27:13 2007 for libmusicbrainz3 by  doxygen 1.5.3-20071008