libmusicbrainz3  3.0.2
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  * $Id: metadata.h 9218 2007-06-25 20:11:09Z luks $
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  Track *getTrack(bool remove = false);
96 
102  void setTrack(Track *track);
103 
113  Label *getLabel(bool remove = false);
114 
120  void setLabel(Label *label);
121 
129  UserList &getUserList();
130  UserList getUserList(bool remove);
131 
137  ArtistResultList &getArtistResults();
138  ArtistResultList getArtistResults(bool remove);
139 
145  TrackResultList &getTrackResults();
146  TrackResultList getTrackResults(bool remove);
147 
153  ReleaseResultList &getReleaseResults();
154  ReleaseResultList getReleaseResults(bool remove);
155 
156  private:
157 
158  class MetadataPrivate;
159  MetadataPrivate *d;
160  };
161 
162 }
163 
164 #endif
165 
std::vector< User * > UserList
A vector of pointers to User objects.
Definition: lists.h:70
Represents an artist.
Definition: artist.h:46
std::vector< ArtistResult * > ArtistResultList
A vector of pointers to ArtistResult objects.
Definition: lists.h:52
std::vector< TrackResult * > TrackResultList
A vector of pointers to TrackResult objects.
Definition: lists.h:68
Represents a track.
Definition: track.h:51
Definition: artist.h:32
Represents a parsed Music Metadata XML document.
Definition: metadata.h:42
std::vector< ReleaseResult * > ReleaseResultList
A vector of pointers to ReleaseResult objects.
Definition: lists.h:62
Represents a record label.
Definition: label.h:38
#define MB_API
Definition: defines.h:40
Represents a Release.
Definition: release.h:47