GPSLocationItem Class Reference

Class for indicating current position accuired from GPS on the map. More...

#include <gpslocationitem.h>

List of all members.

Public Member Functions

 GPSLocationItem ()
 Constructor.
void setEnabled (bool enable)
 Enable / disable item.
void updatePosition (QPoint scenePosition, qreal accuracy)
 Update position item.

Private Types

enum  Accuracy { NOT_SET, ACCURATE, COARSE }
 

Enum for current pixmap state.


Private Attributes

QPixmap m_accuratePixmap
 pixmap used when GPS fix is accurate
QPixmap m_coarsePixmap
 pixmap used when GPS fix is coarse
Accuracy m_currentAccuracy
 current accuracy

Detailed Description

Class for indicating current position accuired from GPS on the map.

Also GPS fix accuracy is indicated by using two different color indicator images based on current accuracy


Member Function Documentation

void GPSLocationItem::setEnabled ( bool  enable  ) 

Enable / disable item.

Parameters:
enable True if item should be enabled, otherwise false
void GPSLocationItem::updatePosition ( QPoint  scenePosition,
qreal  accuracy 
)

Update position item.

Use yellow led image when using network positioning and green led image when using GPS.

Parameters:
scenePosition Scene coordinate
accuracy Accuracy of the GPS fix

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