summaryrefslogtreecommitdiff
path: root/library/dir_exist_async.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
commitbd6336c629841c6db3a6ca53a936d629d34db53b (patch)
tree3721ef997864108df175ce677a8a7d4342a6f1d2 /library/dir_exist_async.h
parent4.0 (diff)
downloadFreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.gz
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.bz2
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.zip
4.1
Diffstat (limited to 'library/dir_exist_async.h')
-rw-r--r--library/dir_exist_async.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/library/dir_exist_async.h b/library/dir_exist_async.h
deleted file mode 100644
index cab82aa2..00000000
--- a/library/dir_exist_async.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// **************************************************************************
-// * This file is part of the FreeFileSync project. It is distributed under *
-// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) 2008-2011 ZenJu (zhnmju123 AT gmx.de) *
-// **************************************************************************
-
-#ifndef DIR_EXIST_HEADER_08173281673432158067342132467183267
-#define DIR_EXIST_HEADER_08173281673432158067342132467183267
-
-#include "../shared/check_exist.h"
-#include "status_handler.h"
-#include "../shared/file_error.h"
-#include "../shared/i18n.h"
-
-//dir existence checking may hang for non-existent network drives => run asynchronously and update UI!
-namespace
-{
-using namespace zen; //restricted to unnamed namespace!
-
-bool dirExistsUpdating(const Zstring& dirname, ProcessCallback& procCallback)
-{
- using namespace util;
-
- std::wstring statusText = _("Searching for directory %x...");
- replace(statusText, L"%x", std::wstring(L"\"") + dirname + L"\"", false);
- procCallback.reportStatus(statusText);
-
- auto ft = dirExistsAsync(dirname);
- while (!ft.timed_wait(boost::posix_time::milliseconds(UI_UPDATE_INTERVAL)))
- procCallback.requestUiRefresh(); //may throw!
- return ft.get();
-}
-}
-
-#endif //DIR_EXIST_HEADER_08173281673432158067342132467183267
bgstack15