marble
OwncloudSyncBackend.cpp
Go to the documentation of this file.
97 request.setHeader( QNetworkRequest::ContentTypeHeader, QString( "multipart/form-data; boundary=%0" ).arg( word ) );
128 data.append( QString( "Content-Disposition: form-data; name=\"kml\"; filename=\"%0.kml\"" ).arg( timestamp ).toUtf8() );
148 data.append( QString( "Content-Disposition: form-data; name=\"preview\"; filename=\"%0.jpg\"" ).arg( timestamp ).toUtf8() );
163 connect( d->m_routeUploadReply, SIGNAL(uploadProgress(qint64,qint64)), this, SIGNAL(routeUploadProgress(qint64,qint64)) );
170 connect( d->m_routeListReply, SIGNAL(downloadProgress(qint64,qint64)), this, SIGNAL(routeListDownloadProgress(qint64,qint64)) );
179 connect( d->m_routeDownloadReply, SIGNAL(downloadProgress(qint64,qint64)), this, SIGNAL(routeDownloadProgress(qint64,qint64)) );
315 QString previewFilePath = QString( "%0/preview/%1.jpg").arg( d->m_cacheDir.absolutePath(), timestamp );
345 QString endpointUrl = QString( "%0/%1/%2" ).arg( d->m_apiUrl.toString() ).arg( endpoint ).arg( parameter );
351 bool fileRemoved = QFile( QString( "%0/%1.kml" ).arg( cacheDir.absolutePath(), timestamp ) ).remove();
352 bool previewRemoved = QFile( QString( "%0/preview/%1.jpg" ).arg( cacheDir.absolutePath(), timestamp ) ).remove();
virtual bool isEmpty() const
Indicates whether the bounding box is not initialised (and contains nothing).
Definition: GeoDataLatLonBox.cpp:768
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:64
Definition: GeoDataParser.h:40
void uploadRoute(const QString ×tamp)
Definition: OwncloudSyncBackend.cpp:92
This file contains the headers for MarbleModel.
void routeUploadProgress(qint64 sent, qint64 total)
void removedFromCache(const QString ×tamp)
void setProjection(int projection)
Set the Projection used for the map.
Definition: MarbleWidget.cpp:702
void setPreviewUrl(const QUrl &previewUrl)
Definition: RouteItem.cpp:86
void setIdentifier(const QString &identifier)
Definition: RouteItem.cpp:56
Definition: RouteItem.h:20
void setDuration(const QString &duration)
Definition: RouteItem.cpp:106
void deleteRoute(const QString ×tamp)
Definition: OwncloudSyncBackend.cpp:182
void routeDownloaded()
void routeDownloadProgress(qint64 received, qint64 total)
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
Definition: GeoDataParser.h:36
RoutingModel * routingModel()
Provides access to the routing model which contains a list of routing instructions describing steps t...
Definition: RoutingManager.cpp:260
OwncloudSyncBackend(CloudSyncManager *cloudSyncManager)
Definition: OwncloudSyncBackend.cpp:82
void loadRoute(const QString &filename)
Opens the given filename (kml format) and loads the route contained in it.
Definition: RoutingManager.cpp:336
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 routeDeleted()
void downloadRouteList()
Definition: OwncloudSyncBackend.cpp:166
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Center the view on a geographical point.
Definition: MarbleWidget.cpp:626
QPixmap createPreview(const QString ×tamp)
Definition: OwncloudSyncBackend.cpp:190
void downloadRoute(const QString ×tamp)
Definition: OwncloudSyncBackend.cpp:174
void setApiUrl(const QUrl &apiUrl)
Definition: OwncloudSyncBackend.cpp:332
A shared base class between GeoDataDocument/GeoSourceDocument.
Definition: GeoDocument.h:42
void routeListDownloaded(const QVector< RouteItem > &routeList)
void removeFromCache(const QDir &cacheDir, const QString ×tamp)
Removes route with given timestamp from cache.
Definition: OwncloudSyncBackend.cpp:349
This file contains the headers for MarbleWidget.
QUrl endpointUrl(const QString &endpoint)
Generates an endpoint URL by appending endpoint name to API URL.
Definition: OwncloudSyncBackend.cpp:337
Definition: CloudSyncManager.h:25
QString routeName(const QString ×tamp)
Definition: OwncloudSyncBackend.cpp:217
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void routeListDownloadProgress(qint64 received, qint64 total)
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
QList< RenderPlugin * > renderPlugins() const
Returns a list of all RenderPlugins on the widget, this includes float items.
Definition: MarbleWidget.cpp:1251
~OwncloudSyncBackend()
Definition: OwncloudSyncBackend.cpp:87
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
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.