MapInvoker
#include <bb/platform/MapInvoker>
To link against this class, add the following line to your .pro file: LIBS += -lbbplatform
Stores common properties that can be set in order to trigger map-related content requests.
To gain access to more specific map requests, users should use sub-classes of this class (for example, bb::platform::LocationMapInvoker and bb::platform::RouteMapInvoker). This class also performs the actual map request through the Invocation Framework API.
BlackBerry 10.0.0
Inheritance
| bb::platform::MapInvoker | |||||
| bb::platform::LocationMapInvoker | |||||
| bb::platform::RouteMapInvoker | |||||
Properties Index
Public Functions Index
| virtual | ~MapInvoker () |
| bool | isCurrentLocationEnabled () const |
| double | searchLatitude () const |
| double | searchLongitude () const |
| QString | searchText () const |
| bb::platform::MapSearchMode::Type | searchMode () const |
| int | altitude () const |
| int | heading () const |
| double | centerLatitude () const |
| double | centerLongitude () const |
Public Slots Index
| void | setCurrentLocationEnabled (bool enable) |
| void | resetCurrentLocationEnabled () |
| void | setSearchLatitude (double value) |
| void | resetSearchLatitude () |
| void | setSearchLongitude (double value) |
| void | resetSearchLongitude () |
| void | setSearchText (const QString &text) |
| void | resetSearchText () |
| void | setSearchMode (bb::platform::MapSearchMode::Type mode) |
| void | resetSearchMode () |
| void | setAltitude (int value) |
| void | resetAltitude () |
| void | setHeading (int value) |
| void | resetHeading () |
| void | setCenterLatitude (double value) |
| void | resetCenterLatitude () |
| void | setCenterLongitude (double value) |
| void | resetCenterLongitude () |
| void | go () |
Signals Index
| void | currentLocationEnabledChanged (bool enable) |
| void | searchLatitudeChanged (double newSearchLatitude) |
| void | searchLongitudeChanged (double newSearchLongitude) |
| void | searchTextChanged (const QString &newSearchText) |
| void | searchModeChanged (bb::platform::MapSearchMode::Type newSearchPattern) |
| void | altitudeChanged (int newAltitude) |
| void | headingChanged (int newHeading) |
| void | centerLatitudeChanged (double newCenterLatitude) |
| void | centerLongitudeChanged (double newCenterLongitude) |
Properties
bool
Indicates whether Maps application should start GPS/GeoLocation upon start up.
This will cause the application to perform a transition to device's current location. This is disabled, by default.
BlackBerry 10.0.0
double
Property containing the search center's latitude.
BlackBerry 10.0.0
double
Property containing the search center's longitude.
BlackBerry 10.0.0
bb::platform::MapSearchMode::Type
Property which specifies a predefined search mode (for example, linear or radial).
bb::platform::MapSearchMode for the list of search modes.
BlackBerry 10.0.0
int
Property specifying the map viewing altitude level.
BlackBerry 10.0.0
int
Property specifying the orientation for displaying map's contents.
Values are in degrees. Valid values are from 0 to 360. 0 represents a North heading, and 180 represents South heading.
BlackBerry 10.0.0
double
Property containing the map center's latitude.
BlackBerry 10.0.0
double
Property containing the map center's longitude.
BlackBerry 10.0.0
Public Functions
virtual
Destructor.
BlackBerry 10.0.0
bool
Returns true if map contents should show the current location of the device.
true if contents should display the current location of the device.
BlackBerry 10.0.0
double
Gets the search center's latitude.
The search center's latitude.
BlackBerry 10.0.0
double
Gets the search center's longitude.
The search center's longitude.
BlackBerry 10.0.0
QString
Gets the search term.
The text value is free-form.
The search text to be used.
BlackBerry 10.0.0
bb::platform::MapSearchMode::Type
Returns the search mode that will be used when performing searches (for example, search along a path or a radial search starting from a given location).
bb::platform::MapSearchMode for the list of available search modes.
The search mode.
BlackBerry 10.0.0
int
Returns the map viewing altitude level.
The altitude level value.
BlackBerry 10.0.0
int
Returns the heading for the map's contents.
The heading value.
BlackBerry 10.0.0
double
Returns the map center's latitude.
The map center's latitude.
BlackBerry 10.0.0
double
Returns the map center's longitude.
The map center's longitude.
BlackBerry 10.0.0
Public Slots
void
Enables (or disables) the display of the current location of the device.
| Parameters | |
|---|---|
| enable |
true if current location of the device should be be displayed, false otherwise. |
BlackBerry 10.0.0
void
Disables the display of the current location of the device.
BlackBerry 10.0.0
void
Sets the search center's latitude.
| Parameters | |
|---|---|
| value |
The new search latitude. |
BlackBerry 10.0.0
void
Resets the search latitude to an undefined value.
BlackBerry 10.0.0
void
Sets the search center's longitude.
| Parameters | |
|---|---|
| value |
The new search longitude. |
BlackBerry 10.0.0
void
Resets the search longitude to an undefined value.
BlackBerry 10.0.0
void
Sets the search term.
| Parameters | |
|---|---|
| text |
The search text. |
BlackBerry 10.0.0
void
Clears the search text.
BlackBerry 10.0.0
void
Sets the search mode.
| Parameters | |
|---|---|
| mode |
The search mode. |
bb::platform::MapSearchMode for the list of available modes.
BlackBerry 10.0.0
void
Resets the search mode to radial search (bb::platform::MapSearchMode::Radial).
BlackBerry 10.0.0
void
Sets the map viewing altitude level.
| Parameters | |
|---|---|
| value |
The new map viewing altitude. |
BlackBerry 10.0.0
void
Resets the map viewing altitude to an undefined value.
BlackBerry 10.0.0
void
Sets the heading for the map's contents.
| Parameters | |
|---|---|
| value |
The new heading. |
BlackBerry 10.0.0
void
Resets the map's heading to an undefined value.
BlackBerry 10.0.0
void
Sets the map center's latitude.
| Parameters | |
|---|---|
| value |
The new latitude of the map's center. |
BlackBerry 10.0.0
void
Resets the map center's latitude to undefined value.
BlackBerry 10.0.0
void
Sets the map center's longitude.
| Parameters | |
|---|---|
| value |
The new longitude of the map's center. |
BlackBerry 10.0.0
void
Resets the map center's longitude to an undefined value.
BlackBerry 10.0.0
void
Triggers the actual request.
Depending on the actual invoker instance used, this will send the appropriate request to the Maps application, through the Invocation Framework.
BlackBerry 10.0.0
Signals
void
Emitted when the flag controlling the display of the current device location changes.
Listeners should update the view to display the current location.
| Parameters | |
|---|---|
| enable |
The new value of the flag. |
BlackBerry 10.0.0
void
Emitted when the latitude coordinate of search location changes.
Listeners should update the view to reflect the new search position.
| Parameters | |
|---|---|
| newSearchLatitude |
The new value of the latitude coordinate. |
BlackBerry 10.0.0
void
Emitted when the longitude coordinate of search location changes.
Listeners should update the view to reflect the new search position.
| Parameters | |
|---|---|
| newSearchLongitude |
The new value of the longitude coordinate. |
BlackBerry 10.0.0
void
Emitted when the search text changes.
Listeners should update to reflect the new search text.
| Parameters | |
|---|---|
| newSearchText |
The new value of the search text. |
BlackBerry 10.0.0
void
Emitted when the search mode changes.
Listeners should update to reflect the new search mode.
| Parameters | |
|---|---|
| newSearchPattern |
The new search mode. |
bb::platform::MapSearchMode for the list of available search modes.
BlackBerry 10.0.0
void
Emitted when the viewing altitude changes.
Listeners should update the view to reflect the new altitude.
| Parameters | |
|---|---|
| newAltitude |
The new value of the viewing altitude. |
BlackBerry 10.0.0
void
Emitted when the map's heading changes.
Listeners should update the view to reflect the new heading.
| Parameters | |
|---|---|
| newHeading |
The new value of the map's heading. |
BlackBerry 10.0.0
void
Emitted when the latitude coordinate of the map's center changes.
Listeners should update the view to reflect the new map center.
| Parameters | |
|---|---|
| newCenterLatitude |
The new latitude of the map's center. |
BlackBerry 10.0.0
void
Emitted when the longitude coordinate of the map's center changes.
Listeners should update the view to reflect the new map center.
| Parameters | |
|---|---|
| newCenterLongitude |
The new longitude of the map's center. |
BlackBerry 10.0.0