1
0
This commit is contained in:
Scott E. Graves
2017-03-28 12:41:17 -05:00
parent 0055169dca
commit ffaf818e5f
7 changed files with 38 additions and 27 deletions

View File

@@ -2,6 +2,8 @@
#define _SIADOKANDRIVE_H
#ifdef _WIN32
#define WIN32_NO_STATUS
// Import or export functions and/or classes
#ifdef SIADRIVE_DOKAN_EXPORT_SYMBOLS
#define SIADRIVE_DOKAN_EXPORTABLE __declspec(dllexport)
@@ -194,10 +196,11 @@ class SIADRIVE_DOKAN_EXPORTABLE DokanFindFiles :
public CEvent
{
public:
DokanFindFiles(const SString& cachePath, const SString& rootPath, const SString& siaQuery) :
DokanFindFiles(const SString& cachePath, const SString& rootPath, const SString& siaQuery, const SString& findFile) :
_cachePath(cachePath),
_rootPath(rootPath),
_siaQuery(siaQuery)
_siaQuery(siaQuery),
_findFile(findFile)
{
}
@@ -210,18 +213,20 @@ private:
const SString _cachePath;
const SString _rootPath;
const SString _siaQuery;
const SString _findFile;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanFindFiles(_cachePath, _rootPath, _siaQuery));
return std::shared_ptr<CEvent>(new DokanFindFiles(_cachePath, _rootPath, _siaQuery, _findFile));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanFindFiles|PATH|" + _cachePath +
"|ROOT|" + _rootPath +
"|QUERY|" + _siaQuery;
"|QUERY|" + _siaQuery +
"|FIND|" + _findFile;
}
};