diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
commit | 618dfb51d93898632830f1b87443d3f748780871 (patch) | |
tree | bac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/fileHandling.h | |
parent | 3.4 (diff) | |
download | FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2 FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip |
3.5
Diffstat (limited to 'shared/fileHandling.h')
-rw-r--r-- | shared/fileHandling.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/shared/fileHandling.h b/shared/fileHandling.h index bb33bd0e..13770839 100644 --- a/shared/fileHandling.h +++ b/shared/fileHandling.h @@ -11,6 +11,10 @@ #include "fileError.h" #include <wx/longlong.h> +#ifdef FFS_WIN +#include "shadow.h" +#endif + namespace FreeFileSync { @@ -68,21 +72,14 @@ struct CopyFileCallback //callback functionality virtual Response updateCopyStatus(const wxULongLong& totalBytesTransferred) = 0; //DON'T throw exceptions here, at least in Windows build! }; -#ifdef FFS_WIN -class ShadowCopy; - void copyFile(const Zstring& sourceFile, const Zstring& targetFile, const bool copyFileSymLinks, +#ifdef FFS_WIN ShadowCopy* shadowCopyHandler = NULL, //supply handler for making shadow copies +#endif CopyFileCallback* callback = NULL); //throw (FileError); -#elif defined FFS_LINUX -void copyFile(const Zstring& sourceFile, - const Zstring& targetFile, - const bool copyFileSymLinks, - CopyFileCallback* callback = NULL); //throw (FileError); -#endif } |