/usr/include/musicbrainz3/includes.h is in libmusicbrainz3-dev 3.0.2-2.1.
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 | /*
* 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: includes.h 9187 2007-06-20 19:11:15Z luks $
*/
#ifndef __MUSICBRAINZ3_INCLUDES_H__
#define __MUSICBRAINZ3_INCLUDES_H__
#include <string>
#include <vector>
#include <musicbrainz3/musicbrainz.h>
namespace MusicBrainz
{
/**
* An interface implemented by include tag generators.
*/
class MB_API IIncludes
{
public:
typedef std::vector<std::string> IncludeList;
virtual ~IIncludes() {};
/**
* Returns a list of strings containing include parameters for
* the WebService.
*
* @return a list of strings
*/
virtual IncludeList createIncludeTags() const = 0;
};
/**
* A specification on how much data to return with a track.
*
* This implementation uses \e method \e chaining to define list of includes.
*
* Example usage:
* \code
* ArtistIncludes inc = ArtistIncludes().aliases().urlRelations();
* \endcode
*/
class MB_API ArtistIncludes : public IIncludes
{
public:
//! Include aliases.
ArtistIncludes &aliases();
//! Include releases of speficied type.
ArtistIncludes &releases(const std::string &type);
//! Include VA releases of speficied type.
ArtistIncludes &vaReleases(const std::string &type);
//! Include release events for included releases.
ArtistIncludes &releaseEvents();
//! Include artist relations.
ArtistIncludes &artistRelations();
//! Include release relations.
ArtistIncludes &releaseRelations();
//! Include track relations.
ArtistIncludes &trackRelations();
//! Include URL relations.
ArtistIncludes &urlRelations();
IncludeList createIncludeTags() const;
private:
IncludeList includes;
};
/**
* A specification on how much data to return with a release.
*
* This implementation uses \e method \e chaining to define list of includes.
*
* Example usage:
* \code
* ReleaseIncludes inc = ReleaseIncludes().releaseEvents().disc();
* \endcode
*/
class MB_API ReleaseIncludes : public IIncludes
{
public:
//! Include artist.
ReleaseIncludes &artist();
//! Include counts.
ReleaseIncludes &counts();
//! Include release events.
ReleaseIncludes &releaseEvents();
//! Include discs.
ReleaseIncludes &discs();
//! Include tracks.
ReleaseIncludes &tracks();
//! Include artist relations.
ReleaseIncludes &artistRelations();
//! Include release relations.
ReleaseIncludes &releaseRelations();
//! Include track relations.
ReleaseIncludes &trackRelations();
//! Include URL relations.
ReleaseIncludes &urlRelations();
IncludeList createIncludeTags() const;
private:
IncludeList includes;
};
/**
* A specification on how much data to return with a track.
*
* This implementation uses \e method \e chaining to define list of includes.
*
* Example usage:
* \code
* TrackIncludes inc = TrackIncludes().artist().puids().trackRelations();
* \endcode
*/
class MB_API TrackIncludes : public IIncludes
{
public:
//! Include artist.
TrackIncludes &artist();
//! Include releases.
TrackIncludes &releases();
//! Include PUIDs.
TrackIncludes &puids();
//! Include artist relations.
TrackIncludes &artistRelations();
//! Include release relations.
TrackIncludes &releaseRelations();
//! Include track relations.
TrackIncludes &trackRelations();
//! Include URL relations.
TrackIncludes &urlRelations();
IncludeList createIncludeTags() const;
private:
IncludeList includes;
};
}
#endif
|