Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 964aecd60fac62d5dc5479d22a0c53ef > files > 286

libmusicbrainz3-devel-3.0.3-2.fc14.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libmusicbrainz3: query.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>query.h</h1>  </div>
</div>
<div class="contents">
<a href="query_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * MusicBrainz -- The Internet music metadatabase</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2006 Lukas Lalinsky</span>
<a name="l00005"></a>00005 <span class="comment"> *  </span>
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU Lesser General Public</span>
<a name="l00008"></a>00008 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00009"></a>00009 <span class="comment"> * version 2.1 of the License, or (at your option) any later version.</span>
<a name="l00010"></a>00010 <span class="comment"> * </span>
<a name="l00011"></a>00011 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00014"></a>00014 <span class="comment"> * Lesser General Public License for more details.</span>
<a name="l00015"></a>00015 <span class="comment"> * </span>
<a name="l00016"></a>00016 <span class="comment"> * You should have received a copy of the GNU Lesser General Public</span>
<a name="l00017"></a>00017 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00018"></a>00018 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef __MUSICBRAINZ3_QUERY_H__</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define __MUSICBRAINZ3_QUERY_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="webservice_8h.html">musicbrainz3/webservice.h</a>&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="metadata_8h.html">musicbrainz3/metadata.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="model_8h.html">musicbrainz3/model.h</a>&gt;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>MusicBrainz
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033   
<a name="l00047"></a><a class="code" href="class_music_brainz_1_1_query.html">00047</a>         <span class="keyword">class </span><a class="code" href="defines_8h.html#a2170aeec4b32749d5a7e15bd8474e0ec">MB_API</a> <a class="code" href="class_music_brainz_1_1_query.html" title="A simple interface to the MusicBrainz web service.">Query</a>
<a name="l00048"></a>00048         {
<a name="l00049"></a>00049         <span class="keyword">public</span>:
<a name="l00050"></a>00050 
<a name="l00074"></a>00074                 <a class="code" href="class_music_brainz_1_1_query.html" title="A simple interface to the MusicBrainz web service.">Query</a>(<a class="code" href="class_music_brainz_1_1_i_web_service.html" title="An interface all concrete web service classes have to implement.">IWebService</a> *ws = NULL, <span class="keyword">const</span> std::string &amp;clientId = std::string());
<a name="l00075"></a>00075 
<a name="l00079"></a>00079                 <span class="keyword">virtual</span> ~<a class="code" href="class_music_brainz_1_1_query.html" title="A simple interface to the MusicBrainz web service.">Query</a>();
<a name="l00080"></a>00080                  
<a name="l00102"></a>00102                 <a class="code" href="class_music_brainz_1_1_artist.html" title="Represents an artist.">Artist</a> *getArtistById(<span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00103"></a>00103                                                           <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_artist_includes.html" title="A specification on how much data to return with a artist.">ArtistIncludes</a> *include = NULL);
<a name="l00104"></a>00104 
<a name="l00105"></a>00105                 <a class="code" href="class_music_brainz_1_1_label.html" title="Represents a record label.">Label</a> *getLabelById(<span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00106"></a>00106                                                           <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_label_includes.html" title="A specification on how much data to return with a label.">LabelIncludes</a> *include = NULL);
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                 <a class="code" href="class_music_brainz_1_1_release_group.html" title="Represents a Release Group.">ReleaseGroup</a> *getReleaseGroupById(<span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00109"></a>00109                                                           <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_release_group_includes.html" title="A specification on how much data to return with a release group.">ReleaseGroupIncludes</a> *include = NULL);
<a name="l00110"></a>00110 
<a name="l00132"></a>00132                 <a class="code" href="class_music_brainz_1_1_release.html" title="Represents a Release.">Release</a> *getReleaseById(<span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00133"></a>00133                                                                 <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_release_includes.html" title="A specification on how much data to return with a release.">ReleaseIncludes</a> *include = NULL);
<a name="l00134"></a>00134                 
<a name="l00156"></a>00156                 <a class="code" href="class_music_brainz_1_1_track.html" title="Represents a track.">Track</a> *getTrackById(<span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00157"></a>00157                                                         <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_track_includes.html" title="A specification on how much data to return with a track.">TrackIncludes</a> *include = NULL);
<a name="l00158"></a>00158                 
<a name="l00182"></a>00182                 <a class="code" href="class_music_brainz_1_1_user.html" title="Represents a MusicBrainz user.">User</a> *getUserByName(<span class="keyword">const</span> std::string &amp;name);
<a name="l00183"></a>00183                 
<a name="l00198"></a>00198                 <a class="code" href="namespace_music_brainz.html#abe8403b69433a512ead71f9bc48d533b" title="A vector of pointers to ArtistResult objects.">ArtistResultList</a> getArtists(<span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_artist_filter.html" title="A filter for the artist collection.">ArtistFilter</a> *filter);
<a name="l00199"></a>00199 
<a name="l00200"></a>00200                 <a class="code" href="namespace_music_brainz.html#a5205ef9232e98db46647a60458e928e3" title="A vector of pointers to ArtistResult objects.">LabelResultList</a> getLabels(<span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_label_filter.html" title="A filter for the label collection.">LabelFilter</a> *filter);
<a name="l00201"></a>00201 
<a name="l00202"></a>00202                 <a class="code" href="namespace_music_brainz.html#ab5d3760a323aeccce698d2b2bef0f863">ReleaseGroupResultList</a> getReleaseGroups(<span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_release_group_filter.html">ReleaseGroupFilter</a> *filter);
<a name="l00203"></a>00203 
<a name="l00218"></a>00218                 <a class="code" href="namespace_music_brainz.html#a9cef73753a828dc1bd8b24d7b9b4c2c4" title="A vector of pointers to ReleaseResult objects.">ReleaseResultList</a> getReleases(<span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_release_filter.html" title="A filter for the release collection.">ReleaseFilter</a> *filter);
<a name="l00219"></a>00219                 
<a name="l00234"></a>00234                 <a class="code" href="namespace_music_brainz.html#a0fb23b78250a3a73f6ae3f57a6721813" title="A vector of pointers to TrackResult objects.">TrackResultList</a> getTracks(<span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_track_filter.html" title="A filter for the track collection.">TrackFilter</a> *filter);
<a name="l00235"></a>00235                 
<a name="l00254"></a>00254                  <span class="keywordtype">void</span> submitPuids(<span class="keyword">const</span> std::map&lt;std::string, std::string&gt; &amp;tracks2puids);
<a name="l00255"></a>00255                 
<a name="l00274"></a>00274                  <span class="keywordtype">void</span> submitIsrcs(<span class="keyword">const</span> std::map&lt;std::string, std::string&gt; &amp;tracks2isrcs);
<a name="l00275"></a>00275                  
<a name="l00276"></a>00276         <span class="keyword">protected</span>:
<a name="l00277"></a>00277         
<a name="l00278"></a>00278                 <a class="code" href="class_music_brainz_1_1_metadata.html" title="Represents a parsed Music Metadata XML document.">Metadata</a> *getFromWebService(<span class="keyword">const</span> std::string &amp;entity,
<a name="l00279"></a>00279                                                                         <span class="keyword">const</span> std::string &amp;<span class="keywordtype">id</span>,
<a name="l00280"></a>00280                                                                         <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_i_includes.html" title="An interface implemented by include tag generators.">IIncludes</a> *include = NULL,
<a name="l00281"></a>00281                                                                         <span class="keyword">const</span> <a class="code" href="class_music_brainz_1_1_i_filter.html" title="A filter for collections.">IFilter</a> *filter = NULL);
<a name="l00282"></a>00282                 
<a name="l00283"></a>00283         <span class="keyword">private</span>:
<a name="l00284"></a>00284         
<a name="l00285"></a>00285                 <span class="keyword">class </span>QueryPrivate;
<a name="l00286"></a>00286                 QueryPrivate *d;
<a name="l00287"></a>00287         };
<a name="l00288"></a>00288         
<a name="l00289"></a>00289 }
<a name="l00290"></a>00290 
<a name="l00291"></a>00291 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>