<!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>Vidalia: GeoIpResponse Class Reference</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 Page</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><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>GeoIpResponse Class Reference</h1><!-- doxytag: class="GeoIpResponse" --> <p><code>#include <<a class="el" href="_geo_ip_response_8h_source.html">GeoIpResponse.h</a>></code></p> <p><a href="class_geo_ip_response-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#afdb60beff273287d2742a1c3b38d5c88">GeoIpResponse</a> (const QByteArray &response)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#a287020d2b93486828be33723fbec7849">statusCode</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#a10818e4c8d73cb3513105d0e38a0a1cf">statusMessage</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">QByteArray </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#a201935b4f915b56fc8d9d3c53b8b3273">content</a> () const </td></tr> <tr><td colspan="2"><h2>Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">QByteArray </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#a31592605ce7b8a3b10ea29227f9520e9">decodeChunked</a> (const QByteArray &chunked)</td></tr> <tr><td colspan="2"><h2>Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">QHttpResponseHeader </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#a1c4e027f8c629cd794cdc0ca0fdc809f">_header</a></td></tr> <tr><td class="memItemLeft" align="right" valign="top">QByteArray </td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_response.html#aa41e7f896e6cdb11f2e21e11d3d3ddba">_content</a></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="_geo_ip_response_8h_source.html#l00029">29</a> of file <a class="el" href="_geo_ip_response_8h_source.html">GeoIpResponse.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="afdb60beff273287d2742a1c3b38d5c88"></a><!-- doxytag: member="GeoIpResponse::GeoIpResponse" ref="afdb60beff273287d2742a1c3b38d5c88" args="(const QByteArray &response)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GeoIpResponse::GeoIpResponse </td> <td>(</td> <td class="paramtype">const QByteArray & </td> <td class="paramname"> <em>response</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor. Parses the response data for an HTTP header and Geo IP information. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8cpp_source.html#l00035">35</a> of file <a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a>.</p> <p>References <a class="el" href="_geo_ip_response_8h_source.html#l00054">_content</a>, <a class="el" href="_geo_ip_response_8h_source.html#l00053">_header</a>, <a class="el" href="_geo_ip_response_8cpp_source.html#l00090">decodeChunked()</a>, <a class="el" href="_zlib_byte_array_8h_source.html#l00066">ZlibByteArray::Gzip</a>, <a class="el" href="_zlib_byte_array_8h_source.html#l00065">ZlibByteArray::None</a>, <a class="el" href="_geo_ip_response_8cpp_source.html#l00030">STATUS_CONTENT_ENCODING_ERR</a>, <a class="el" href="_geo_ip_response_8cpp_source.html#l00028">STATUS_HTTP_OK</a>, <a class="el" href="_geo_ip_response_8cpp_source.html#l00032">STATUS_TRANSFER_ENCODING_ERR</a>, <a class="el" href="_zlib_byte_array_8cpp_source.html#l00262">ZlibByteArray::uncompress()</a>, and <a class="el" href="_zlib_byte_array_8h_source.html#l00067">ZlibByteArray::Zlib</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a201935b4f915b56fc8d9d3c53b8b3273"></a><!-- doxytag: member="GeoIpResponse::content" ref="a201935b4f915b56fc8d9d3c53b8b3273" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QByteArray GeoIpResponse::content </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the Geo IP information contained in this response. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8cpp_source.html#l00133">133</a> of file <a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a>.</p> <p>References <a class="el" href="_geo_ip_response_8h_source.html#l00054">_content</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_resolver_8cpp_source.html#l00113">GeoIpResolver::disconnected()</a>.</p> </div> </div> <a class="anchor" id="a31592605ce7b8a3b10ea29227f9520e9"></a><!-- doxytag: member="GeoIpResponse::decodeChunked" ref="a31592605ce7b8a3b10ea29227f9520e9" args="(const QByteArray &chunked)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QByteArray GeoIpResponse::decodeChunked </td> <td>(</td> <td class="paramtype">const QByteArray & </td> <td class="paramname"> <em>chunked</em></td> <td> ) </td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Decodes a <b>chunked</b> transfer encoding. Returns the unchunked result on success, or an empty QByteArray if decoding fails. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8cpp_source.html#l00090">90</a> of file <a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_response_8cpp_source.html#l00035">GeoIpResponse()</a>.</p> </div> </div> <a class="anchor" id="a287020d2b93486828be33723fbec7849"></a><!-- doxytag: member="GeoIpResponse::statusCode" ref="a287020d2b93486828be33723fbec7849" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int GeoIpResponse::statusCode </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the HTTP status code for this response. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8cpp_source.html#l00121">121</a> of file <a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a>.</p> <p>References <a class="el" href="_geo_ip_response_8h_source.html#l00053">_header</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_resolver_8cpp_source.html#l00113">GeoIpResolver::disconnected()</a>.</p> </div> </div> <a class="anchor" id="a10818e4c8d73cb3513105d0e38a0a1cf"></a><!-- doxytag: member="GeoIpResponse::statusMessage" ref="a10818e4c8d73cb3513105d0e38a0a1cf" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString GeoIpResponse::statusMessage </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the HTTP status message for this response. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8cpp_source.html#l00127">127</a> of file <a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a>.</p> <p>References <a class="el" href="_geo_ip_response_8h_source.html#l00053">_header</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_resolver_8cpp_source.html#l00113">GeoIpResolver::disconnected()</a>.</p> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="aa41e7f896e6cdb11f2e21e11d3d3ddba"></a><!-- doxytag: member="GeoIpResponse::_content" ref="aa41e7f896e6cdb11f2e21e11d3d3ddba" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QByteArray <a class="el" href="class_geo_ip_response.html#aa41e7f896e6cdb11f2e21e11d3d3ddba">GeoIpResponse::_content</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Geo IP information in this response. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8h_source.html#l00054">54</a> of file <a class="el" href="_geo_ip_response_8h_source.html">GeoIpResponse.h</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_response_8cpp_source.html#l00133">content()</a>, and <a class="el" href="_geo_ip_response_8cpp_source.html#l00035">GeoIpResponse()</a>.</p> </div> </div> <a class="anchor" id="a1c4e027f8c629cd794cdc0ca0fdc809f"></a><!-- doxytag: member="GeoIpResponse::_header" ref="a1c4e027f8c629cd794cdc0ca0fdc809f" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QHttpResponseHeader <a class="el" href="class_geo_ip_response.html#a1c4e027f8c629cd794cdc0ca0fdc809f">GeoIpResponse::_header</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>HTTP response header. </p> <p>Definition at line <a class="el" href="_geo_ip_response_8h_source.html#l00053">53</a> of file <a class="el" href="_geo_ip_response_8h_source.html">GeoIpResponse.h</a>.</p> <p>Referenced by <a class="el" href="_geo_ip_response_8cpp_source.html#l00035">GeoIpResponse()</a>, <a class="el" href="_geo_ip_response_8cpp_source.html#l00121">statusCode()</a>, and <a class="el" href="_geo_ip_response_8cpp_source.html#l00127">statusMessage()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="_geo_ip_response_8h_source.html">GeoIpResponse.h</a></li> <li><a class="el" href="_geo_ip_response_8cpp_source.html">GeoIpResponse.cpp</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:56 2010 for Vidalia by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>