Sophie

Sophie

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

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" />
<!-- qgeopositioninfosource.cpp -->
  <title>Qt Mobility 1.2: QGeoPositionInfoSource 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>QGeoPositionInfoSource</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-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QGeoPositionInfoSource Class Reference</h1>
<!-- $$$QGeoPositionInfoSource-brief -->
<p>The QGeoPositionInfoSource class is an abstract base class for the distribution of positional updates. <a href="#details">More...</a></p>
<!-- @@@QGeoPositionInfoSource -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QGeoPositionInfoSource&gt;</span></pre><p><b>Inherits: </b><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a>.</p>
<p><b>Inherited by: </b><a href="qnmeapositioninfosource.html">QNmeaPositionInfoSource</a>.</p>
<p>This class was introduced in Qt Mobility 1.0.</p>
<ul>
<li><a href="qgeopositioninfosource-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#PositioningMethod-enum">PositioningMethod</a></b> { SatellitePositioningMethods, NonSatellitePositioningMethods, AllPositioningMethods }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#PositioningMethod-enum">PositioningMethods</a></b></td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li class="fn"><b><a href="qgeopositioninfosource.html#minimumUpdateInterval-prop">minimumUpdateInterval</a></b> : const int</li>
<li class="fn"><b><a href="qgeopositioninfosource.html#updateInterval-prop">updateInterval</a></b> : int</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</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="qgeopositioninfosource.html#QGeoPositionInfoSource">QGeoPositionInfoSource</a></b> ( QObject * <i>parent</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#dtor.QGeoPositionInfoSource">~QGeoPositionInfoSource</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QGeoPositionInfo </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#lastKnownPosition">lastKnownPosition</a></b> ( bool <i>fromSatellitePositioningMethodsOnly</i> = false ) const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#minimumUpdateInterval-prop">minimumUpdateInterval</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> PositioningMethods </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#preferredPositioningMethods">preferredPositioningMethods</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#setPreferredPositioningMethods">setPreferredPositioningMethods</a></b> ( PositioningMethods <i>methods</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a></b> ( int <i>msec</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual PositioningMethods </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#supportedPositioningMethods">supportedPositioningMethods</a></b> () const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#updateInterval-prop">updateInterval</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#requestUpdate">requestUpdate</a></b> ( int <i>timeout</i> = 0 ) = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#startUpdates">startUpdates</a></b> () = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#stopUpdates">stopUpdates</a></b> () = 0</td></tr>
</table>
<ul>
<li class="fn">1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#positionUpdated">positionUpdated</a></b> ( const QGeoPositionInfo &amp; <i>update</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#updateTimeout">updateTimeout</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#availableSources">availableSources</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoPositionInfoSource * </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#createDefaultSource">createDefaultSource</a></b> ( QObject * <i>parent</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QGeoPositionInfoSource * </td><td class="memItemRight bottomAlign"><b><a href="qgeopositioninfosource.html#createSource">createSource</a></b> ( const QString &amp; <i>sourceName</i>, QObject * <i>parent</i> )</td></tr>
</table>
<ul>
<li class="fn">4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public variable inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li class="fn">7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li class="fn">2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGeoPositionInfoSource-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QGeoPositionInfoSource class is an abstract base class for the distribution of positional updates.</p>
<p>The static function <a href="qgeopositioninfosource.html#createDefaultSource">QGeoPositionInfoSource::createDefaultSource</a>() creates a default position source that is appropriate for the platform, if one is available. Otherwise, QGeoPositionInfoSource will check for available plugins that implement the <a href="qgeopositioninfosourcefactory.html">QGeoPositionInfoSourceFactory</a> interface.</p>
<p>Users of a QGeoPositionInfoSource subclass can request the current position using <a href="qgeopositioninfosource.html#requestUpdate">requestUpdate</a>(), or start and stop regular position updates using <a href="qgeopositioninfosource.html#startUpdates">startUpdates</a>() and <a href="qgeopositioninfosource.html#stopUpdates">stopUpdates</a>(). When an update is available, <a href="qgeopositioninfosource.html#positionUpdated">positionUpdated</a>() is emitted. The last known position can be accessed with <a href="qgeopositioninfosource.html#lastKnownPosition">lastKnownPosition</a>().</p>
<p>If regular position updates are required, <a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>() can be used to specify how often these updates should be emitted. If no interval is specified, updates are simply provided whenever they are available. For example:</p>
<pre class="cpp"> <span class="comment">// Emit updates every 10 seconds if available</span>
 <span class="type">QGeoPositionInfoSource</span> <span class="operator">*</span>source <span class="operator">=</span> <span class="type">QGeoPositionInfoSource</span><span class="operator">::</span><a href="qgeopositioninfosource.html#createDefaultSource">createDefaultSource</a>(<span class="number">0</span>);
 <span class="keyword">if</span> (source)
     source<span class="operator">-</span><span class="operator">&gt;</span><a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>(<span class="number">10000</span>);</pre>
<p>To remove an update interval that was previously set, call <a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>() with a value of 0.</p>
<p>Note that the position source may have a minimum value requirement for update intervals, as returned by <a href="qgeopositioninfosource.html#minimumUpdateInterval-prop">minimumUpdateInterval</a>().</p>
<p><b>Warning:</b> On Windows CE it is not possible to detect if a device is GPS enabled. The default position source on a Windows CE device without GPS support will never provide any position data.</p>
<p><b>Warning:</b> On Symbian it is currently only possible to instantiate and use the position sources in the main thread of the application.</p>
</div>
<!-- @@@QGeoPositionInfoSource -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$PositioningMethod$$$SatellitePositioningMethods$$$NonSatellitePositioningMethods$$$AllPositioningMethods -->
<h3 class="flags"><a name="PositioningMethod-enum"></a>enum QGeoPositionInfoSource::<span class="name">PositioningMethod</span><br/>flags QGeoPositionInfoSource::<span class="name">PositioningMethods</span></h3>
<p>Defines the types of positioning methods.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>QGeoPositionInfoSource::SatellitePositioningMethods</tt></td><td class="topAlign"><tt>0x000000ff</tt></td><td class="topAlign">Satellite-based positioning methods such as GPS.</td></tr>
<tr><td class="topAlign"><tt>QGeoPositionInfoSource::NonSatellitePositioningMethods</tt></td><td class="topAlign"><tt>0xffffff00</tt></td><td class="topAlign">Other positioning methods.</td></tr>
<tr><td class="topAlign"><tt>QGeoPositionInfoSource::AllPositioningMethods</tt></td><td class="topAlign"><tt>0xffffffff</tt></td><td class="topAlign">A flag that matches all positioning methods.</td></tr>
</table>
<p>The PositioningMethods type is a typedef for <a href="qflags.html">QFlags</a>&lt;PositioningMethod&gt;. It stores an OR combination of PositioningMethod values.</p>
<!-- @@@PositioningMethod -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$minimumUpdateInterval-prop$$$minimumUpdateInterval -->
<h3 class="fn"><a name="minimumUpdateInterval-prop"></a><span class="name">minimumUpdateInterval</span> : const <span class="type">int</span></h3>
<p>This property holds the minimum time (in milliseconds) required to retrieve a position update.</p>
<p>This is the minimum value accepted by <a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>() and <a href="qgeopositioninfosource.html#requestUpdate">requestUpdate</a>().</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> virtual int </td><td class="memItemRight bottomAlign"><span class="name"><b>minimumUpdateInterval</b></span> () const = 0</td></tr>
</table>
<!-- @@@minimumUpdateInterval -->
<!-- $$$updateInterval-prop$$$updateInterval$$$setUpdateIntervalint -->
<h3 class="fn"><a name="updateInterval-prop"></a><span class="name">updateInterval</span> : <span class="type">int</span></h3>
<p>This property holds the requested interval in milliseconds between each update.</p>
<p>If the update interval is not set (or is set to 0) the source will provide updates as often as necessary.</p>
<p>If the update interval is set, the source will provide updates at an interval as close to the requested interval as possible. If the requested interval is less than the <a href="qgeopositioninfosource.html#minimumUpdateInterval-prop">minimumUpdateInterval</a>(), the minimum interval is used instead.</p>
<p>Changes to the update interval will happen as soon as is practical, however the time the change takes may vary between implementations. Whether or not the elapsed time from the previous interval is counted as part of the new interval is also implementation dependent.</p>
<p>The default value for this property is 0.</p>
<p>Note: Subclass implementations must call the base implementation of setUpdateInterval() so that updateInterval() returns the correct value.</p>
<p>This property was introduced in Qt Mobility 1.0.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>updateInterval</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUpdateInterval</b></span> ( int <i>msec</i> )</td></tr>
</table>
<!-- @@@updateInterval -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGeoPositionInfoSource[overload1]$$$QGeoPositionInfoSourceQObject* -->
<h3 class="fn"><a name="QGeoPositionInfoSource"></a>QGeoPositionInfoSource::<span class="name">QGeoPositionInfoSource</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> )</h3>
<p>Creates a position source with the specified <i>parent</i>.</p>
<!-- @@@QGeoPositionInfoSource -->
<!-- $$$~QGeoPositionInfoSource[overload1]$$$~QGeoPositionInfoSource -->
<h3 class="fn"><a name="dtor.QGeoPositionInfoSource"></a>QGeoPositionInfoSource::<span class="name">~QGeoPositionInfoSource</span> ()<tt> [virtual]</tt></h3>
<p>Destroys the position source.</p>
<!-- @@@~QGeoPositionInfoSource -->
<!-- $$$availableSources[overload1]$$$availableSources -->
<h3 class="fn"><a name="availableSources"></a><span class="type"><a href="http://qt.nokia.com/doc/4.7/qstringlist.html">QStringList</a></span> QGeoPositionInfoSource::<span class="name">availableSources</span> ()<tt> [static]</tt></h3>
<p>Returns a list of available source plugins. Note that this list does not include the default platform backend, if one is available.</p>
<!-- @@@availableSources -->
<!-- $$$createDefaultSource[overload1]$$$createDefaultSourceQObject* -->
<h3 class="fn"><a name="createDefaultSource"></a><span class="type">QGeoPositionInfoSource</span> * QGeoPositionInfoSource::<span class="name">createDefaultSource</span> ( <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> )<tt> [static]</tt></h3>
<p>Creates and returns a position source with the given <i>parent</i> that reads from the system's default sources of location data, or the plugin with the highest available priority.</p>
<p>Returns 0 if the system has no default position source and no valid plugins could be found.</p>
<p>Note: Symbian applications will need to have the Location capability otherwise this will return 0.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@createDefaultSource -->
<!-- $$$createSource[overload1]$$$createSourceconstQString&QObject* -->
<h3 class="fn"><a name="createSource"></a><span class="type">QGeoPositionInfoSource</span> * QGeoPositionInfoSource::<span class="name">createSource</span> ( const <span class="type"><a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></span> &amp; <i>sourceName</i>, <span class="type"><a href="http://qt.nokia.com/doc/4.7/qobject.html">QObject</a></span> * <i>parent</i> )<tt> [static]</tt></h3>
<p>Creates and returns a position source with the given <i>parent</i>, by loading the plugin named <i>sourceName</i>.</p>
<p>Returns 0 if the plugin cannot be found.</p>
<!-- @@@createSource -->
<!-- $$$lastKnownPosition[overload1]$$$lastKnownPositionbool -->
<h3 class="fn"><a name="lastKnownPosition"></a><span class="type"><a href="qgeopositioninfo.html">QGeoPositionInfo</a></span> QGeoPositionInfoSource::<span class="name">lastKnownPosition</span> ( <span class="type">bool</span> <i>fromSatellitePositioningMethodsOnly</i> = false ) const<tt> [pure virtual]</tt></h3>
<p>Returns an update containing the last known position, or a null update if none is available.</p>
<p>If <i>fromSatellitePositioningMethodsOnly</i> is true, this returns the last known position received from a satellite positioning method; if none is available, a null update is returned.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@lastKnownPosition -->
<!-- $$$positionUpdated[overload1]$$$positionUpdatedconstQGeoPositionInfo& -->
<h3 class="fn"><a name="positionUpdated"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">positionUpdated</span> ( const <span class="type"><a href="qgeopositioninfo.html">QGeoPositionInfo</a></span> &amp; <i>update</i> )<tt> [signal]</tt></h3>
<p>If <a href="qgeopositioninfosource.html#startUpdates">startUpdates</a>() or <a href="qgeopositioninfosource.html#requestUpdate">requestUpdate</a>() is called, this signal is emitted when an update becomes available.</p>
<p>The <i>update</i> value holds the value of the new update.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@positionUpdated -->
<!-- $$$preferredPositioningMethods[overload1]$$$preferredPositioningMethods -->
<h3 class="fn"><a name="preferredPositioningMethods"></a><span class="type"><a href="qgeopositioninfosource.html#PositioningMethod-enum">PositioningMethods</a></span> QGeoPositionInfoSource::<span class="name">preferredPositioningMethods</span> () const</h3>
<p>Returns the positioning methods set by <a href="qgeopositioninfosource.html#setPreferredPositioningMethods">setPreferredPositioningMethods</a>().</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qgeopositioninfosource.html#setPreferredPositioningMethods">setPreferredPositioningMethods</a>().</p>
<!-- @@@preferredPositioningMethods -->
<!-- $$$requestUpdate[overload1]$$$requestUpdateint -->
<h3 class="fn"><a name="requestUpdate"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">requestUpdate</span> ( <span class="type">int</span> <i>timeout</i> = 0 )<tt> [pure virtual slot]</tt></h3>
<p>Attempts to get the current position and emit <a href="qgeopositioninfosource.html#positionUpdated">positionUpdated</a>() with this information. If the current position cannot be found within the given <i>timeout</i> (in milliseconds) or if <i>timeout</i> is less than the value returned by <a href="qgeopositioninfosource.html#minimumUpdateInterval-prop">minimumUpdateInterval</a>(), <a href="qgeopositioninfosource.html#updateTimeout">updateTimeout</a>() is emitted.</p>
<p>If the timeout is zero, the timeout defaults to a reasonable timeout period as appropriate for the source.</p>
<p>This does nothing if another update request is in progress. However it can be called even if <a href="qgeopositioninfosource.html#startUpdates">startUpdates</a>() has already been called and regular updates are in progress.</p>
<p>If the source uses multiple positioning methods, it tries to gets the current position from the most accurate positioning method within the given timeout.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@requestUpdate -->
<!-- $$$setPreferredPositioningMethods[overload1]$$$setPreferredPositioningMethodsPositioningMethods -->
<h3 class="fn"><a name="setPreferredPositioningMethods"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">setPreferredPositioningMethods</span> ( <span class="type"><a href="qgeopositioninfosource.html#PositioningMethod-enum">PositioningMethods</a></span> <i>methods</i> )<tt> [virtual]</tt></h3>
<p>Sets the preferred positioning methods for this source to <i>methods</i>.</p>
<p>If <i>methods</i> includes a method that is not supported by the source, the unsupported method will be ignored.</p>
<p>If <i>methods</i> does not include any methods supported by the source, the preferred methods will be set to the set of methods which the source supports.</p>
<p><b>Note:</b> When reimplementing this method, subclasses must call the base method implementation to ensure <a href="qgeopositioninfosource.html#preferredPositioningMethods">preferredPositioningMethods</a>() returns the correct value.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qgeopositioninfosource.html#preferredPositioningMethods">preferredPositioningMethods</a>() and <a href="qgeopositioninfosource.html#supportedPositioningMethods">supportedPositioningMethods</a>().</p>
<!-- @@@setPreferredPositioningMethods -->
<!-- $$$startUpdates[overload1]$$$startUpdates -->
<h3 class="fn"><a name="startUpdates"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">startUpdates</span> ()<tt> [pure virtual slot]</tt></h3>
<p>Starts emitting updates at regular intervals as specified by <a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>().</p>
<p>If <a href="qgeopositioninfosource.html#updateInterval-prop">setUpdateInterval</a>() has not been called, the source will emit updates as soon as they become available.</p>
<p>An updateTimout() signal will be emitted if this <a href="qgeopositioninfosource.html">QGeoPositionInfoSource</a> subclass determines that it will not be able to provide regular updates. This could happen if a satellite fix is lost or if a hardware error is detected. Position updates will recommence if the data becomes available later on. The updateTimout() signal will not be emitted again until after the periodic updates resume.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@startUpdates -->
<!-- $$$stopUpdates[overload1]$$$stopUpdates -->
<h3 class="fn"><a name="stopUpdates"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">stopUpdates</span> ()<tt> [pure virtual slot]</tt></h3>
<p>Stops emitting updates at regular intervals.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@stopUpdates -->
<!-- $$$supportedPositioningMethods[overload1]$$$supportedPositioningMethods -->
<h3 class="fn"><a name="supportedPositioningMethods"></a><span class="type"><a href="qgeopositioninfosource.html#PositioningMethod-enum">PositioningMethods</a></span> QGeoPositionInfoSource::<span class="name">supportedPositioningMethods</span> () const<tt> [pure virtual]</tt></h3>
<p>Returns the positioning methods available to this source.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<p><b>See also </b><a href="qgeopositioninfosource.html#setPreferredPositioningMethods">setPreferredPositioningMethods</a>().</p>
<!-- @@@supportedPositioningMethods -->
<!-- $$$updateTimeout[overload1]$$$updateTimeout -->
<h3 class="fn"><a name="updateTimeout"></a><span class="type">void</span> QGeoPositionInfoSource::<span class="name">updateTimeout</span> ()<tt> [signal]</tt></h3>
<p>If <a href="qgeopositioninfosource.html#requestUpdate">requestUpdate</a>() was called, this signal will be emitted if the current position could not be retrieved within the specified timeout.</p>
<p>If <a href="qgeopositioninfosource.html#startUpdates">startUpdates</a>() has been called, this signal will be emitted if this <a href="qgeopositioninfosource.html">QGeoPositionInfoSource</a> subclass determines that it will not be able to provide further regular updates. This signal will not be emitted again until after the regular updates resume.</p>
<p>This function was introduced in Qt Mobility 1.0.</p>
<!-- @@@updateTimeout -->
</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>