summaryrefslogtreecommitdiff
path: root/shared/fileHandling.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:53 +0200
commit618dfb51d93898632830f1b87443d3f748780871 (patch)
treebac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/fileHandling.h
parent3.4 (diff)
downloadFreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2
FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip
3.5
Diffstat (limited to 'shared/fileHandling.h')
-rw-r--r--shared/fileHandling.h15
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
}
bgstack15