Provides a way for the client application to read the resources required by the UI system. More...
#include <Coherent/Coherent/UIGT/ResourceHandler.h>
Public Member Functions | |
virtual void | OnResourceRead (const ResourceRequestUIGT *request, Coherent::UIGT::ResourceResponseUIGT *response)=0 |
Called when the UI system needs to read a resource. More... | |
virtual void | OnShouldLoadResourceRequest (const Coherent::UIGT::ResourceRequestUIGT *request, Coherent::UIGT::LoadResourceResponseUIGT *response) |
Allows you to intercept specific resources If the client doesn't override this method, the default response will be to load every request. LoadResourceResponseUIGT::SignalContinueLoadResourceResponse will pass the resource LoadResourceResponseUIGT::SignalCancelLoadResourceResponse will stop loading the resource. More... | |
virtual void | OnModifyHeaders (Coherent::UIGT::ResourceRequestUIGT *request) |
Allows you to modify a specific header You can set or add a header using ResourceRequestUIGT::SetHeader You can remove a header using ResourceRequestUIGT::RemoveHeader. More... | |
Provides a way for the client application to read the resources required by the UI system.
|
inlinevirtual |
Allows you to modify a specific header You can set or add a header using ResourceRequestUIGT::SetHeader You can remove a header using ResourceRequestUIGT::RemoveHeader.
request | The request object providing the URL and header data |
|
pure virtual |
Called when the UI system needs to read a resource.
request | The request object providing the URL and header data |
response | a special response object used to fill the data and signal completion or error for the load |
|
inlinevirtual |
Allows you to intercept specific resources If the client doesn't override this method, the default response will be to load every request. LoadResourceResponseUIGT::SignalContinueLoadResourceResponse will pass the resource LoadResourceResponseUIGT::SignalCancelLoadResourceResponse will stop loading the resource.
request | The request object providing the URL and header data |
response | a special response object used to determine how to handle the result |