Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::IStreamProgressCallback Struct Reference

#include <cStreamProgress.h>

Inheritance diagram for Gray::IStreamProgressCallback:
GrayLib::cSyncDir

Public Member Functions

virtual ~ IStreamProgressCallback ()
 
virtual HRESULT _stdcall onProgressCallback (const cStreamProgress &progress)
 

Detailed Description

Abstract Base class. Get call backs indicating the overall progress of some action. Similar to .NET System.IProgress<T> This can be used as ICancellable with cThreadState. The caller may decide to cancel the function via the onProgressCallback return.

Constructor & Destructor Documentation

◆ ~ IStreamProgressCallback()

virtual Gray::IStreamProgressCallback::~ IStreamProgressCallback ( )
inlinevirtual

Member Function Documentation

◆ onProgressCallback()

virtual HRESULT _stdcall Gray::IStreamProgressCallback::onProgressCallback ( const cStreamProgress progress)
inlinevirtual

Some synchronous process is notifying us how far it has gone.

Returns
S_OK = just keep going FAILED(hRes) = stop the action. e.g. HRESULT_WIN32_C(ERROR_CANCELED) = stop

Reimplemented in GrayLib::cSyncDir.


The documentation for this struct was generated from the following file: