Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 9601c7beb4ff23e834bfa171795ed560 > files > 497

vidalia-0.2.9-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>Vidalia: GeoIpCacheItem 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&nbsp;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&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>GeoIpCacheItem Class Reference</h1><!-- doxytag: class="GeoIpCacheItem" -->
<p><code>#include &lt;<a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>&gt;</code></p>

<p><a href="class_geo_ip_cache_item-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a87c368ec68b860ca43cb6356926a3ee0">GeoIpCacheItem</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a27f9a552a1816e9643734b2ae1f53f52">GeoIpCacheItem</a> (const QHostAddress &amp;from, const QHostAddress &amp;to, const <a class="el" href="class_geo_ip.html">GeoIp</a> &amp;geoIp, const QDateTime &amp;expires)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHostAddress&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a14e6c010895ec8a7d25872aaf5b3ea77">ipRangeStart</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHostAddress&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a38ed4f56779ba54c3a4b56216d9a1cb4">ipRangeEnd</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a229c2b9002cd3a4e7707ee920d3e97a5">contains</a> (const QHostAddress &amp;ip) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a7875b8609f1f72b75770ea4ac909218b">isValid</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#aa044a2be3a9f99738beb25c87313a237">isExpired</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_geo_ip.html">GeoIp</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#aca180f2c9261ab1aa3c727af2a8979e1">toGeoIp</a> (const QHostAddress &amp;ip) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a4097e1c1065b4875dc41e0b861b6a482">toCacheString</a> () const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a46b9407efbe1ecf073889327b343db43">fromCacheString</a> (const QString &amp;cacheLine)</td></tr>
<tr><td colspan="2"><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a4dd8c5742c7d755bc6e2d30472c0077f">_fromIp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">quint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a423c249c864ed7c6737d9df785340739">_toIp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QDateTime&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#acd32d33fd898292e54f58d77522d104c">_expires</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QHash&lt; QString, QVariant &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_geo_ip_cache_item.html#a8558f14260fc4f27d5c0c2d22c05f233">_fields</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8h_source.html#l00029">29</a> of file <a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a87c368ec68b860ca43cb6356926a3ee0"></a><!-- doxytag: member="GeoIpCacheItem::GeoIpCacheItem" ref="a87c368ec68b860ca43cb6356926a3ee0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GeoIpCacheItem::GeoIpCacheItem </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00037">37</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, and <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">fromCacheString()</a>.</p>

