19 #ifndef LIB_QUENTIER_LOCAL_STORAGE_I_LOCAL_STORAGE_PATCH_H 20 #define LIB_QUENTIER_LOCAL_STORAGE_I_LOCAL_STORAGE_PATCH_H 22 #include <quentier/utility/Macros.h> 23 #include <quentier/utility/Linkage.h> 29 QT_FORWARD_DECLARE_CLASS(ErrorString)
30 QT_FORWARD_DECLARE_CLASS(LocalStorageDatabaseUpgrader)
51 virtual int fromVersion()
const = 0;
57 virtual int toVersion()
const = 0;
62 virtual QString patchShortDescription()
const = 0;
67 virtual QString patchLongDescription()
const = 0;
79 virtual bool backupLocalStorage(
ErrorString & errorDescription) = 0;
92 virtual bool restoreLocalStorageFromBackup(
107 virtual bool removeLocalStorageBackup(
ErrorString & errorDescription) = 0;
117 virtual bool apply(
ErrorString & errorDescription) = 0;
119 friend class LocalStorageDatabaseUpgrader;
127 void progress(
double progress);
134 void backupProgress(
double progress);
142 void restoreBackupProgress(
double progress);
147 #endif // LIB_QUENTIER_LOCAL_STORAGE_I_LOCAL_STORAGE_PATCH_H The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
Definition: DecryptedTextManager.h:26
The ILocalStoragePatch class represents the interface for patches of local storage. Each such patch somehow changes the layout of local storage persistence so that only compliant & corresponding versions of libquentier can be used to work with it.
Definition: ILocalStoragePatch.h:38