1.26.2.1
Gameface
cohtml::IAsyncResourceStreamResponse Class Referenceabstract

Response that the application should use when the resource stream has been created You can keep a reference to this object as long as needed and call Finish afterwards. More...

Public Types

enum  Status { Success, Failure }
 

Public Member Functions

virtual ~IAsyncResourceStreamResponse ()
 
virtual void SetStreamReader (ISyncStreamReader *reader)=0
 Set the ISyncStreamReader instance for the requested resource. More...
 
virtual void Finish (Status status)=0
 Call when the resource stream has been loaded or the load failed. After this call the object is invalidated. NB: It's not safe to call any method on this interface after Finish. More...
 

Protected Member Functions

 IAsyncResourceStreamResponse ()
 

Detailed Description

Response that the application should use when the resource stream has been created You can keep a reference to this object as long as needed and call Finish afterwards.

Member Enumeration Documentation

◆ Status

Enumerator
Success 
Failure 

Constructor & Destructor Documentation

◆ IAsyncResourceStreamResponse()

cohtml::IAsyncResourceStreamResponse::IAsyncResourceStreamResponse ( )
protected

◆ ~IAsyncResourceStreamResponse()

virtual cohtml::IAsyncResourceStreamResponse::~IAsyncResourceStreamResponse ( )
virtual

Member Function Documentation

◆ Finish()

virtual void cohtml::IAsyncResourceStreamResponse::Finish ( Status  status)
pure virtual

Call when the resource stream has been loaded or the load failed. After this call the object is invalidated. NB: It's not safe to call any method on this interface after Finish.

◆ SetStreamReader()

virtual void cohtml::IAsyncResourceStreamResponse::SetStreamReader ( ISyncStreamReader reader)
pure virtual

Set the ISyncStreamReader instance for the requested resource.