</div>
</div>
<a class="anchor" id="a27f9a552a1816e9643734b2ae1f53f52"></a><!-- doxytag: member="GeoIpCacheItem::GeoIpCacheItem" ref="a27f9a552a1816e9643734b2ae1f53f52" args="(const QHostAddress &amp;from, const QHostAddress &amp;to, const GeoIp &amp;geoIp, const QDateTime &amp;expires)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GeoIpCacheItem::GeoIpCacheItem </td>
          <td>(</td>
          <td class="paramtype">const QHostAddress &amp;&nbsp;</td>
          <td class="paramname"> <em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QHostAddress &amp;&nbsp;</td>
          <td class="paramname"> <em>to</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_geo_ip.html">GeoIp</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>geoIp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QDateTime &amp;&nbsp;</td>
          <td class="paramname"> <em>expires</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00043">43</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">_expires</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">_fields</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00031">CACHE_KEY_CITY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00033">CACHE_KEY_COUNTRY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00034">CACHE_KEY_COUNTRY_CODE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00029">CACHE_KEY_LATITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00030">CACHE_KEY_LONGITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00032">CACHE_KEY_REGION</a>, <a class="el" href="_geo_ip_8h_source.html#l00055">GeoIp::city()</a>, <a class="el" href="_geo_ip_8h_source.html#l00065">GeoIp::country()</a>, <a class="el" href="_geo_ip_8h_source.html#l00071">GeoIp::countryCode()</a>, <a class="el" href="_geo_ip_8h_source.html#l00045">GeoIp::latitude()</a>, <a class="el" href="_geo_ip_8h_source.html#l00050">GeoIp::longitude()</a>, and <a class="el" href="_geo_ip_8h_source.html#l00060">GeoIp::region()</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a229c2b9002cd3a4e7707ee920d3e97a5"></a><!-- doxytag: member="GeoIpCacheItem::contains" ref="a229c2b9002cd3a4e7707ee920d3e97a5" args="(const QHostAddress &amp;ip) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GeoIpCacheItem::contains </td>
          <td>(</td>
          <td class="paramtype">const QHostAddress &amp;&nbsp;</td>
          <td class="paramname"> <em>ip</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if <b>ip</b> is within the range of IP addresses associated with this <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a>. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_geo_ip_cache_item.html#a14e6c010895ec8a7d25872aaf5b3ea77">ipRangeStart()</a> </dd>
<dd>
<a class="el" href="class_geo_ip_cache_item.html#a38ed4f56779ba54c3a4b56216d9a1cb4">ipRangeEnd()</a> </dd></dl>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00075">75</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, and <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00100">toGeoIp()</a>.</p>

</div>
</div>
<a class="anchor" id="a46b9407efbe1ecf073889327b343db43"></a><!-- doxytag: member="GeoIpCacheItem::fromCacheString" ref="a46b9407efbe1ecf073889327b343db43" args="(const QString &amp;cacheLine)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a> GeoIpCacheItem::fromCacheString </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&nbsp;</td>
          <td class="paramname"> <em>cacheLine</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Parses <b>cacheLine</b> and constructs a new <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a> object with the parsed values. The format of <b>cacheLine</b> must follow the format as produced by <a class="el" href="class_geo_ip_cache_item.html#a4097e1c1065b4875dc41e0b861b6a482">toCacheString()</a>. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_geo_ip_cache_item.html#a4097e1c1065b4875dc41e0b861b6a482">toCacheString()</a> </dd></dl>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">135</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">_expires</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">_fields</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00031">CACHE_KEY_CITY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00033">CACHE_KEY_COUNTRY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00034">CACHE_KEY_COUNTRY_CODE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00028">CACHE_KEY_EXPIRES</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00026">CACHE_KEY_FROM_IP</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00029">CACHE_KEY_LATITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00030">CACHE_KEY_LONGITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00032">CACHE_KEY_REGION</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00027">CACHE_KEY_TO_IP</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00037">GeoIpCacheItem()</a>, and <a class="el" href="stringutil_8cpp_source.html#l00170">string_parse_keyvals()</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_8cpp_source.html#l00084">GeoIpCache::loadFromDisk()</a>.</p>

</div>
</div>
<a class="anchor" id="a38ed4f56779ba54c3a4b56216d9a1cb4"></a><!-- doxytag: member="GeoIpCacheItem::ipRangeEnd" ref="a38ed4f56779ba54c3a4b56216d9a1cb4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHostAddress GeoIpCacheItem::ipRangeEnd </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the last IP address in the range of IP addresses associated with this <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a>. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00069">69</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_8cpp_source.html#l00131">GeoIpCache::addToCache()</a>.</p>

</div>
</div>
<a class="anchor" id="a14e6c010895ec8a7d25872aaf5b3ea77"></a><!-- doxytag: member="GeoIpCacheItem::ipRangeStart" ref="a14e6c010895ec8a7d25872aaf5b3ea77" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHostAddress GeoIpCacheItem::ipRangeStart </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the first IP address in the range of IP addresses associated with this <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a>. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00063">63</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>.</p>

</div>
</div>
<a class="anchor" id="aa044a2be3a9f99738beb25c87313a237"></a><!-- doxytag: member="GeoIpCacheItem::isExpired" ref="aa044a2be3a9f99738beb25c87313a237" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GeoIpCacheItem::isExpired </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if the cache item is too old to be considered accurate. Cached <a class="el" href="class_geo_ip.html">GeoIp</a> responses are considered valid for thirty days after they are first added to the cache. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00094">94</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">_expires</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_8cpp_source.html#l00131">GeoIpCache::addToCache()</a>, <a class="el" href="_geo_ip_cache_8cpp_source.html#l00084">GeoIpCache::loadFromDisk()</a>, and <a class="el" href="_geo_ip_cache_8cpp_source.html#l00046">GeoIpCache::saveToDisk()</a>.</p>

</div>
</div>
<a class="anchor" id="a7875b8609f1f72b75770ea4ac909218b"></a><!-- doxytag: member="GeoIpCacheItem::isValid" ref="a7875b8609f1f72b75770ea4ac909218b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool GeoIpCacheItem::isValid </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if this <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a> object contains valid values for all required fields. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00083">83</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">_expires</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">_fields</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00029">CACHE_KEY_LATITUDE</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00030">CACHE_KEY_LONGITUDE</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_8cpp_source.html#l00131">GeoIpCache::addToCache()</a>, and <a class="el" href="_geo_ip_cache_8cpp_source.html#l00084">GeoIpCache::loadFromDisk()</a>.</p>

</div>
</div>
<a class="anchor" id="a4097e1c1065b4875dc41e0b861b6a482"></a><!-- doxytag: member="GeoIpCacheItem::toCacheString" ref="a4097e1c1065b4875dc41e0b861b6a482" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString GeoIpCacheItem::toCacheString </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Formats the fields contained in this <a class="el" href="class_geo_ip_cache_item.html">GeoIpCacheItem</a> as a string suitable for writing to a cache file. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00114">114</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">_expires</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">_fields</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">_fromIp</a>, <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">_toIp</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00028">CACHE_KEY_EXPIRES</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00026">CACHE_KEY_FROM_IP</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00027">CACHE_KEY_TO_IP</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_8cpp_source.html#l00046">GeoIpCache::saveToDisk()</a>.</p>

</div>
</div>
<a class="anchor" id="aca180f2c9261ab1aa3c727af2a8979e1"></a><!-- doxytag: member="GeoIpCacheItem::toGeoIp" ref="aca180f2c9261ab1aa3c727af2a8979e1" args="(const QHostAddress &amp;ip) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_geo_ip.html">GeoIp</a> GeoIpCacheItem::toGeoIp </td>
          <td>(</td>
          <td class="paramtype">const QHostAddress &amp;&nbsp;</td>
          <td class="paramname"> <em>ip</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a <a class="el" href="class_geo_ip.html">GeoIp</a> object for <b>ip</b>, populated with the cached geographic information stored by this GeoIpCacheObject. If <b>ip</b> is not within the range of IP addresses associated with this object, an empty <a class="el" href="class_geo_ip.html">GeoIp</a> object is returned. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_geo_ip_cache_item.html#a229c2b9002cd3a4e7707ee920d3e97a5">contains</a> </dd></dl>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00100">100</a> of file <a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.cpp</a>.</p>

<p>References <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">_fields</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00031">CACHE_KEY_CITY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00033">CACHE_KEY_COUNTRY</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00034">CACHE_KEY_COUNTRY_CODE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00029">CACHE_KEY_LATITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00030">CACHE_KEY_LONGITUDE</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00032">CACHE_KEY_REGION</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00075">contains()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="acd32d33fd898292e54f58d77522d104c"></a><!-- doxytag: member="GeoIpCacheItem::_expires" ref="acd32d33fd898292e54f58d77522d104c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QDateTime <a class="el" href="class_geo_ip_cache_item.html#acd32d33fd898292e54f58d77522d104c">GeoIpCacheItem::_expires</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time this item was cached. </p>

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8h_source.html#l00092">92</a> of file <a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">fromCacheString()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00043">GeoIpCacheItem()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00094">isExpired()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00083">isValid()</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00114">toCacheString()</a>.</p>

</div>
</div>
<a class="anchor" id="a8558f14260fc4f27d5c0c2d22c05f233"></a><!-- doxytag: member="GeoIpCacheItem::_fields" ref="a8558f14260fc4f27d5c0c2d22c05f233" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QHash&lt;QString,QVariant&gt; <a class="el" href="class_geo_ip_cache_item.html#a8558f14260fc4f27d5c0c2d22c05f233">GeoIpCacheItem::_fields</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8h_source.html#l00093">93</a> of file <a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">fromCacheString()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00043">GeoIpCacheItem()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00083">isValid()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00114">toCacheString()</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00100">toGeoIp()</a>.</p>

</div>
</div>
<a class="anchor" id="a4dd8c5742c7d755bc6e2d30472c0077f"></a><!-- doxytag: member="GeoIpCacheItem::_fromIp" ref="a4dd8c5742c7d755bc6e2d30472c0077f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint32 <a class="el" href="class_geo_ip_cache_item.html#a4dd8c5742c7d755bc6e2d30472c0077f">GeoIpCacheItem::_fromIp</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8h_source.html#l00090">90</a> of file <a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00075">contains()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">fromCacheString()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00037">GeoIpCacheItem()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00063">ipRangeStart()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00083">isValid()</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00114">toCacheString()</a>.</p>

</div>
</div>
<a class="anchor" id="a423c249c864ed7c6737d9df785340739"></a><!-- doxytag: member="GeoIpCacheItem::_toIp" ref="a423c249c864ed7c6737d9df785340739" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">quint32 <a class="el" href="class_geo_ip_cache_item.html#a423c249c864ed7c6737d9df785340739">GeoIpCacheItem::_toIp</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_geo_ip_cache_item_8h_source.html#l00091">91</a> of file <a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a>.</p>

<p>Referenced by <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00075">contains()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00135">fromCacheString()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00037">GeoIpCacheItem()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00069">ipRangeEnd()</a>, <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00083">isValid()</a>, and <a class="el" href="_geo_ip_cache_item_8cpp_source.html#l00114">toCacheString()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_geo_ip_cache_item_8h_source.html">GeoIpCacheItem.h</a></li>
<li><a class="el" href="_geo_ip_cache_item_8cpp_source.html">GeoIpCacheItem.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&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>