diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:08:42 +0200 |
commit | c32707148292d104c66276b43796d6057c8c7a5d (patch) | |
tree | bb83513f4aff24153e21a4ec92e34e4c27651b1f /shared/shadow.h | |
parent | 3.9 (diff) | |
download | FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.gz FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.tar.bz2 FreeFileSync-c32707148292d104c66276b43796d6057c8c7a5d.zip |
3.10
Diffstat (limited to 'shared/shadow.h')
-rw-r--r-- | shared/shadow.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shared/shadow.h b/shared/shadow.h index 60d30bbd..2be44b41 100644 --- a/shared/shadow.h +++ b/shared/shadow.h @@ -13,7 +13,8 @@ use in windows build only! #include "zstring.h" #include "file_error.h" -#include <memory> +#include <map> +#include <boost/shared_ptr.hpp> namespace shadow @@ -22,7 +23,7 @@ struct WaitingForShadow { virtual ~WaitingForShadow() {} virtual void requestUiRefresh() = 0; //allowed to throw exceptions - virtual void updateStatusText(const Zstring& text) = 0; + virtual void reportInfo(const Zstring& text) = 0; }; @@ -30,7 +31,6 @@ class ShadowCopy //buffer access to Windows Volume Shadow Copy Service { public: ShadowCopy(WaitingForShadow* callback); - ~ShadowCopy(); Zstring makeShadowCopy(const Zstring& inputFile); //throw(FileError); returns filename on shadow copy @@ -41,7 +41,8 @@ private: WaitingForShadow* callback_; class ShadowVolume; - std::auto_ptr<ShadowVolume> shadowVol; + typedef std::map<Zstring, boost::shared_ptr<ShadowVolume>, LessFilename> VolNameShadowMap; + VolNameShadowMap shadowVol; }; } |