MapViewScreen Class Reference

Map View class. Used to display Map. More...

#include <mapviewscreen.h>

Collaboration diagram for MapViewScreen:
Collaboration graph
[legend]

List of all members.

Public Slots

void setOwnLocationCrosshairVisibility (bool visibility)
 Slot for setting own location crosshair visibility.

Signals

void enableAutoCentering (bool enabled)
 Signal for enabling auto centering.
void friendsLocationsReady (QList< User * > &friendsList)
 Signal when friend list locations are fetched.
void gpsEnabled (bool enabled)
 Signal for GPS enabling / disabling.
void mapLocationChanged ()
 Signal for map location change.
void positionReceived (QPointF position, qreal accuracy)
 Slot for GPS position.
void ownLocation (QPointF ownLatitudeLongitudeLocation)
 Signal from MapEngine to SituareEngine is travelling here.
void requestOwnLocation ()
 Signal from SituareEngine to MapEngine is travelling here.
void refreshUserData ()
 Signal for refreshing user data.
void requestReverseGeo ()
 Signal for requesting reverseGeo from SituareEngine.
void reverseGeoReady (const QString &address)
 Signals, when address data is ready.
void statusUpdate (const QString &status, const bool &publish)
 Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class.
void userLocationReady (User *user)
 Signal when user location is fetched.
void zoomInKeyPressed ()
 Signal for HW increase button.
void zoomOutKeyPressed ()
 Signal for HW decrease button.

Public Member Functions

 MapViewScreen (QWidget *parent=0)
 Constructor.

Private Slots

void drawOsmLicense (int width, int height)
 Slot for drawing the Open Street Map license text.
void drawOwnLocationCrosshair (int width, int height)
 Slot for drawing the own location crosshair.
void setViewPortSize (const int width, const int height)
 Slot for map location change.

Private Attributes

bool m_drawOwnLocationCrosshair
 Flag for making ownLocationCrosshair visible or not.
FriendListPanelm_friendsListPanel
 Instance of friends list panel.
MapEnginem_mapEngine
 MapEngine.
QLabel * m_osmLicense
 Label for Open Street Map license.
QLabel * m_ownLocationCrosshair
 Label that show ownLocationCrosshair.
UserInfoPanelm_userPanel
 Instance of the user information panel.
int m_viewPortHeight
 Height of view port.
int m_viewPortWidth
 Width of view port.
ZoomButtonPanelm_zoomButtonPanel
 Instance of zoom button panel.

Detailed Description

Map View class. Used to display Map.


Constructor & Destructor Documentation

MapViewScreen::MapViewScreen ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent Parent

Member Function Documentation

void MapViewScreen::drawOsmLicense ( int  width,
int  height 
) [private, slot]

Slot for drawing the Open Street Map license text.

Parameters:
width Width of the viewport
height Height of the viewport
void MapViewScreen::drawOwnLocationCrosshair ( int  width,
int  height 
) [private, slot]

Slot for drawing the own location crosshair.

Parameters:
width Width of the viewport
height Height of the viewport
void MapViewScreen::enableAutoCentering ( bool  enabled  )  [signal]

Signal for enabling auto centering.

Parameters:
enabled true if map should center to GPS position, false otherwise
void MapViewScreen::friendsLocationsReady ( QList< User * > &  friendsList  )  [signal]

Signal when friend list locations are fetched.

Forwarded to map engine and friends list panel

Parameters:
friendsList Friends list data
void MapViewScreen::gpsEnabled ( bool  enabled  )  [signal]

Signal for GPS enabling / disabling.

Parameters:
enabled True is GPS is enabled, otherwise false
void MapViewScreen::positionReceived ( QPointF  position,
qreal  accuracy 
) [signal]

Slot for GPS position.

Parameters:
position latitude and longitude values
accuracy coordinate accuracy in metres
void MapViewScreen::reverseGeoReady ( const QString &  address  )  [signal]

Signals, when address data is ready.

Parameters:
address Street address
void MapViewScreen::setOwnLocationCrosshairVisibility ( bool  visibility  )  [slot]

Slot for setting own location crosshair visibility.

Parameters:
visibility false <-> show, true <-> hide
void MapViewScreen::setViewPortSize ( const int  width,
const int  height 
) [private, slot]

Slot for map location change.

Set correnct view port size to datamembers

Parameters:
width Width of the viewport
height Height of the viewport
void MapViewScreen::statusUpdate ( const QString &  status,
const bool &  publish 
) [signal]

Signal Signal for requestLocationUpdate from SituareEngine via MainWindow class.

Parameters:
status Status message
publish Publish on Facebook
void MapViewScreen::userLocationReady ( User user  )  [signal]

Signal when user location is fetched.

Parameters:
user User data

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

Generated on Wed May 19 13:30:27 2010 for Situare client for Maemo by  doxygen 1.6.1