GPSPositionPrivate Class Reference

GPSPositionPrivate class use GPS to receive location information. More...

#include <gpspositionprivate.h>

Collaboration diagram for GPSPositionPrivate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GPSPositionPrivate (QObject *parent)
 Constructor creates GPS source.
bool isRunning ()
 Checks if GPS is running.
QPointF lastPosition ()
 Return last known position.
void requestLastPosition ()
 Informs gps to emit last known position.
void setMode (GPSPosition::Mode mode, const QString &filePath=0)
 Set GPS mode.
void setUpdateInterval (int interval)
 Set GPS update interval.
void start ()
 Start GPS.
void stop ()
 Stop GPS.
 GPSPositionPrivate (QObject *parent)
 Constructor creates GPS source.
bool isRunning ()
 Checks if GPS is running.
QPointF lastPosition ()
 Return last known position.
void requestLastPosition ()
 Informs gps to emit last known position.
void setMode (GPSPosition::Mode mode, const QString &filePath=0)
 Set GPS mode.
void setUpdateInterval (int interval)
 Set GPS update interval.
void start ()
 Start GPS.
void stop ()
 Stop GPS.
 GPSPositionPrivate (QObject *parent)
 Constructor.
bool isRunning ()
 Checks if GPS is running.
QPointF lastPosition ()
 Return last known position.
void requestLastPosition ()
 Informs gps to emit last known position.
void setUpdateInterval (int interval)
 Set GPS update interval.
void setMode (GPSPosition::Mode mode, const QString &filePath=0)
 Set GPS mode.
void start ()
 Start GPS.
void stop ()
 Stop GPS.

Private Slots

void positionUpdated (const QGeoPositionInfo &positionInfo)
 Slot for received position update.
void updateTimeout ()
 Slot for update timeout.
void positionUpdated (const GeoPositionInfo &positionInfo)
 Slot for received position update.
void locationError (const QString &errorMessage)
 Slot for location error.

Private Member Functions

qreal accuracy (const QGeoPositionInfo &positionInfo)
 Return horizontal accuracy.
qreal accuracy (const GeoPositionInfo &positionInfo)
 Returns horizontal accuracy.

Private Attributes

QGeoPositionInfoSource * m_gpsSource
 GPS position info source.
GPSPositionm_parent
 Parent object.
bool m_running
 GPS is running.
int m_updateInterval
 GPS update interval.
LiblocationWrapperm_liblocationWrapper
 Liblocation wrapper object.
bool m_isRunning
 GPS running flag.

Detailed Description

GPSPositionPrivate class use GPS to receive location information.

GPSPositionPrivate class does nothing.

Class is used when compiling in desktop.


Constructor & Destructor Documentation

GPSPositionPrivate::GPSPositionPrivate ( QObject *  parent  ) 

Constructor creates GPS source.

Parameters:
parent QObject
GPSPositionPrivate::GPSPositionPrivate ( QObject *  parent  ) 

Constructor creates GPS source.

Parameters:
parent QObject
GPSPositionPrivate::GPSPositionPrivate ( QObject *  parent  ) 

Constructor.

Parameters:
parent QObject

Member Function Documentation

qreal GPSPositionPrivate::accuracy ( const GeoPositionInfo positionInfo  )  [private]

Returns horizontal accuracy.

Parameters:
positionInfo geo position info
Returns:
accuracy value, -1 if undefined. Returns -1 also is timestamp is not valid (when using network positioning)
qreal GPSPositionPrivate::accuracy ( const QGeoPositionInfo &  positionInfo  )  [private]

Return horizontal accuracy.

Parameters:
positionInfo geo position info
Returns:
accuracy value, -1 if undefined. Returns -1 also is timestamp is not valid (when using network positioning)
bool GPSPositionPrivate::isRunning (  ) 

Checks if GPS is running.

RETURNS FALSE.

Returns:
true if GPS running, false otherwise
bool GPSPositionPrivate::isRunning (  ) 

Checks if GPS is running.

Returns:
true if GPS running, false otherwise
bool GPSPositionPrivate::isRunning (  ) 

Checks if GPS is running.

Returns:
true if GPS running, false otherwise
void GPSPositionPrivate::locationError ( const QString &  errorMessage  )  [private, slot]

Slot for location error.

Called when there is error in GPS.

void GPSPositionPrivate::positionUpdated ( const GeoPositionInfo positionInfo  )  [private, slot]

Slot for received position update.

Parameters:
positionInfo Geo position info.
void GPSPositionPrivate::positionUpdated ( const QGeoPositionInfo &  positionInfo  )  [private, slot]

Slot for received position update.

Parameters:
positionInfo Geo position info.
void GPSPositionPrivate::setMode ( GPSPosition::Mode  mode,
const QString &  filePath = 0 
)

Set GPS mode.

DOES NOTHING.

Parameters:
mode GPS mode
filePath file path to NMEA file if simulation mode is used
void GPSPositionPrivate::setMode ( GPSPosition::Mode  mode,
const QString &  filePath = 0 
)

Set GPS mode.

Modes: default and simulation.

Parameters:
mode GPS mode
filePath file path to NMEA file if simulation mode is used
void GPSPositionPrivate::setMode ( GPSPosition::Mode  mode,
const QString &  filePath = 0 
)

Set GPS mode.

Modes: default and simulation.

Parameters:
mode GPS mode
filePath file path to NMEA file if simulation mode is used
void GPSPositionPrivate::setUpdateInterval ( int  interval  ) 

Set GPS update interval.

DOES NOTHING.

Returns:
interval interval in milliseconds
void GPSPositionPrivate::setUpdateInterval ( int  interval  ) 

Set GPS update interval.

Returns:
interval interval in milliseconds
void GPSPositionPrivate::setUpdateInterval ( int  interval  ) 

Set GPS update interval.

Returns:
interval interval in milliseconds
void GPSPositionPrivate::start (  ) 

Start GPS.

DOES NOTHING.

void GPSPositionPrivate::stop (  ) 

Stop GPS.

DOES NOTHING.

void GPSPositionPrivate::updateTimeout (  )  [private, slot]

Slot for update timeout.

Called when request timeout occurs.


The documentation for this class was generated from the following files:

Generated on Thu Jun 10 09:44:02 2010 for Situare client for Maemo by  doxygen 1.6.1