Alf::AlfWidgetEnvExtension Class Reference

class Alf::AlfWidgetEnvExtension
class with methods to access extensions in AlfEnv alfwidgetmodel.lib
Since
S60 ?S60_version Draft
Public Member Functions
void AlfWidgetEnvExtension::initializeEnvironmentForTheme (CAlfEnv &)
OSN_IMPORT void initializeEnvironment (CAlfEnv &)
void initializeEnvironmentForFactory (CAlfEnv &)
void initializeEnvironmentForResourcePool (CAlfEnv &)
OSN_IMPORT ResourcePool & resourcePool (CAlfEnv &)
OSN_IMPORT AlfThemeManagerUtil & themeManagerUtil (CAlfEnv &)
OSN_IMPORT IAlfWidgetFactory & widgetFactory (CAlfEnv &)

Member Functions Documentation

AlfWidgetEnvExtension::initializeEnvironmentForTheme(CAlfEnv &)

void AlfWidgetEnvExtension::initializeEnvironmentForTheme ( CAlfEnv & aEnv ) [static]

Initializes environment with Theme Manager extension

Parameters

CAlfEnv & aEnv Alf environment object

initializeEnvironment(CAlfEnv &)

OSN_IMPORT void initializeEnvironment ( CAlfEnv & aEnv ) [static]

Initialize the singleton objects that are required for the widget model

Exceptions
osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the resource pool extension can not be hooked to Alf environment.

osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the factory extension can not be hooked to Alf environment.

osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the widget factory cannot be created.

Parameters

CAlfEnv & aEnv Alf environment object.

initializeEnvironmentForFactory(CAlfEnv &)

void initializeEnvironmentForFactory ( CAlfEnv & aEnv ) [static]

Initialize the singleton object for the widget factory required for the widget model

Parameters

CAlfEnv & aEnv Alf environment object

initializeEnvironmentForResourcePool(CAlfEnv &)

void initializeEnvironmentForResourcePool ( CAlfEnv & aEnv ) [static]

Initialize the singleton object for the resource pool required for the widget model

Parameters

CAlfEnv & aEnv Alf environment object

resourcePool(CAlfEnv &)

OSN_IMPORT ResourcePool & resourcePool ( CAlfEnv & aEnv ) [static]

Access to the application-level resource pool It also initializes the environment with resource pool extension, if it was not initialized earlier

Exceptions
osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the extension can not be hooked to Alf environment.

Parameters

CAlfEnv & aEnv The Alf environment object in which to find the pool

themeManagerUtil(CAlfEnv &)

OSN_IMPORT AlfThemeManagerUtil & themeManagerUtil ( CAlfEnv & aEnv ) [static]

Access to the application-level Thememanager.

Parameters

CAlfEnv & aEnv The Alf environment object in which to find the thememanager.

widgetFactory(CAlfEnv &)

OSN_IMPORT IAlfWidgetFactory & widgetFactory ( CAlfEnv & aEnv ) [static]

Access to the widget factory It also initializes the environment with widget factory extension, if it was not initialized earlier

Exceptions
osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the extension can not be hooked to Alf environment.

osncore::AlfWidgetException

Thrown with the error code osncore::ECommonError when the widget factory cannot be created.

Parameters

CAlfEnv & aEnv The Alf environment object in which to find the widget factory