Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > contrib-updates > by-pkgid > a65e18d6cd6ada0b594b5264b3e30c20 > files > 39

qoauth-devel-1.0.1-2.1mdv2010.1.i586.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>QOAuth: src/qoauth_namespace.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.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</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="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    </ul>
  </div>
<h1>src/qoauth_namespace.h</h1><a href="qoauth__namespace_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"> *   Copyright (C) 2009-2010 by Dominik Kapusta       &lt;d@ayoy.net&gt;         *</span>
<a name="l00003"></a>00003 <span class="comment"> *                                                                         *</span>
<a name="l00004"></a>00004 <span class="comment"> *   This library is free software; you can redistribute it and/or modify  *</span>
<a name="l00005"></a>00005 <span class="comment"> *   it under the terms of the GNU Lesser General Public License as        *</span>
<a name="l00006"></a>00006 <span class="comment"> *   published by the Free Software Foundation; either version 2.1 of      *</span>
<a name="l00007"></a>00007 <span class="comment"> *   the License, or (at your option) any later version.                   *</span>
<a name="l00008"></a>00008 <span class="comment"> *                                                                         *</span>
<a name="l00009"></a>00009 <span class="comment"> *   This library is distributed in the hope that it will be useful,       *</span>
<a name="l00010"></a>00010 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *</span>
<a name="l00011"></a>00011 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *</span>
<a name="l00012"></a>00012 <span class="comment"> *   Lesser General Public License for more details.                       *</span>
<a name="l00013"></a>00013 <span class="comment"> *                                                                         *</span>
<a name="l00014"></a>00014 <span class="comment"> *   You should have received a copy of the GNU Lesser General Public      *</span>
<a name="l00015"></a>00015 <span class="comment"> *   License along with this library; if not, write to                     *</span>
<a name="l00016"></a>00016 <span class="comment"> *   the Free Software Foundation, Inc.,                                   *</span>
<a name="l00017"></a>00017 <span class="comment"> *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA          *</span>
<a name="l00018"></a>00018 <span class="comment"> ***************************************************************************/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef QOAUTH_NAMESPACE_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define QOAUTH_NAMESPACE_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;QMultiMap&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;QByteArray&gt;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#include &quot;<a class="code" href="qoauth__global_8h.html">qoauth_global.h</a>&quot;</span>
<a name="l00035"></a>00035 
<a name="l00040"></a>00040 <span class="keyword">namespace </span>QOAuth {
<a name="l00041"></a>00041 
<a name="l00046"></a><a class="code" href="namespace_q_o_auth.html#a4a001535b7fdb06cc9d34cad1af27d2f">00046</a>     <span class="keyword">typedef</span> QMultiMap&lt;QByteArray,QByteArray&gt; <a class="code" href="namespace_q_o_auth.html#a4a001535b7fdb06cc9d34cad1af27d2f" title="A typedef for the data structure for storing request parameters.">ParamMap</a>;
<a name="l00047"></a>00047 
<a name="l00059"></a><a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766f">00059</a>     <span class="keyword">enum</span> <a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766f" title="This enum type describes the signature method used by the request.">SignatureMethod</a> {
<a name="l00060"></a><a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fa74bc0d418aa61ebf3efc38282d6d22b0">00060</a>         <a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fa74bc0d418aa61ebf3efc38282d6d22b0" title="Sets the signature method to HMAC-SHA1.">HMAC_SHA1</a>, 
<a name="l00061"></a><a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fad9558ec24221a8aaba51ac44d48c90f2">00061</a>         <a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fad9558ec24221a8aaba51ac44d48c90f2" title="Sets the signature method to RSA-SHA1 (not implemented yet).">RSA_SHA1</a>,  
<a name="l00062"></a><a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fad62af8a1d2ad0aa70d266917067e0cbd">00062</a>         <a class="code" href="namespace_q_o_auth.html#a4cc48c641aa9025d289d7d7e013f766fad62af8a1d2ad0aa70d266917067e0cbd" title="Sets the signature method to PLAINTEXT (not implemented yet).">PLAINTEXT</a>  
<a name="l00063"></a>00063     };
<a name="l00064"></a>00064 
<a name="l00080"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319">00080</a>     <span class="keyword">enum</span> <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319" title="This enum type specifies the HTTP method used for creating a Signature Base String...">HttpMethod</a> {
<a name="l00081"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a7c85f104ca7dd13458329f66207f6be4">00081</a>         <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a7c85f104ca7dd13458329f66207f6be4" title="Sets the HTTP method to GET.">GET</a>,   
<a name="l00082"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319af8cfac32beb6ddefef094014cfa8d60b">00082</a>         <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319af8cfac32beb6ddefef094014cfa8d60b" title="Sets the HTTP method to POST.">POST</a>,  
<a name="l00083"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a3e8ed32617cd0fbd51f10dd5f686ef57">00083</a>         <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a3e8ed32617cd0fbd51f10dd5f686ef57" title="Sets the HTTP method to HEAD.">HEAD</a>,  
<a name="l00084"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319ac5c2b091a476fe2705ddf28dc32b13f7">00084</a>         <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319ac5c2b091a476fe2705ddf28dc32b13f7" title="Sets the HTTP method to PUT.">PUT</a>   
<a name="l00085"></a>00085 <span class="preprocessor">#ifndef Q_WS_WIN</span>
<a name="l00086"></a><a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a093fd98d3154ee52c88f466f92035b3c">00086</a> <span class="preprocessor"></span>        , <a class="code" href="namespace_q_o_auth.html#aa0e0bd4d8c1802873d3b3d2deb099319a093fd98d3154ee52c88f466f92035b3c" title="Sets the HTTP method to DELETE.">DELETE</a> 
<a name="l00087"></a>00087 <span class="preprocessor">#endif</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span>    };
<a name="l00089"></a>00089 
<a name="l00106"></a><a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4">00106</a>     <span class="keyword">enum</span> <a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4" title="This enum type specifies the method of parsing parameters into a parameter string...">ParsingMode</a> {
<a name="l00107"></a><a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad28f70298ea8c4c1bec8c9c27b0aeaf5">00107</a>         <a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad28f70298ea8c4c1bec8c9c27b0aeaf5" title="Inline query format (foo=bar&amp;amp;bar=baz&amp;amp;baz=foo ...), suitable for POST requests...">ParseForRequestContent</a>,     
<a name="l00108"></a><a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad5e9093e69391cce3735734f909cf759">00108</a>         <a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad5e9093e69391cce3735734f909cf759">ParseForInlineQuery</a>,        
<a name="l00110"></a><a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4a6c2747775846e2d5e7c96f7db6314d28">00110</a>         <a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4a6c2747775846e2d5e7c96f7db6314d28" title="HTTP request header format (parameters to be put inside a request header).">ParseForHeaderArguments</a>,    
<a name="l00111"></a><a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad12a3ed424be9e87704f138dc28804cf">00111</a>         <a class="code" href="namespace_q_o_auth.html#a442456118c9a45ac446554f17620def4ad12a3ed424be9e87704f138dc28804cf" title="Signature Base String format, meant for internal use.">ParseForSignatureBaseString</a> 
<a name="l00112"></a>00112     };
<a name="l00113"></a>00113 
<a name="l00124"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137">00124</a>     <span class="keyword">enum</span> <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137" title="This enum type defines error types that are assigned to the QOAuth::Interface::error...">ErrorCode</a> {
<a name="l00125"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137acd78d96aa204e78fe3a3b3d9197b00e9">00125</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137acd78d96aa204e78fe3a3b3d9197b00e9" title="No error occured (so far :-) ).">NoError</a> = 200,              
<a name="l00126"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a03853d821a7cb2f8df693c031333d80a">00126</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a03853d821a7cb2f8df693c031333d80a" title="Represents HTTP status code 400 (Bad Request).">BadRequest</a> = 400,           
<a name="l00127"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a03d29f6b9d0f2675d4ceea297f1df9fe">00127</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a03d29f6b9d0f2675d4ceea297f1df9fe" title="Represents HTTP status code 401 (Unauthorized).">Unauthorized</a> = 401,         
<a name="l00128"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137afeedd3cb28fe0fef4831bc02fc9c9a4f">00128</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137afeedd3cb28fe0fef4831bc02fc9c9a4f" title="Represents HTTP status code 403 (Forbidden).">Forbidden</a> = 403,            
<a name="l00129"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a6ad252dcc734f5df5177cbadb7aa347b">00129</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a6ad252dcc734f5df5177cbadb7aa347b" title="Represents a request timeout error.">Timeout</a> = 1001,             
<a name="l00130"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a68d83fbe8a9177a62055a0436acba730">00130</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a68d83fbe8a9177a62055a0436acba730" title="Consumer key has not been provided.">ConsumerKeyEmpty</a>,           
<a name="l00131"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137ae2dd54170fbec86792f903d3783b56d2">00131</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137ae2dd54170fbec86792f903d3783b56d2" title="Consumer secret has not been provided.">ConsumerSecretEmpty</a>,        
<a name="l00132"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a834b1b12690f8cd7f97b8c4c576b4247">00132</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a834b1b12690f8cd7f97b8c4c576b4247">UnsupportedHttpMethod</a>,      
<a name="l00137"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a0fe52c1f836a69c7c9e0f0988f5a6d35">00137</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a0fe52c1f836a69c7c9e0f0988f5a6d35" title="RSA private key has not been provided.">RSAPrivateKeyEmpty</a> = 1101,  
<a name="l00138"></a>00138         <span class="comment">//    RSAPassphraseError,         //!&lt; RSA passphrase is incorrect (or has not been provided)</span>
<a name="l00139"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a7a547bd32c7474766969573dad8e5694">00139</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a7a547bd32c7474766969573dad8e5694">RSADecodingError</a>,           
<a name="l00141"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a8099e324c0dcef5b2267427edc833bdb">00141</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137a8099e324c0dcef5b2267427edc833bdb" title="The provided key file either doesn&amp;#39;t exist or is unreadable.">RSAKeyFileError</a>,            
<a name="l00142"></a><a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137ab7f420565c23868e81b73a4efd62f256">00142</a>         <a class="code" href="namespace_q_o_auth.html#a38fb8bcd101c339c7fd77b5de22df137ab7f420565c23868e81b73a4efd62f256" title="A network-related error not specified above.">OtherError</a>                  
<a name="l00143"></a>00143     };
<a name="l00144"></a>00144 
<a name="l00145"></a>00145 
<a name="l00149"></a>00149     QOAUTH_EXPORT QByteArray <a class="code" href="namespace_q_o_auth.html#aa83657be57a2092cbf6a51a49b44e7c1" title="Returns the supported OAuth protocol version.">supportedOAuthVersion</a>();
<a name="l00150"></a>00150 
<a name="l00169"></a>00169     QOAUTH_EXPORT QByteArray <a class="code" href="namespace_q_o_auth.html#a84c62aa0297aa05562462798f3d7e910" title="Returns the name of the Access Token argument parameter (oauth_token in current implementation)...">tokenParameterName</a>();
<a name="l00170"></a>00170 
<a name="l00176"></a>00176     QOAUTH_EXPORT QByteArray <a class="code" href="namespace_q_o_auth.html#ae1a36aa1528f69b04e74d5d3e6364393" title="Returns the name of the Token Secret argument parameter (oauth_token_secret in current...">tokenSecretParameterName</a>();
<a name="l00177"></a>00177 
<a name="l00178"></a>00178 } <span class="comment">// namespace QOAuth</span>
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 <span class="preprocessor">#endif // QOAUTH_NAMESPACE_H</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Sep 2 20:58:20 2010 for QOAuth by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>