Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 3a69a05a98d7cfa0151aaf9747814697 > files > 84

libmusicbrainz3-devel-3.0.3-3.fc15.i686.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: MusicBrainz::IWebService Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libmusicbrainz3&#160;<span id="projectnumber">3.0.3</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_music_brainz_1_1_i_web_service.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>MusicBrainz::IWebService Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="MusicBrainz::IWebService" -->
<p>An interface all concrete web service classes have to implement.  
<a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for MusicBrainz::IWebService:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_music_brainz_1_1_i_web_service.png" usemap="#MusicBrainz::IWebService_map" alt=""/>
  <map id="MusicBrainz::IWebService_map" name="MusicBrainz::IWebService_map">
<area href="class_music_brainz_1_1_web_service.html" alt="MusicBrainz::WebService" shape="rect" coords="0,56,160,80"/>
</map>
 </div></div>

<p><a href="class_music_brainz_1_1_i_web_service-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_brainz_1_1_i_web_service.html#a69f03af504c1274d7b6a5f41fb0b7e99">~IWebService</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_brainz_1_1_i_web_service.html#a366d622c1eed452af3756ee955ef62c3">get</a> (const std::string &amp;entity, const std::string &amp;id, const <a class="el" href="class_music_brainz_1_1_i_includes.html#afecd9a28c3be5892ec4ce11bcb4fd66e">IIncludes::IncludeList</a> &amp;include, const <a class="el" href="class_music_brainz_1_1_i_filter.html#aaba1f8574aef404c9df93d340f10d611">IFilter::ParameterList</a> &amp;filter, const std::string &amp;version=&quot;1&quot;)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_music_brainz_1_1_query.html" title="A simple interface to the MusicBrainz web service.">Query</a> the web service.  <a href="#a366d622c1eed452af3756ee955ef62c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_music_brainz_1_1_i_web_service.html#a6f16a6c0135d94fb970c36b92aa2af7f">post</a> (const std::string &amp;entity, const std::string &amp;id, const std::string &amp;data, const std::string &amp;version=&quot;1&quot;)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Submit data to the web service.  <a href="#a6f16a6c0135d94fb970c36b92aa2af7f"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An interface all concrete web service classes have to implement. </p>
<p>All web service classes have to implement this and follow the method specifications. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a69f03af504c1274d7b6a5f41fb0b7e99"></a><!-- doxytag: member="MusicBrainz::IWebService::~IWebService" ref="a69f03af504c1274d7b6a5f41fb0b7e99" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual MusicBrainz::IWebService::~IWebService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a366d622c1eed452af3756ee955ef62c3"></a><!-- doxytag: member="MusicBrainz::IWebService::get" ref="a366d622c1eed452af3756ee955ef62c3" args="(const std::string &amp;entity, const std::string &amp;id, const IIncludes::IncludeList &amp;include, const IFilter::ParameterList &amp;filter, const std::string &amp;version=&quot;1&quot;)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string MusicBrainz::IWebService::get </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>entity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_music_brainz_1_1_i_includes.html#afecd9a28c3be5892ec4ce11bcb4fd66e">IIncludes::IncludeList</a> &amp;&#160;</td>
          <td class="paramname"><em>include</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_music_brainz_1_1_i_filter.html#aaba1f8574aef404c9df93d340f10d611">IFilter::ParameterList</a> &amp;&#160;</td>
          <td class="paramname"><em>filter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>version</em> = <code>&quot;1&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><a class="el" href="class_music_brainz_1_1_query.html" title="A simple interface to the MusicBrainz web service.">Query</a> the web service. </p>
<p>Using this method, you can either get a resource by id (using the <em>id</em> parameter, or perform a query on all resources of a type.</p>
<p>The <em>filter</em> and the <em>id</em> parameter exclude each other. If you are using a filter, you may not set <em>id</em> and vice versa.</p>
<p>Returns a file-like object containing the result or raises a <a class="el" href="class_music_brainz_1_1_web_service_error.html" title="A web service error has occurred.">WebServiceError</a> or one of its subclasses in case of an error. Which one is used depends on the implementing class.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">entity</td><td>a string containing the entity's name </td></tr>
    <tr><td class="paramname">id</td><td>a string containing a UUID, or the empty string </td></tr>
    <tr><td class="paramname">include</td><td>a tuple containing values for the 'inc' parameter </td></tr>
    <tr><td class="paramname">filter</td><td>parameters, depending on the entity </td></tr>
    <tr><td class="paramname">version</td><td>a string containing the web service version to use</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>a string contaning the returned data</dd></dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_music_brainz_1_1_web_service_error.html" title="A web service error has occurred.">WebServiceError</a>,:</td><td>in case of errors </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_music_brainz_1_1_web_service.html#a5135fd0521855bf32c9f2b1ef8a59f93">MusicBrainz::WebService</a>.</p>

</div>
</div>
<a class="anchor" id="a6f16a6c0135d94fb970c36b92aa2af7f"></a><!-- doxytag: member="MusicBrainz::IWebService::post" ref="a6f16a6c0135d94fb970c36b92aa2af7f" args="(const std::string &amp;entity, const std::string &amp;id, const std::string &amp;data, const std::string &amp;version=&quot;1&quot;)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void MusicBrainz::IWebService::post </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>entity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>version</em> = <code>&quot;1&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Submit data to the web service. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">entity</td><td>a string containing the entity's name </td></tr>
    <tr><td class="paramname">id</td><td>a string containing a UUID, or the empty string </td></tr>
    <tr><td class="paramname">data</td><td>a string containing the data to post </td></tr>
    <tr><td class="paramname">version</td><td>a string containing the web service version to use</td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Exceptions:</b></dt><dd>
  <table class="exception">
    <tr><td class="paramname"><a class="el" href="class_music_brainz_1_1_web_service_error.html" title="A web service error has occurred.">WebServiceError</a></td><td>in case of errors </td></tr>
  </table>
  </dd>
</dl>

<p>Implemented in <a class="el" href="class_music_brainz_1_1_web_service.html#a0587bdf75700342c1263a897c936cfdc">MusicBrainz::WebService</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_music_brainz.html">MusicBrainz</a>      </li>
      <li class="navelem"><a class="el" href="class_music_brainz_1_1_i_web_service.html">IWebService</a>      </li>
      <li class="footer">Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>