• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • cloudsync
OwncloudSyncBackend.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Utku Aydın <utkuaydin34@gmail.com>
9 //
10 
11 #ifndef OWNCLOUDSYNCBACKEND_H
12 #define OWNCLOUDSYNCBACKEND_H
13 
14 #include "CloudRouteModel.h"
15 #include "GeoDataDocument.h"
16 
17 #include <QObject>
18 #include <QDir>
19 #include <QUrl>
20 #include <QVector>
21 #include <QNetworkReply>
22 
23 namespace Marble {
24 
25 class CloudSyncManager;
26 
27 class OwncloudSyncBackend : public QObject
28 {
29  Q_OBJECT
30 
31 public:
32  OwncloudSyncBackend( CloudSyncManager* cloudSyncManager );
33  ~OwncloudSyncBackend();
34 
40  QUrl endpointUrl( const QString &endpoint );
41 
48  QUrl endpointUrl( const QString &endpoint, const QString &parameter );
49 
55  void removeFromCache( const QDir &cacheDir, const QString &timestamp );
56 
57  void uploadRoute( const QString &timestamp );
58  void downloadRouteList();
59  void downloadRoute( const QString &timestamp );
60  void deleteRoute( const QString &timestamp );
61  QPixmap createPreview( const QString &timestamp );
62  QString routeName( const QString &timestamp );
63 
64 public Q_SLOTS:
65  void cancelUpload();
66  void setApiUrl( const QUrl &apiUrl );
67 
68 private slots:
69  void prepareRouteList();
70  void saveDownloadedRoute();
71 
72 signals:
73  void routeListDownloaded( const QVector<RouteItem> &routeList );
74  void routeDownloaded();
75  void routeDeleted();
76  void routeUploadProgress( qint64 sent, qint64 total );
77  void routeDownloadProgress( qint64 received, qint64 total );
78  void routeListDownloadProgress( qint64 received, qint64 total );
79  void removedFromCache( const QString &timestamp );
80 
81 private:
82  class Private;
83  Private *d;
84 };
85 
86 }
87 
88 #endif // OWNCLOUDSYNCBACKEND_H
GeoDataDocument.h
Marble::OwncloudSyncBackend
Definition: OwncloudSyncBackend.h:27
Marble::OwncloudSyncBackend::uploadRoute
void uploadRoute(const QString &timestamp)
Definition: OwncloudSyncBackend.cpp:92
Marble::OwncloudSyncBackend::routeUploadProgress
void routeUploadProgress(qint64 sent, qint64 total)
Marble::OwncloudSyncBackend::removedFromCache
void removedFromCache(const QString &timestamp)
QObject
Marble::OwncloudSyncBackend::deleteRoute
void deleteRoute(const QString &timestamp)
Definition: OwncloudSyncBackend.cpp:182
Marble::OwncloudSyncBackend::routeDownloaded
void routeDownloaded()
CloudRouteModel.h
Marble::OwncloudSyncBackend::routeDownloadProgress
void routeDownloadProgress(qint64 received, qint64 total)
Marble::OwncloudSyncBackend::OwncloudSyncBackend
OwncloudSyncBackend(CloudSyncManager *cloudSyncManager)
Definition: OwncloudSyncBackend.cpp:82
Marble::OwncloudSyncBackend::cancelUpload
void cancelUpload()
Definition: OwncloudSyncBackend.cpp:244
Marble::OwncloudSyncBackend::routeDeleted
void routeDeleted()
Marble::OwncloudSyncBackend::downloadRouteList
void downloadRouteList()
Definition: OwncloudSyncBackend.cpp:166
Marble::OwncloudSyncBackend::createPreview
QPixmap createPreview(const QString &timestamp)
Definition: OwncloudSyncBackend.cpp:190
Marble::OwncloudSyncBackend::downloadRoute
void downloadRoute(const QString &timestamp)
Definition: OwncloudSyncBackend.cpp:174
Marble::OwncloudSyncBackend::setApiUrl
void setApiUrl(const QUrl &apiUrl)
Definition: OwncloudSyncBackend.cpp:332
Marble::OwncloudSyncBackend::routeListDownloaded
void routeListDownloaded(const QVector< RouteItem > &routeList)
Marble::OwncloudSyncBackend::removeFromCache
void removeFromCache(const QDir &cacheDir, const QString &timestamp)
Removes route with given timestamp from cache.
Definition: OwncloudSyncBackend.cpp:349
Marble::OwncloudSyncBackend::endpointUrl
QUrl endpointUrl(const QString &endpoint)
Generates an endpoint URL by appending endpoint name to API URL.
Definition: OwncloudSyncBackend.cpp:337
Marble::CloudSyncManager
Definition: CloudSyncManager.h:25
Marble::OwncloudSyncBackend::routeName
QString routeName(const QString &timestamp)
Definition: OwncloudSyncBackend.cpp:217
Marble::OwncloudSyncBackend::routeListDownloadProgress
void routeListDownloadProgress(qint64 received, qint64 total)
Marble::OwncloudSyncBackend::~OwncloudSyncBackend
~OwncloudSyncBackend()
Definition: OwncloudSyncBackend.cpp:87
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

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal