|
|
@@ -503,6 +503,35 @@ public:
|
|
|
return Error;
|
|
|
}
|
|
|
|
|
|
+ ErrorCodeEnum FilesClean(ResourceWatcherService_FilesClean_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ return pFunc->AsyncRequest(ResourceWatcherService_Method_FilesClean, ResourceWatcherService_MethodSignature_FilesClean, Buf, spAsyncWait, dwTimeout);
|
|
|
+ }
|
|
|
+ ErrorCodeEnum FilesClean(ResourceWatcherService_FilesClean_Req &Req, ResourceWatcherService_FilesClean_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = FilesClean(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum FilesClean(ResourceWatcherService_FilesClean_Req &Req, ResourceWatcherService_FilesClean_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = FilesClean(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
bool SafeDelete()
|
|
|
{
|