Dali 3D User Interface Engine
List of all members | Public Member Functions | Protected Member Functions
Dali::Integration::ResourceCache Class Referenceabstract

Abstract interface to receive notifications of resource IO operations. More...

#include <resource-cache.h>

Inheritance diagram for Dali::Integration::ResourceCache:
Inheritance graph
[legend]

Public Member Functions

virtual void LoadResponse (ResourceId id, ResourceTypeId type, ResourcePointer resource, LoadStatus status)=0
 Provide the results of a resource loading operation to the cache. More...
 
virtual void LoadFailed (ResourceId id, ResourceFailure failure)=0
 Report that a resource loading operation has failed. More...
 

Protected Member Functions

virtual ~ResourceCache ()
 Virtual protected destructor, no deletion through this interface. More...
 

Detailed Description

Abstract interface to receive notifications of resource IO operations.

This is used when pulling loaded resources from the PlatformAbstraction.

Definition at line 49 of file resource-cache.h.

Constructor & Destructor Documentation

virtual Dali::Integration::ResourceCache::~ResourceCache ( )
inlineprotectedvirtual

Virtual protected destructor, no deletion through this interface.

Definition at line 56 of file resource-cache.h.

Member Function Documentation

virtual void Dali::Integration::ResourceCache::LoadFailed ( ResourceId  id,
ResourceFailure  failure 
)
pure virtual

Report that a resource loading operation has failed.

Parameters
[in]idThe unique ID of the load request. This should match an ID previously passed into PlatformAbstraction::LoadResource().
[in]failureAn error code, used to determine why the load failed.

Implemented in Dali::Internal::ResourceManager, and Dali::Internal::Platform::ResourceCollector.

Referenced by Dali::TestPlatformAbstraction::GetResources(), and Dali::TizenPlatform::ResourceLoader::ResourceLoaderImpl::GetResources().

Here is the caller graph for this function:

virtual void Dali::Integration::ResourceCache::LoadResponse ( ResourceId  id,
ResourceTypeId  type,
ResourcePointer  resource,
LoadStatus  status 
)
pure virtual

Provide the results of a resource loading operation to the cache.

Parameters
[in]idThe unique ID of the load request. This should match an ID previously passed into PlatformAbstraction::LoadResource(). LoadResponse() may be called multiple times with the same ID, when results are available at different stages e.g. a thumbnail image may be provided, before the full image is loaded.
[in]typeThe type of the resource.
[in]resourceA pointer to a resource (Bitmap etc).
[in]statusThe current loading status. RESOURCE_LOADING and RESOURCE_PARTIALLY_LOADED indicate there are more responses to come, RESOURCE_COMPLETELY_LOADED indicates this is the last response for this id.

Implemented in Dali::Internal::ResourceManager, and Dali::Internal::Platform::ResourceCollector.

Referenced by Dali::TestPlatformAbstraction::GetResources(), and Dali::TizenPlatform::ResourceLoader::ResourceLoaderImpl::GetResources().

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali