Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 50facae208d4a6f280e44a513b104320 > files > 856

qt-mobility-doc-1.2.0-13.mga5.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qgeoaddress.cpp -->
  <title>Qt Mobility 1.2: QGeoAddress Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>QtMobility Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtlocation.html">QtLocation</a></li>
<li>QGeoAddress</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGeoAddress Class Reference</h1>
<!-- $$$QGeoAddress-brief -->
<p>The QGeoAddress class represents an address <a href="#details">More...</a></p>
<!-- @@@QGeoAddress -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGeoAddress&gt;</span></pre><p>This class was introduced in Qt Mobility 1.1.</p>
<ul>
<li><a href="qgeoaddress-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#QGeoAddress">QGeoAddress</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#QGeoAddress-2">QGeoAddress</a></b> ( const QGeoAddress &amp; <i>other</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#dtor.QGeoAddress">~QGeoAddress</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#city">city</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#country">country</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#countryCode">countryCode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#county">county</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#district">district</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#isEmpty">isEmpty</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#postcode">postcode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setCity">setCity</a></b> ( const QString &amp; <i>city</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setCountry">setCountry</a></b> ( const QString &amp; <i>country</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setCountryCode">setCountryCode</a></b> ( const QString &amp; <i>countryCode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setCounty">setCounty</a></b> ( const QString &amp; <i>county</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setDistrict">setDistrict</a></b> ( const QString &amp; <i>district</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setPostcode">setPostcode</a></b> ( const QString &amp; <i>postcode</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setState">setState</a></b> ( const QString &amp; <i>state</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#setStreet">setStreet</a></b> ( const QString &amp; <i>street</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#state">state</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#street">street</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#operator-not-eq">operator!=</a></b> ( const QGeoAddress &amp; <i>other</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoAddress &amp; </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#operator-eq">operator=</a></b> ( const QGeoAddress &amp; <i>address</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qgeoaddress.html#operator-eq-eq">operator==</a></b> ( const QGeoAddress &amp; <i>other</i> ) const</td></tr>
</table>
<a name="details"></a>
<!-- $$$QGeoAddress-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGeoAddress class represents an address</p>
<p>This class represents an address of a location.</p>
</div>
<!-- @@@QGeoAddress -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGeoAddress[overload1]$$$QGeoAddress -->
<h3 class="fn"><a name="QGeoAddress"></a>QGeoAddress::<span class="name">QGeoAddress</span> ()</h3>
<p>Default constructor.</p>
<!-- @@@QGeoAddress -->
<!-- $$$QGeoAddress$$$QGeoAddressconstQGeoAddress& -->
<h3 class="fn"><a name="QGeoAddress-2"></a>QGeoAddress::<span class="name">QGeoAddress</span> ( const <span class="type">QGeoAddress</span> &amp; <i>other</i> )</h3>
<p>Constructs a copy of <i>other</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@QGeoAddress -->
<!-- $$$~QGeoAddress[overload1]$$$~QGeoAddress -->
<h3 class="fn"><a name="dtor.QGeoAddress"></a>QGeoAddress::<span class="name">~QGeoAddress</span> ()</h3>
<p>Destroys this address.</p>
<!-- @@@~QGeoAddress -->
<!-- $$$city[overload1]$$$city -->
<h3 class="fn"><a name="city"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">city</span> () const</h3>
<p>Returns the city.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setCity">setCity</a>().</p>
<!-- @@@city -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QGeoAddress::<span class="name">clear</span> ()</h3>
<p>Clears the all the address' data fields.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@clear -->
<!-- $$$country[overload1]$$$country -->
<h3 class="fn"><a name="country"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">country</span> () const</h3>
<p>Returns the country name.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setCountry">setCountry</a>().</p>
<!-- @@@country -->
<!-- $$$countryCode[overload1]$$$countryCode -->
<h3 class="fn"><a name="countryCode"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">countryCode</span> () const</h3>
<p>Returns the country code according to ISO 3166-1 alpha-3</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setCountryCode">setCountryCode</a>().</p>
<!-- @@@countryCode -->
<!-- $$$county[overload1]$$$county -->
<h3 class="fn"><a name="county"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">county</span> () const</h3>
<p>Returns the county. The county is considered the second subdivision below country.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setCounty">setCounty</a>().</p>
<!-- @@@county -->
<!-- $$$district[overload1]$$$district -->
<h3 class="fn"><a name="district"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">district</span> () const</h3>
<p>Returns the district. The district is considered the subdivison below city.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setDistrict">setDistrict</a>().</p>
<!-- @@@district -->
<!-- $$$isEmpty[overload1]$$$isEmpty -->
<h3 class="fn"><a name="isEmpty"></a><span class="type">bool</span> QGeoAddress::<span class="name">isEmpty</span> () const</h3>
<p>Returns whether this address is empty. An address is considered empty if <i>all</i> of its fields are empty.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@isEmpty -->
<!-- $$$postcode[overload1]$$$postcode -->
<h3 class="fn"><a name="postcode"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">postcode</span> () const</h3>
<p>Returns the post code.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setPostcode">setPostcode</a>().</p>
<!-- @@@postcode -->
<!-- $$$setCity[overload1]$$$setCityconstQString& -->
<h3 class="fn"><a name="setCity"></a><span class="type">void</span> QGeoAddress::<span class="name">setCity</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>city</i> )</h3>
<p>Sets the <i>city</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#city">city</a>().</p>
<!-- @@@setCity -->
<!-- $$$setCountry[overload1]$$$setCountryconstQString& -->
<h3 class="fn"><a name="setCountry"></a><span class="type">void</span> QGeoAddress::<span class="name">setCountry</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>country</i> )</h3>
<p>Sets the <i>country</i> name.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#country">country</a>().</p>
<!-- @@@setCountry -->
<!-- $$$setCountryCode[overload1]$$$setCountryCodeconstQString& -->
<h3 class="fn"><a name="setCountryCode"></a><span class="type">void</span> QGeoAddress::<span class="name">setCountryCode</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>countryCode</i> )</h3>
<p>Sets the <i>countryCode</i> according to ISO 3166-1 alpha-3</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#countryCode">countryCode</a>().</p>
<!-- @@@setCountryCode -->
<!-- $$$setCounty[overload1]$$$setCountyconstQString& -->
<h3 class="fn"><a name="setCounty"></a><span class="type">void</span> QGeoAddress::<span class="name">setCounty</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>county</i> )</h3>
<p>Sets the <i>county</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#county">county</a>().</p>
<!-- @@@setCounty -->
<!-- $$$setDistrict[overload1]$$$setDistrictconstQString& -->
<h3 class="fn"><a name="setDistrict"></a><span class="type">void</span> QGeoAddress::<span class="name">setDistrict</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>district</i> )</h3>
<p>Sets the <i>district</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#district">district</a>().</p>
<!-- @@@setDistrict -->
<!-- $$$setPostcode[overload1]$$$setPostcodeconstQString& -->
<h3 class="fn"><a name="setPostcode"></a><span class="type">void</span> QGeoAddress::<span class="name">setPostcode</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>postcode</i> )</h3>
<p>Sets the <i>postcode</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#postcode">postcode</a>().</p>
<!-- @@@setPostcode -->
<!-- $$$setState[overload1]$$$setStateconstQString& -->
<h3 class="fn"><a name="setState"></a><span class="type">void</span> QGeoAddress::<span class="name">setState</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>state</i> )</h3>
<p>Sets the <i>state</i>.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#state">state</a>().</p>
<!-- @@@setState -->
<!-- $$$setStreet[overload1]$$$setStreetconstQString& -->
<h3 class="fn"><a name="setStreet"></a><span class="type">void</span> QGeoAddress::<span class="name">setStreet</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>street</i> )</h3>
<p>Sets the street-level component of the address to <i>street</i>.</p>
<p>This typically includes a street number and street name but may also contain things like a unit number, a building name, or anything else that might be used to distinguish one address from another.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#street">street</a>().</p>
<!-- @@@setStreet -->
<!-- $$$state[overload1]$$$state -->
<h3 class="fn"><a name="state"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">state</span> () const</h3>
<p>Returns the state. The state is considered the first subdivision below country.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setState">setState</a>().</p>
<!-- @@@state -->
<!-- $$$street[overload1]$$$street -->
<h3 class="fn"><a name="street"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> QGeoAddress::<span class="name">street</span> () const</h3>
<p>Returns the street-level component of the address.</p>
<p>This typically includes a street number and street name but may also contain things like a unit number, a building name, or anything else that might be used to distinguish one address from another.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<p><b>See also </b><a href="qgeoaddress.html#setStreet">setStreet</a>().</p>
<!-- @@@street -->
<!-- $$$operator!=[overload1]$$$operator!=constQGeoAddress& -->
<h3 class="fn"><a name="operator-not-eq"></a><span class="type">bool</span> QGeoAddress::<span class="name">operator!=</span> ( const <span class="type">QGeoAddress</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this address is not equal to <i>other</i>, otherwise returns false.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator!= -->
<!-- $$$operator=[overload1]$$$operator=constQGeoAddress& -->
<h3 class="fn"><a name="operator-eq"></a><span class="type">QGeoAddress</span> &amp; QGeoAddress::<span class="name">operator=</span> ( const <span class="type">QGeoAddress</span> &amp; <i>address</i> )</h3>
<p>Assigns the given <i>address</i> to this address and returns a reference to this address.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator= -->
<!-- $$$operator==[overload1]$$$operator==constQGeoAddress& -->
<h3 class="fn"><a name="operator-eq-eq"></a><span class="type">bool</span> QGeoAddress::<span class="name">operator==</span> ( const <span class="type">QGeoAddress</span> &amp; <i>other</i> ) const</h3>
<p>Returns true if this address is equal to <i>other</i>, otherwise returns false.</p>
<p>This function was introduced in Qt Mobility 1.1.</p>
<!-- @@@operator== -->
</div>
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
  <p>
     <acronym title="Copyright">&copy;</acronym> 2008-2011 Nokia Corporation and/or its
     subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
     in Finland and/or other countries worldwide.</p>
  <p>
     All other trademarks are property of their respective owners. <a title="Privacy Policy"
     href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
  <br />
  <p>
    Licensees holding valid Qt Commercial licenses may use this document in accordance with the    Qt Commercial License Agreement provided with the Software or, alternatively, in accordance    with the terms contained in a written agreement between you and Nokia.</p>
  <p>
    Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
    Free Documentation License version 1.3</a>
    as published by the Free Software Foundation.</p>
</div>
</body>
</html>