1 #ifndef QTDATASYNC_IOSSYNCDELEGATE_H 2 #define QTDATASYNC_IOSSYNCDELEGATE_H 7 #include <QtCore/qobject.h> 8 #include <QtCore/qscopedpointer.h> 9 #include <QtCore/qsettings.h> 11 #include <QtDataSync/setup.h> 12 #include <QtDataSync/syncmanager.h> 14 #include "QtDataSyncIos/qtdatasyncios_global.h" 18 class IosSyncDelegatePrivate;
25 Q_PROPERTY(qint64 interval READ interval WRITE setInterval NOTIFY intervalChanged)
27 Q_PROPERTY(
bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
30 Q_PROPERTY(
bool waitFullSync READ waitFullSync WRITE setWaitFullSync NOTIFY waitFullSyncChanged)
32 Q_PROPERTY(
bool persistState READ persistState CONSTANT)
55 qint64 interval()
const;
57 std::chrono::minutes intervalMinutes()
const;
59 bool isEnabled()
const;
61 bool waitFullSync()
const;
63 virtual bool persistState()
const;
66 template <
typename TRep,
typename TPeriod>
67 void setInterval(
const std::chrono::duration<TRep, TPeriod> &interval);
69 void setInterval(std::chrono::minutes interval);
73 void setInterval(qint64 interval);
75 void setEnabled(
bool enabled);
77 void setWaitFullSync(
bool waitFullSync);
81 void intervalChanged(qint64 interval, QPrivateSignal);
83 void enabledChanged(
bool enabled, QPrivateSignal);
85 void waitFullSyncChanged(
bool waitFullSync, QPrivateSignal);
89 virtual QString setupName()
const;
91 virtual void prepareSetup(
Setup &setup);
102 friend class QtDataSync::IosSyncDelegatePrivate;
106 template<
typename TRep,
typename TPeriod>
114 #endif // QTDATASYNC_IOSSYNCDELEGATE_H The class to setup and create datasync instances.
qint64 interval() const
READ accessor for IosSyncDelegate::interval.
A helper class to perform background synchronization on Ios.
The primary namespace of the QtDataSync library.
SyncState
The possible states the sync engine can be in.
SyncResult
The possible results of a synchronization attempt.
void setInterval(const std::chrono::duration< TRep, TPeriod > &interval)
WRITE accessor for IosSyncDelegate::interval.