marble
#include <RoutingManager.h>
Public Types | |
enum | State { Downloading, Retrieved } |
Public Slots | |
void | clearRoute () |
void | retrieveRoute () |
void | reverseRoute () |
void | setGuidanceModeEnabled (bool enabled) |
Signals | |
void | routeRetrieved (GeoDataDocument *route) |
void | stateChanged (RoutingManager::State newState) |
Detailed Description
Delegates data retrieval and model updates to the appropriate routing provider.
Definition at line 37 of file RoutingManager.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Downloading | |
Retrieved |
Definition at line 42 of file RoutingManager.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 239 of file RoutingManager.cpp.
Marble::RoutingManager::~RoutingManager | ( | ) |
Destructor.
Definition at line 250 of file RoutingManager.cpp.
Member Function Documentation
const AutoNavigation * Marble::RoutingManager::adjustNavigation | ( | ) | const |
returns the instance of AutoNavigation This is a temporary location for AutoNavigation.
The code would be refactored soon.
Definition at line 321 of file RoutingManager.cpp.
AlternativeRoutesModel * Marble::RoutingManager::alternativeRoutesModel | ( | ) |
Provides access to the model which contains a list of alternative routes.
Definition at line 311 of file RoutingManager.cpp.
|
slot |
Clear all via points.
Definition at line 450 of file RoutingManager.cpp.
RoutingProfile Marble::RoutingManager::defaultProfile | ( | RoutingProfile::TransportType | transportType | ) | const |
Generates a routing profile with default settings for the given transport type.
Definition at line 341 of file RoutingManager.cpp.
bool Marble::RoutingManager::guidanceModeEnabled | ( | ) | const |
Definition at line 516 of file RoutingManager.cpp.
QString Marble::RoutingManager::lastOpenPath | ( | ) | const |
Return last directory the user opened a route from.
Definition at line 471 of file RoutingManager.cpp.
QString Marble::RoutingManager::lastSavePath | ( | ) | const |
Return last directory the user saved a route to.
Definition at line 481 of file RoutingManager.cpp.
void Marble::RoutingManager::loadRoute | ( | const QString & | filename | ) |
Opens the given filename (kml format) and loads the route contained in it.
Definition at line 336 of file RoutingManager.cpp.
RoutingProfilesModel * Marble::RoutingManager::profilesModel | ( | ) |
Provides access to the model which contains all possible routing profiles.
Definition at line 255 of file RoutingManager.cpp.
void Marble::RoutingManager::readSettings | ( | ) |
Restores a previously saved route request and route from disk, if any.
Definition at line 373 of file RoutingManager.cpp.
|
slot |
Retrieve a route suiting the routeRequest.
Definition at line 275 of file RoutingManager.cpp.
|
slot |
Reverse the previously requested route, i.e.
swap start and destination (and via points, if any)
Definition at line 444 of file RoutingManager.cpp.
QColor Marble::RoutingManager::routeColorAlternative | ( | ) |
Get color for alternative route rendering.
Definition at line 511 of file RoutingManager.cpp.
QColor Marble::RoutingManager::routeColorHighlighted | ( | ) |
Get color for highlighted route rendering.
Definition at line 501 of file RoutingManager.cpp.
QColor Marble::RoutingManager::routeColorStandard | ( | ) |
Get color for standard route rendering.
Definition at line 491 of file RoutingManager.cpp.
RouteRequest * Marble::RoutingManager::routeRequest | ( | ) |
Returns the current route request.
Definition at line 270 of file RoutingManager.cpp.
|
signal |
RoutingModel * Marble::RoutingManager::routingModel | ( | ) |
Provides access to the routing model which contains a list of routing instructions describing steps to get from the source to the destination.
- See also
- retrieveDirections
Definition at line 260 of file RoutingManager.cpp.
const RoutingModel * Marble::RoutingManager::routingModel | ( | ) | const |
Definition at line 265 of file RoutingManager.cpp.
void Marble::RoutingManager::saveRoute | ( | const QString & | filename | ) | const |
Saves the current route to the file with the given filename.
Existing files will be overwritten. The route is saved in kml format.
Definition at line 331 of file RoutingManager.cpp.
void Marble::RoutingManager::setAutoNavigation | ( | AutoNavigation * | adjustNavigation | ) |
Definition at line 316 of file RoutingManager.cpp.
|
slot |
Toggle turn by turn navigation mode.
Definition at line 378 of file RoutingManager.cpp.
void Marble::RoutingManager::setLastOpenPath | ( | const QString & | path | ) |
Set last directory the user opened a route from.
Definition at line 466 of file RoutingManager.cpp.
void Marble::RoutingManager::setLastSavePath | ( | const QString & | path | ) |
Set last directory the user saved a route to.
Definition at line 476 of file RoutingManager.cpp.
void Marble::RoutingManager::setRouteColorAlternative | ( | QColor | color | ) |
Set color for alternative route rendering.
Definition at line 506 of file RoutingManager.cpp.
void Marble::RoutingManager::setRouteColorHighlighted | ( | QColor | color | ) |
Set color for highlighted route rendering.
Definition at line 496 of file RoutingManager.cpp.
void Marble::RoutingManager::setRouteColorStandard | ( | QColor | color | ) |
Set color for standard route rendering.
Definition at line 486 of file RoutingManager.cpp.
void Marble::RoutingManager::setShowGuidanceModeStartupWarning | ( | bool | show | ) |
Set whether a warning message should be shown to the user before starting guidance mode.
Definition at line 456 of file RoutingManager.cpp.
bool Marble::RoutingManager::showGuidanceModeStartupWarning | ( | ) | const |
Returns true (default) if a warning is shown to the user when starting guidance mode.
Definition at line 461 of file RoutingManager.cpp.
|
signal |
Directions and waypoints for the given route are being downloaded or have been retrieved – newState tells which of both.
void Marble::RoutingManager::writeSettings | ( | ) | const |
Saves the current route request and the current route to disk.
Definition at line 326 of file RoutingManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.