Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::UI::FileHandler Class Referenceabstract

Abstract interface that allows clients to provide their own file-handling functionality. More...

#include <Coherent/UI/FileHandler.h>

Public Member Functions

virtual void ReadFile (const wchar_t *url, URLRequestBase *request, ResourceResponse *response)=0
 Requests to read a resource. More...
 
virtual void WriteFile (const wchar_t *url, ResourceData *resource)=0
 Request to write to a resource. More...
 

Detailed Description

Abstract interface that allows clients to provide their own file-handling functionality.

Member Function Documentation

virtual void Coherent::UI::FileHandler::ReadFile ( const wchar_t *  url,
URLRequestBase request,
ResourceResponse response 
)
pure virtual

Requests to read a resource.

Parameters
urlthe coui url of the resource
requestthe request object for the resource.
responsethe response object for the resource
Note
The url has been decoded - any %xx have been replaced by their original characters.
The |request| object is valid throughout the ReadFile call
The |response| object is valid until either its SignalSuccess or SignalFailure method is called.
Parameters
responsethe response to be filled with the resource data or notified for failure
virtual void Coherent::UI::FileHandler::WriteFile ( const wchar_t *  url,
ResourceData resource 
)
pure virtual

Request to write to a resource.

Parameters
urlthe coui url of the resource.
Note
The url has been decoded - any %xx have been replaced by their original characters.
Parameters
resourcethe resource data that has to be written