Map Class Reference

Object which can be used to generate maps. More...

#include <Map.h>

List of all members.

Public Member Functions

 Map ()
 Construct an object that can be used to generate maps.
QString generateMap ()
 Generate the HTML map.
void setCenter (QGeoCoordinate c)
 Set the map center.
void setSize (int h, int w)
 Set the map size.
void setZoom (int z)
 Set the map zoom.
void addFriend (QString id, QGeoCoordinate pos)
 Add a friend to the map.
void setMe (QString id, QGeoCoordinate pos)
 Set the user on the map.
void setSelectedFriend (QString id, QGeoCoordinate pos)
 Set the selected user on the map.
QString getFriends ()
 Get a Javascript array of friends.
QString getMap ()
 Returns the map as HTML.
void initMap (int height, int width)
 Initializes the object.

Detailed Description

Object which can be used to generate maps.


Member Function Documentation

void Map::addFriend ( QString  id,
QGeoCoordinate  pos 
)

Add a friend to the map.

Parameters:
id is the id of the friend
pos is the position of the frined
QString Map::generateMap (  ) 

Generate the HTML map.

Returns:
the html source of the map
QString Map::getFriends (  ) 

Get a Javascript array of friends.

Returns:
a string with a Javascript array of friends
QString Map::getMap (  ) 

Returns the map as HTML.

Returns:
the map as html
void Map::initMap ( int  height,
int  width 
)

Initializes the object.

Parameters:
height is the heigh of the map
width is the width of the map
void Map::setCenter ( QGeoCoordinate  c  ) 

Set the map center.

Parameters:
c is the map center
void Map::setMe ( QString  id,
QGeoCoordinate  pos 
)

Set the user on the map.

Parameters:
id is the user's id
pos is the user's position
void Map::setSelectedFriend ( QString  id,
QGeoCoordinate  pos 
)

Set the selected user on the map.

Parameters:
id indicates the user
pos indicates the user's position
void Map::setSize ( int  h,
int  w 
)

Set the map size.

Parameters:
h is the height
w is the width
void Map::setZoom ( int  z  ) 

Set the map zoom.

Parameters:
z is the zoom

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3