diff options
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; }; } |