Alf::IAlfModel Class Reference

class Alf::IAlfModel : public Alf::IAlfInterfaceBase
An interface of the component model. alfwidgetmodel.lib
Since
S60 ?S60_version Draft

Inherits from

Constructor & Destructor Documentation

~IAlfModel()

~IAlfModel()[inline, virtual]

Virtual destructor.

Since
S60 ?S60_version

Member Functions Documentation

addData(int, int *, IAlfVariantType *)

voidaddData(intaNumContainerIndices,
int *aContainerIndices,
IAlfVariantType *aData
)[pure virtual]

Add a number of data fields in the model data. All model change observers are notified about the change.

Since
S60 ?S60_version

Parameters

int aNumContainerIndicesThe number of indices in aContainerIndices.
int * aContainerIndicesThe container indices to find the correct location in the data hierarchy. The ownership is transferred.
IAlfVariantType * aDataThe new data.

addModelChangeObserver(IAlfModelChangeObserver &)

voidaddModelChangeObserver(IAlfModelChangeObserver &aObserver)[pure virtual]

Add a new observer to be notified of any changes in the model.

Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

IAlfModelChangeObserver & aObserverThe model change observer to be added.

clearModel()

voidclearModel()[pure virtual]
Clears the Model.
Since
S60 ?S60_version

data()

IAlfVariantType *data()const [pure virtual]

Get the root data object of this model.

Since
S60 ?S60_version

executeOperation(AlfModelOperation *)

voidexecuteOperation(AlfModelOperation *aOperation)[pure virtual]

Api for executing one operation at a Time

Since
S60 ?S60_version

Parameters

AlfModelOperation * aOperation- An Operation to be executed on the model.

executeOperations(AlfPtrVector< AlfModelOperation > &)

voidexecuteOperations(AlfPtrVector< AlfModelOperation > &aOperationsArray)[pure virtual]

Api for executing batch operations

Since
S60 ?S60_version

Parameters

AlfPtrVector< AlfModelOperation > & aOperationsArray- An RPOinterArray containing the list of operations to be executed in batch.

removeData(int, int *)

voidremoveData(intaNumContainerIndices,
int *aContainerIndices
)[pure virtual]

Remove a number of data fields in the model data. All model change observers are notified about the change.

Since
S60 ?S60_version

Parameters

int aNumContainerIndicesThe number of indices in aContainerIndices.
int * aContainerIndicesThe container indices to find the correct location in the data hierarchy. The ownership is transferred.

removeModelChangeObserver(IAlfModelChangeObserver &)

voidremoveModelChangeObserver(IAlfModelChangeObserver &aObserver)[pure virtual]

Remove an observer which is added to get notifications.

Since
S60 ?S60_version

Parameters

IAlfModelChangeObserver & aObserverThe model change observer to be removed.

setData(IAlfVariantType *)

voidsetData(IAlfVariantType *aData)[pure virtual]

Api to change the model completely at one short. From IAlfModel

Since
S60 ?S60_version

Parameters

IAlfVariantType * aDataThe new data.

type()

const IfId &type()[static, inline]

updateData(int, int *, IAlfVariantType *)

voidupdateData(intaNumContainerIndices,
int *aContainerIndices,
IAlfVariantType *aData
)[pure virtual]
Change a given of data fields in the model . All model change observers are notified about the change.
Since
S60 ?S60_version

Parameters

int aNumContainerIndicesThe number of indices in aContainerIndices.
int * aContainerIndicesThe container indices to find the correct location in the data hierarchy. The ownership is transferred.
IAlfVariantType * aData- The new data to be set