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 *)

void addData ( int aNumContainerIndices,
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 aNumContainerIndices The number of indices in aContainerIndices.
int * aContainerIndices The container indices to find the correct location in the data hierarchy. The ownership is transferred.
IAlfVariantType * aData The new data.

addModelChangeObserver(IAlfModelChangeObserver &)

void addModelChangeObserver ( 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 & aObserver The model change observer to be added.

clearModel()

void clearModel ( ) [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 *)

void executeOperation ( 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 > &)

void executeOperations ( 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 *)

void removeData ( int aNumContainerIndices,
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 aNumContainerIndices The number of indices in aContainerIndices.
int * aContainerIndices The container indices to find the correct location in the data hierarchy. The ownership is transferred.

removeModelChangeObserver(IAlfModelChangeObserver &)

void removeModelChangeObserver ( IAlfModelChangeObserver & aObserver ) [pure virtual]

Remove an observer which is added to get notifications.

Since
S60 ?S60_version

Parameters

IAlfModelChangeObserver & aObserver The model change observer to be removed.

setData(IAlfVariantType *)

void setData ( IAlfVariantType * aData ) [pure virtual]

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

Since
S60 ?S60_version

Parameters

IAlfVariantType * aData The new data.

type()

const IfId & type ( ) [static, inline]

updateData(int, int *, IAlfVariantType *)

void updateData ( int aNumContainerIndices,
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 aNumContainerIndices The number of indices in aContainerIndices.
int * aContainerIndices The container indices to find the correct location in the data hierarchy. The ownership is transferred.
IAlfVariantType * aData - The new data to be set