libquentier 0.8.0
The library for rich desktop clients of Evernote service
|
The IPatch interface represents patches of the 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. More...
#include <IPatch.h>
Public Member Functions | |
virtual int | fromVersion () const noexcept=0 |
virtual int | toVersion () const noexcept=0 |
virtual QString | patchShortDescription () const =0 |
virtual QString | patchLongDescription () const =0 |
virtual QFuture< void > | backupLocalStorage ()=0 |
virtual QFuture< void > | restoreLocalStorageFromBackup ()=0 |
virtual QFuture< void > | removeLocalStorageBackup ()=0 |
virtual QFuture< void > | apply ()=0 |
The IPatch interface represents patches of the 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.
Apply the patch to local storage
Backup either the entire local storage or its parts affected by the particular patch, should be called before applying the patch (but can be skipped if not desired).
Remove the previously made backup of local storage, presumably after successful application of the patch so the backup is no longer needed. It won't work if no backup was made before applying a patch, obviously.
|
pure virtual |
Restore local storage from previously made backup, presumably after the failed attempt to apply a patch. Won't work if no backup was made before applying a patch, obviously.