1 #ifndef QTDATASYNC_MIGRATIONHELPER_H 2 #define QTDATASYNC_MIGRATIONHELPER_H 4 #include <QtCore/qobject.h> 5 #include <QtCore/qscopedpointer.h> 7 #include "QtDataSync/qtdatasync_global.h" 11 class MigrationHelperPrivate;
21 MigrateChanged = (0x02 | MigrateData),
22 MigrateRemoteConfig = 0x04,
24 MigrateWithCleanup = 0x08,
25 MigrateOverwriteConfig = 0x10,
26 MigrateOverwriteData = 0x20,
28 MigrateDefault = (MigrateData | MigrateRemoteConfig | MigrateWithCleanup)
30 Q_DECLARE_FLAGS(MigrationFlags, MigrationFlag)
31 Q_FLAG(MigrationFlags)
34 static const
QString DefaultOldStorageDir;
44 void startMigration(const
QString &storageDir = DefaultOldStorageDir, MigrationFlags flags = MigrateDefault);
48 void migrationPrepared(
int operations);
50 void migrationProgress(
int current);
52 void migrationDone(
bool ok);
62 #endif // QTDATASYNC_MIGRATIONHELPER_H A helper class to migrate data from DataSync 3.0 to this version.
The primary namespace of the QtDataSync library.
MigrationFlag
Flags to configure what and how should be migrated.