From fbe76102e941b9f1edaf236788e42678f05fdf9a Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:08:06 +0200 Subject: 3.9 --- shared/shadow.h | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'shared/shadow.h') diff --git a/shared/shadow.h b/shared/shadow.h index ca373e40..60d30bbd 100644 --- a/shared/shadow.h +++ b/shared/shadow.h @@ -12,15 +12,24 @@ use in windows build only! #endif #include "zstring.h" -#include "fileError.h" +#include "file_error.h" +#include -namespace FreeFileSync +namespace shadow { +struct WaitingForShadow +{ + virtual ~WaitingForShadow() {} + virtual void requestUiRefresh() = 0; //allowed to throw exceptions + virtual void updateStatusText(const Zstring& text) = 0; +}; + + class ShadowCopy //buffer access to Windows Volume Shadow Copy Service { public: - ShadowCopy(); + ShadowCopy(WaitingForShadow* callback); ~ShadowCopy(); Zstring makeShadowCopy(const Zstring& inputFile); //throw(FileError); returns filename on shadow copy @@ -29,9 +38,10 @@ private: ShadowCopy(const ShadowCopy&); ShadowCopy& operator=(const ShadowCopy&); - Zstring realVolumeLast; //buffer last volume name - Zstring shadowVolumeLast; //buffer last created shadow volume - void* backupHandle; + WaitingForShadow* callback_; + + class ShadowVolume; + std::auto_ptr shadowVol; }; } -- cgit