1
0

Dokan logging

This commit is contained in:
Scott E. Graves
2017-03-27 18:04:06 -05:00
parent b6882703fd
commit 7b904b64fb
2 changed files with 189 additions and 0 deletions

View File

@@ -464,5 +464,187 @@ public:
return L"DokanDeleteFileW|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanSetFileAttributesW :
public CEvent
{
public:
DokanSetFileAttributesW(const SString& cachePath) :
_cachePath(cachePath)
{
}
public:
virtual ~DokanSetFileAttributesW()
{
}
private:
const SString _cachePath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanSetFileAttributesW(_cachePath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanSetFileAttributesW|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanGetFileAttributesW :
public CEvent
{
public:
DokanGetFileAttributesW(const SString& cachePath) :
_cachePath(cachePath)
{
}
public:
virtual ~DokanGetFileAttributesW()
{
}
private:
const SString _cachePath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanGetFileAttributesW(_cachePath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanGetFileAttributesW|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanSetFileSecurityW :
public CEvent
{
public:
DokanSetFileSecurityW(const SString& cachePath) :
_cachePath(cachePath)
{
}
public:
virtual ~DokanSetFileSecurityW()
{
}
private:
const SString _cachePath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanSetFileSecurityW(_cachePath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanSetFileSecurityW|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanSetFileTime :
public CEvent
{
public:
DokanSetFileTime(const SString& cachePath) :
_cachePath(cachePath)
{
}
public:
virtual ~DokanSetFileTime()
{
}
private:
const SString _cachePath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanSetFileTime(_cachePath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanSetFileTime|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanSetAllocationSize :
public CEvent
{
public:
DokanSetAllocationSize(const SString& cachePath) :
_cachePath(cachePath)
{
}
public:
virtual ~DokanSetAllocationSize()
{
}
private:
const SString _cachePath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanSetAllocationSize(_cachePath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanSetAllocationSize|PATH|" + _cachePath;
}
};
class SIADRIVE_DOKAN_EXPORTABLE DokanMoveFileW :
public CEvent
{
public:
DokanMoveFileW(const SString& srcPath, const SString& destPath) :
_srcPath(srcPath),
_destPath(destPath)
{
}
public:
virtual ~DokanMoveFileW()
{
}
private:
const SString _srcPath;
const SString _destPath;
public:
virtual std::shared_ptr<CEvent> Clone() const override
{
return std::shared_ptr<CEvent>(new DokanMoveFileW(_srcPath, _destPath));
}
virtual SString GetSingleLineMessage() const override
{
return L"DokanMoveFileW|SRC|" + _srcPath + "|DEST|" + _destPath;
}
};
NS_END(3)
#endif //_SIADOKANDRIVE_H