libmusicbrainz3  3.0.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
metadata.h
Go to the documentation of this file.
1 /*
2  * MusicBrainz -- The Internet music metadatabase
3  *
4  * Copyright (C) 2006 Lukas Lalinsky
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  *
21  */
22 
23 #ifndef __MUSICBRAINZ3_METADATA_H__
24 #define __MUSICBRAINZ3_METADATA_H__
25 
26 #include <musicbrainz3/model.h>
27 #include <musicbrainz3/results.h>
28 
29 namespace MusicBrainz
30 {
31 
43  {
44  public:
45 
46  Metadata();
47 
48  virtual ~Metadata();
49 
59  Artist *getArtist(bool remove = false);
60 
66  void setArtist(Artist *artist);
67 
77  Release *getRelease(bool remove = false);
78 
84  void setRelease(Release *release);
85 
95  ReleaseGroup *getReleaseGroup(bool remove = false);
96 
102  void setReleaseGroup(ReleaseGroup *releaseGroup);
103 
113  Track *getTrack(bool remove = false);
114 
120  void setTrack(Track *track);
121 
131  Label *getLabel(bool remove = false);
132 
138  void setLabel(Label *label);
139 
147  UserList &getUserList();
148  UserList getUserList(bool remove);
149 
155  ArtistResultList &getArtistResults();
156  ArtistResultList getArtistResults(bool remove);
157 
163  TrackResultList &getTrackResults();
164  TrackResultList getTrackResults(bool remove);
165 
171  ReleaseResultList &getReleaseResults();
172  ReleaseResultList getReleaseResults(bool remove);
173 
179  ReleaseGroupResultList &getReleaseGroupResults();
180  ReleaseGroupResultList getReleaseGroupResults(bool remove);
181 
182  LabelResultList &getLabelResults();
183  LabelResultList getLabelResults(bool remove);
184 
185  private:
186 
187  class MetadataPrivate;
188  MetadataPrivate *d;
189  };
190 
191 }
192 
193 #endif
194