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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • cloudsync
RouteSyncManager.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 ROUTESYNCMANAGER_H
12 #define ROUTESYNCMANAGER_H
13 
14 #include "marble_export.h"
15 
16 namespace Marble {
17 
18 class CloudSyncManager;
19 class RoutingManager;
20 class CloudRouteModel;
21 class RouteItem;
22 
23 class MARBLE_EXPORT RouteSyncManager : public QObject
24 {
25  Q_OBJECT
26 
27  Q_PROPERTY( bool routeSyncEnabled READ isRouteSyncEnabled WRITE setRouteSyncEnabled NOTIFY routeSyncEnabledChanged )
28 
29 public:
30  explicit RouteSyncManager( CloudSyncManager *cloudSyncManager );
31  ~RouteSyncManager();
32 
33  void setRoutingManager( RoutingManager *routingManager );
34 
39  bool isRouteSyncEnabled() const;
40 
45  void setRouteSyncEnabled( bool enabled );
46 
51  CloudRouteModel *model();
52 
57  QString generateTimestamp() const;
58 
64  QString saveDisplayedToCache() const;
65 
71  void uploadRoute();
72 
77  QVector<RouteItem> cachedRouteList() const;
78 
79 public slots:
84  void uploadRoute( const QString &timestamp );
85 
91  void prepareRouteList();
92 
98  void downloadRoute( const QString &timestamp );
99 
104  void openRoute( const QString &timestamp );
105 
110  void deleteRoute( const QString &timestamp );
111 
116  void removeRouteFromCache( const QString &timestamp );
117 
123  void updateUploadProgressbar( qint64 sent, qint64 total );
124 
125 private slots:
131  void setRouteModelItems( const QVector<RouteItem> &routeList );
132 
133 
134 signals:
135  void routeSyncEnabledChanged(bool enabled);
136  void routeListDownloadProgress( qint64 received, qint64 total );
137  void routeUploadProgress( qint64 sent, qint64 total );
138 
139 private:
140  class Private;
141  Private *d;
142 };
143 
144 }
145 
146 #endif // ROUTESYNCMANAGER_H
Marble::CloudRouteModel
Definition: CloudRouteModel.h:25
Marble::RouteSyncManager
Definition: RouteSyncManager.h:23
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
Marble::RoutingManager
Delegates data retrieval and model updates to the appropriate routing provider.
Definition: RoutingManager.h:37
QVector
marble_export.h
Marble::CloudSyncManager
Definition: CloudSyncManager.h:24
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

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
  • 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