cohtml::IAsyncResourceStreamResponse

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.

#include <ResourceHandler.h>

Public Types

Name
enumStatus { Success, Failure}

Public Functions

Name
virtual~IAsyncResourceStreamResponse()
virtual voidSetStreamReader(ISyncStreamReader * reader) =0
Set the ISyncStreamReader instance for the requested resource.
virtual voidFinish(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.

Protected Functions

Name
IAsyncResourceStreamResponse()

Public Types Documentation

enum Status

EnumeratorValueDescription
Success
Failure

Public Functions Documentation

function ~IAsyncResourceStreamResponse

virtual ~IAsyncResourceStreamResponse()

function SetStreamReader

virtual void SetStreamReader(
    ISyncStreamReader * reader
) =0

Set the ISyncStreamReader instance for the requested resource.

function Finish

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.

Protected Functions Documentation

function IAsyncResourceStreamResponse

IAsyncResourceStreamResponse()