marble
RouteSyncManager.cpp
Go to the documentation of this file.
69 connect( &d->m_owncloudBackend, SIGNAL(routeUploadProgress(qint64,qint64)), this, SLOT(updateUploadProgressbar(qint64,qint64)) );
70 connect( &d->m_owncloudBackend, SIGNAL(routeListDownloaded(QVector<RouteItem>)), this, SLOT(setRouteModelItems(QVector<RouteItem>)) );
71 connect( &d->m_owncloudBackend, SIGNAL(routeListDownloadProgress(qint64,qint64)), this, SIGNAL(routeListDownloadProgress(qint64,qint64)) );
72 connect( &d->m_owncloudBackend, SIGNAL(routeDownloadProgress(qint64,qint64)), d->m_model, SLOT(updateProgress(qint64,qint64)) );
75 connect( &d->m_owncloudBackend, SIGNAL(removedFromCache( QString )), this, SLOT(prepareRouteList()) );
115 qWarning() << "RoutingManager instance not set in RouteSyncManager. Cannot save current route.";
165 QString previewPath = QString( "%0/preview/%1.jpg" ).arg( d->m_cacheDir.absolutePath(), timestamp );
222 qWarning() << "RoutingManager instance not set in RouteSyncManager. Cannot open route " << timestamp;
CloudRouteModel * model()
Returns CloudRouteModel associated with RouteSyncManager instance.
Definition: RouteSyncManager.cpp:101
QString saveDisplayedToCache() const
Saves the route displayed in Marble's routing widget to local cache directory.
Definition: RouteSyncManager.cpp:112
QString & append(QChar ch)
Definition: CloudRouteModel.h:25
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Definition: GeoDataParser.h:40
void removeRouteFromCache(const QString ×tamp)
Removes route from cache.
Definition: RouteSyncManager.cpp:236
void append(const T &value)
void updateUploadProgressbar(qint64 sent, qint64 total)
Updates upload progressbar.
Definition: RouteSyncManager.cpp:241
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setPreviewUrl(const QUrl &previewUrl)
Definition: RouteItem.cpp:86
void setIdentifier(const QString &identifier)
Definition: RouteItem.cpp:56
Definition: RouteItem.h:20
bool exists() const
void setRoutingManager(RoutingManager *routingManager)
Definition: RouteSyncManager.cpp:83
void routeUploadProgress(qint64 sent, qint64 total)
Definition: GeoDataParser.h:36
void setRouteSyncEnabled(bool enabled)
Setter for enabling/disabling route synchronization.
Definition: RouteSyncManager.cpp:93
qint64 currentMSecsSinceEpoch()
QString number(int n, int base)
void append(const T &value)
bool isRouteSyncEnabled() const
Checks if the user enabled route synchronization.
Definition: RouteSyncManager.cpp:88
QString generateTimestamp() const
Generates a timestamp which will be used as an unique identifier.
Definition: RouteSyncManager.cpp:106
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:197
Definition: GeoDataFolder.h:50
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
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:231
A shared base class between GeoDataDocument/GeoSourceDocument.
Definition: GeoDocument.h:42
void routeSyncEnabledChanged(bool enabled)
int length() const
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:196
QString left(int n) const
void downloadRoute(const QString ×tamp)
Starts the download of specified route.
Definition: RouteSyncManager.cpp:214
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QVector< RouteItem > cachedRouteList() const
Gathers data from local cache directory and returns a route list.
Definition: RouteSyncManager.cpp:134
Definition: CloudSyncManager.h:24
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
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:214
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.