marble
RouteSyncManager.cpp
Go to the documentation of this file.
69 connect( d->m_cloudSyncManager, SIGNAL(apiUrlChanged(QUrl)), &d->m_owncloudBackend, SLOT(setApiUrl(QUrl)) );
70 connect( &d->m_owncloudBackend, SIGNAL(routeUploadProgress(qint64,qint64)), this, SLOT(updateUploadProgressbar(qint64,qint64)) );
71 connect( &d->m_owncloudBackend, SIGNAL(routeListDownloaded(QVector<RouteItem>)), this, SLOT(setRouteModelItems(QVector<RouteItem>)) );
72 connect( &d->m_owncloudBackend, SIGNAL(routeListDownloadProgress(qint64,qint64)), this, SIGNAL(routeListDownloadProgress(qint64,qint64)) );
73 connect( &d->m_owncloudBackend, SIGNAL(routeDownloadProgress(qint64,qint64)), d->m_model, SLOT(updateProgress(qint64,qint64)) );
76 connect( &d->m_owncloudBackend, SIGNAL(removedFromCache( QString )), this, SLOT(prepareRouteList()) );
116 qWarning() << "RoutingManager instance not set in RouteSyncManager. Cannot save current route.";
166 QString previewPath = QString( "%0/preview/%1.jpg" ).arg( d->m_cacheDir.absolutePath(), timestamp );
223 qWarning() << "RoutingManager instance not set in RouteSyncManager. Cannot open route " << timestamp;
CloudRouteModel * model()
Returns CloudRouteModel associated with RouteSyncManager instance.
Definition: RouteSyncManager.cpp:102
QString saveDisplayedToCache() const
Saves the route displayed in Marble's routing widget to local cache directory.
Definition: RouteSyncManager.cpp:113
Definition: CloudRouteModel.h:25
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
Definition: GeoDataParser.h:40
void removeRouteFromCache(const QString ×tamp)
Removes route from cache.
Definition: RouteSyncManager.cpp:237
void updateUploadProgressbar(qint64 sent, qint64 total)
Updates upload progressbar.
Definition: RouteSyncManager.cpp:242
void setPreviewUrl(const QUrl &previewUrl)
Definition: RouteItem.cpp:86
void setIdentifier(const QString &identifier)
Definition: RouteItem.cpp:56
Definition: RouteItem.h:20
void setRoutingManager(RoutingManager *routingManager)
Definition: RouteSyncManager.cpp:84
void routeUploadProgress(qint64 sent, qint64 total)
Definition: GeoDataParser.h:36
void setRouteSyncEnabled(bool enabled)
Setter for enabling/disabling route synchronization.
Definition: RouteSyncManager.cpp:94
bool isRouteSyncEnabled() const
Checks if the user enabled route synchronization.
Definition: RouteSyncManager.cpp:89
QString generateTimestamp() const
Generates a timestamp which will be used as an unique identifier.
Definition: RouteSyncManager.cpp:107
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:90
Definition: GeoDataFolder.h:50
Delegates data retrieval and model updates to the appropriate routing provider.
Definition: RoutingManager.h:37
void routeListDownloadProgress(qint64 received, qint64 total)
void deleteRoute(const QString ×tamp)
Deletes route from cloud.
Definition: RouteSyncManager.cpp:232
A shared base class between GeoDataDocument/GeoSourceDocument.
Definition: GeoDocument.h:42
void routeSyncEnabledChanged(bool enabled)
void prepareRouteList()
Starts preparing a route list by downloading a list of the routes on the cloud and adding the ones on...
Definition: RouteSyncManager.cpp:197
void downloadRoute(const QString ×tamp)
Starts the download of specified route.
Definition: RouteSyncManager.cpp:215
QVector< RouteItem > cachedRouteList() const
Gathers data from local cache directory and returns a route list.
Definition: RouteSyncManager.cpp:135
Definition: CloudSyncManager.h:25
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
RouteSyncManager(CloudSyncManager *cloudSyncManager)
Definition: RouteSyncManager.cpp:66
GeoDocument * releaseDocument()
retrieve the parsed document and reset the parser If parsing was successful, retrieve the resulting d...
Definition: GeoParser.cpp:205
QVector< GeoDataPlacemark * > placemarkList() const
A convenience function that returns all placemarks in this container.
Definition: GeoDataContainer.cpp:107
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.