Alf::AlfWidgetImpl Class Reference

class Alf::AlfWidgetImpl

The private implementation of AlfWidget. The methods are documented in the class AlfWidget.

alfwidgetmodel.lib
Since
S60 ?S60_version

Constructor & Destructor Documentation

AlfWidgetImpl()

AlfWidgetImpl()

Constructor.

Since
S60 ?S60_version

~AlfWidgetImpl()

~AlfWidgetImpl()

Destructor.

Since
S60 ?S60_version

Member Functions Documentation

addWidget(AlfWidget *)

voidaddWidget(AlfWidget *aWidget)

Add a widget to the widgets array.

Parameters

AlfWidget * aWidgetThe widget to be appended to the array of widgets.

control()

CAlfWidgetControl *control()

control.

Since
S60 ?S60_version

findWidget(AlfWidget *)

intfindWidget(AlfWidget *aWidget)

Returns the index of the widget in this array. If the given widget is not found from the array -1 is returned.

Parameters

AlfWidget * aWidgetWidget to be searched from the array.

getAttributeOwner()

AlfWidgetAttributeOwnerImpl *getAttributeOwner()

getWidget(int)

AlfWidget *getWidget(intaIndex)

Return widget at the index

Parameters

int aIndex

model()

IAlfModel *model()

model.

Since
S60 ?S60_version

removeWidget(int)

voidremoveWidget(intaIndex)

Parameters

int aIndex

setControl(CAlfWidgetControl *, bool)

voidsetControl(CAlfWidgetControl *aControl,
boolaDeletePreviousControl
)

setControl.

Since
S60 ?S60_version

Parameters

CAlfWidgetControl * aControl
bool aDeletePreviousControl

setModel(IAlfModel *, bool)

voidsetModel(IAlfModel *aModel,
boolaTakeOwnership
)

setModel.

Since
S60 ?S60_version

Parameters

IAlfModel * aModel
bool aTakeOwnership

setWidgetName(const UString &)

voidsetWidgetName(const UString &aWidgetName)

Set the id of the widget.

Since
S60 ?S60_version

Parameters

const UString & aWidgetNameThe name of the widget instance.

widgetCount()

intwidgetCount()

Return total number of widgets in the list.

widgetName()

const UString &widgetName()const

widgetName.

Since
S60 ?S60_version

Member Data Documentation

AlfPtrVector< AlfAttribute > mAttributeList

AlfPtrVector< AlfAttribute >mAttributeList[private]

auto_ptr< AlfWidgetAttributeOwnerImpl > mAttributeOwnerImpl

auto_ptr< AlfWidgetAttributeOwnerImpl >mAttributeOwnerImpl[private]

CAlfWidgetControl * mControl

CAlfWidgetControl *mControl[private]

The control. Not own.

IAlfModel * mModel

IAlfModel *mModel[private]

The model. Own.

bool mTakesModelOwnership

boolmTakesModelOwnership[private]

UString mWidgetName

UString mWidgetName[private]

The widget id. Own.

AlfPtrVector< AlfWidget > mWidgets

AlfPtrVector< AlfWidget >mWidgets[private]