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
voidAlfWidgetEnvExtension::initializeEnvironmentForTheme(CAlfEnv &)
OSN_IMPORT voidinitializeEnvironment(CAlfEnv &)
voidinitializeEnvironmentForFactory(CAlfEnv &)
voidinitializeEnvironmentForResourcePool(CAlfEnv &)
OSN_IMPORT ResourcePool &resourcePool(CAlfEnv &)
OSN_IMPORT AlfThemeManagerUtil &themeManagerUtil(CAlfEnv &)
OSN_IMPORT IAlfWidgetFactory &widgetFactory(CAlfEnv &)

Member Functions Documentation

AlfWidgetEnvExtension::initializeEnvironmentForTheme(CAlfEnv &)

voidAlfWidgetEnvExtension::initializeEnvironmentForTheme(CAlfEnv &aEnv)[static]

Initializes environment with Theme Manager extension

Parameters

CAlfEnv & aEnvAlf environment object

initializeEnvironment(CAlfEnv &)

OSN_IMPORT voidinitializeEnvironment(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 & aEnvAlf environment object.

initializeEnvironmentForFactory(CAlfEnv &)

voidinitializeEnvironmentForFactory(CAlfEnv &aEnv)[static]

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

Parameters

CAlfEnv & aEnvAlf environment object

initializeEnvironmentForResourcePool(CAlfEnv &)

voidinitializeEnvironmentForResourcePool(CAlfEnv &aEnv)[static]

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

Parameters

CAlfEnv & aEnvAlf 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 & aEnvThe 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 & aEnvThe 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 & aEnvThe Alf environment object in which to find the widget factory