CPsuiResourceLoader Class Reference

class CPsuiResourceLoader : public CBase

A helper class for loading dll-specific resource files on demand. Searches and loads the specified resource file to the CONE environment (CCoeEnv) -object (accessible as iCoeEnv in CONE-related classes). After calling NewL the user can access the resources directly via the CONE environment. The resources in the file are accessible until the CPsuiResourceLoader object is destroyed. The resource file must be a well-formed UIKON resource file with NAME and RSS_SIGNATURE specified.

psui.lib
Since
1.0

Inherits from

Constructor & Destructor Documentation

~CPsuiResourceLoader()

~CPsuiResourceLoader()

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

NewL()

IMPORT_C CPsuiResourceLoader *NewL()[static]

Symbian OS 1st phase constructor. Creates and returns a new resource loader object. Loads resource from any drive. If this function is succesful (doesn't leave) the resources in the file are usable through CCoeEnv.

Exceptions
KErrNotFound

if the resource file is not found.

KErrNoMemory

if out of memory.

error

from CCoeEnv::AddResourceFileL.

NewLC()

IMPORT_C CPsuiResourceLoader *NewLC()[static]

Same as NewL, but leaves the created object onto the cleanup stack. NewL

Member Data Documentation

RConeResourceLoader * iResourceLoader

RConeResourceLoader *iResourceLoader[private]