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
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:
-
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:
-
The documentation for this class was generated from the following files:
- C:/Workspace/SourceForge/Privl_S60/inc/screen/Map.h
- C:/Workspace/SourceForge/Privl_S60/src/screen/Map.cpp