• 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
CloudSyncManager.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 CLOUDSYNCMANAGER_H
12 #define CLOUDSYNCMANAGER_H
13 
14 #include <QObject>
15 #include <QUrl>
16 
17 #include "RouteSyncManager.h"
18 #include "marble_export.h"
19 #include "routing/RoutingManager.h"
20 
21 namespace Marble {
22 
23 class BookmarkSyncManager;
24 
25 class MARBLE_EXPORT CloudSyncManager : public QObject
26 {
27  Q_OBJECT
28 
29  Q_PROPERTY( bool workOffline READ workOffline WRITE setWorkOffline NOTIFY workOfflineChanged )
30  Q_PROPERTY( bool syncEnabled READ isSyncEnabled WRITE setSyncEnabled NOTIFY syncEnabledChanged )
31 
32  Q_PROPERTY( QString owncloudUsername READ owncloudUsername WRITE setOwncloudUsername NOTIFY owncloudUsernameChanged )
33  Q_PROPERTY( QString owncloudPassword READ owncloudPassword WRITE setOwncloudPassword NOTIFY owncloudPasswordChanged )
34  Q_PROPERTY( QString owncloudServer READ owncloudServer WRITE setOwncloudServer NOTIFY owncloudServerChanged )
35  Q_PROPERTY( QUrl apiUrl READ apiUrl NOTIFY apiUrlChanged )
36 
37  Q_PROPERTY( BookmarkSyncManager* bookmarkSyncManager READ bookmarkSyncManager NOTIFY bookmarkSyncManagerChanged )
38  Q_PROPERTY( RouteSyncManager* routeSyncManager READ routeSyncManager NOTIFY routeSyncManagerChanged )
39 
40 public:
41  explicit CloudSyncManager( QObject *parent = 0 );
42  ~CloudSyncManager();
43 
48  bool workOffline() const;
49 
54  void setWorkOffline( bool offline );
55 
60  bool isSyncEnabled() const;
61 
66  QString owncloudServer() const;
67 
72  QString owncloudUsername() const;
73 
78  QString owncloudPassword() const;
79 
84  void setSyncEnabled( bool enabled );
85 
90  void setOwncloudServer( const QString &owncloudServer );
91 
96  void setOwncloudUsername( const QString &owncloudUsername );
97 
102  void setOwncloudPassword( const QString &owncloudPassword );
103 
108  QString apiPath() const;
109 
114  QUrl apiUrl() const;
115 
119  RouteSyncManager* routeSyncManager();
120 
124  BookmarkSyncManager* bookmarkSyncManager();
125 
126 Q_SIGNALS:
127  void workOfflineChanged(bool workOffline);
128  void syncEnabledChanged(bool enabled);
129 
130  void owncloudUsernameChanged(const QString &username);
131  void owncloudPasswordChanged(const QString &password);
132  void owncloudServerChanged(const QString &server);
133 
134  void apiUrlChanged(const QUrl &url);
135  void routeSyncManagerChanged();
136  void bookmarkSyncManagerChanged();
137 
138 private:
139  class Private;
140  Private *d;
141 };
142 
143 }
144 
145 #endif // CLOUDSYNCMANAGER_H
Marble::RouteSyncManager
Definition: RouteSyncManager.h:23
QObject
RoutingManager.h
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
RouteSyncManager.h
marble_export.h
Marble::CloudSyncManager
Definition: CloudSyncManager.h:25
Marble::BookmarkSyncManager
Definition: BookmarkSyncManager.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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