• 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
BookmarkSyncManager.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 BOOKMARKSYNCMANAGER_H
12 #define BOOKMARKSYNCMANAGER_H
13 
14 #include "MergeItem.h"
15 #include "marble_export.h"
16 #include "GeoDataPlacemark.h"
17 
18 #include <QObject>
19 #include <QNetworkReply>
20 
21 namespace Marble {
22 
23 class CloudSyncManager;
24 class BookmarkManager;
25 
26 class MARBLE_EXPORT BookmarkSyncManager : public QObject
27 {
28  Q_OBJECT
29 
30  Q_PROPERTY( bool bookmarkSyncEnabled READ isBookmarkSyncEnabled WRITE setBookmarkSyncEnabled NOTIFY bookmarkSyncEnabledChanged )
31 
32 public:
33  explicit BookmarkSyncManager( CloudSyncManager *cloudSyncManager );
34  ~BookmarkSyncManager();
35 
39  QDateTime lastSync() const;
40 
45  bool isBookmarkSyncEnabled() const;
46 
51  void setBookmarkSyncEnabled( bool enabled );
52 
53  void setBookmarkManager(BookmarkManager *manager);
54 
55 Q_SIGNALS:
56  void bookmarkSyncEnabledChanged(bool enabled);
57  void uploadProgress( qint64 sent, qint64 total );
58  void downloadProgress( qint64 received, qint64 total );
59  void mergeConflict( MergeItem *item );
60  void syncComplete();
61 
62 public Q_SLOTS:
66  void startBookmarkSync();
67 
72  void resolveConflict( MergeItem *item );
73 
74 private:
75  Q_PRIVATE_SLOT(d, void saveDownloadedToCache( const QByteArray &kml ) )
76  Q_PRIVATE_SLOT(d, void parseTimestamp() )
77  Q_PRIVATE_SLOT(d, void copyLocalToCache() )
78 
79  Q_PRIVATE_SLOT(d, void continueSynchronization() )
80  Q_PRIVATE_SLOT(d, void completeSynchronization() )
81  Q_PRIVATE_SLOT(d, void completeMerge() )
82  Q_PRIVATE_SLOT(d, void completeUpload() )
83 
84 private:
85  class Private;
86  Private *d;
87 };
88 
89 }
90 
91 #endif // BOOKMARKSYNCMANAGER_H
QByteArray
Marble::BookmarkManager
This class is responsible for loading the book mark objects from the files and various book mark oper...
Definition: BookmarkManager.h:35
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
GeoDataPlacemark.h
Marble::MergeItem
Definition: MergeItem.h:23
marble_export.h
MergeItem.h
Marble::CloudSyncManager
Definition: CloudSyncManager.h:24
Marble::BookmarkSyncManager
Definition: BookmarkSyncManager.h:26
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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