/usr/include/musicbrainz3/results.h is in libmusicbrainz3-dev 3.0.2-2.5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | /*
* MusicBrainz -- The Internet music metadatabase
*
* Copyright (C) 2006 Lukas Lalinsky
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* $Id: results.h 8466 2006-09-05 08:59:44Z luks $
*/
#ifndef __MUSICBRAINZ3_RESULTS_H__
#define __MUSICBRAINZ3_RESULTS_H__
#include <musicbrainz3/model.h>
namespace MusicBrainz
{
/**
* Represents generic search result.
*/
class MB_API Result
{
public:
/**
* Constructor.
*
* @param score an int between 0 and 100 (both inclusive)
*/
Result(int score);
/**
* Destructor.
*/
virtual ~Result() {};
/**
* Returns the result score.
*
* The score indicates how good this result matches the search
* parameters. The higher the value, the better the match.
*
* @return an int between 0 and 100 (both inclusive)
*/
int getScore();
/**
* Sets the result score.
*
* @param score an int between 0 and 100 (both inclusive)
*/
void setScore(int score);
private:
int score;
};
/**
* Represents an artist result.
*
* An \a ArtistResult consists of a \a score and an \a artist. The score
* is a number between 0 and 100, where a higher number indicates a better
* match.
*/
class MB_API ArtistResult : public Result
{
public:
/**
* Constructor.
*/
ArtistResult(Artist *artist, int score);
/**
* Destructor.
*/
~ArtistResult();
/**
* Returns the artist.
*
* @return a pointer to an Artist object
*/
Artist *getArtist();
/**
* Sets the artist.
*
* @param artist a pointer to an Artist object
*/
void setArtist(Artist *artist);
private:
Artist *artist;
};
/**
* Represents an release result.
*
* An \a ReleaseResult consists of a \a score and an \a release. The score
* is a number between 0 and 100, where a higher number indicates a better
* match.
*/
class MB_API ReleaseResult : public Result
{
public:
/**
* Constructor.
*/
ReleaseResult(Release *release, int score);
/**
* Destructor.
*/
~ReleaseResult();
/**
* Returns the release.
*
* @return a pointer to a Release object
*/
Release *getRelease();
/**
* Sets the release.
*
* @param release a pointer to a Release object
*/
void setRelease(Release *release);
private:
Release *release;
};
/**
* Represents an track result.
*
* An \a TrackResult consists of a \a score and an \a track. The score
* is a number between 0 and 100, where a higher number indicates a better
* match.
*/
class MB_API TrackResult : public Result
{
public:
/**
* Constructor.
*/
TrackResult(Track *track, int score);
/**
* Destructor.
*/
~TrackResult();
/**
* Returns the track.
*
* @return a pointer to a Track object
*/
Track *getTrack();
/**
* Sets the track.
*
* @param track a pointer to a Track object
*/
void setTrack(Track *track);
private:
Track *track;
};
}
#endif
|