Alf::AlfModel Class Reference
class Alf::AlfModel : public Alf::IAlfModel
|
Concerete implementation of the
IAlfModel
IAlfModel
alfwidgetmodel.lib
-
Since
-
S60 ?S60_version Draft
Private Attributes
|
auto_ptr< AlfModelImpl >
|
mData
|
Constructor & Destructor Documentation
AlfModel(IAlfVariantType *)
Constructor.
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
IAlfVariantType
* aDataSource
|
- datasource from where the model is initialized, ownership is transferred to the model
|
~AlfModel()
OSN_IMPORT
|
~AlfModel
|
(
|
)
|
[virtual]
|
Member Functions Documentation
addData(int, int *, IAlfVariantType *)
OSN_IMPORT void
|
addData
|
(
|
int
|
aNumContainerIndices,
|
|
int *
|
aContainerIndices,
|
|
IAlfVariantType
*
|
aData
|
|
)
|
[virtual]
|
Add a number of data fields in the model data. All model change observers are notified about the change.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when the operation fails.
|
-
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.
|
addData(AlfModelOperation *)
Internal addDataL method .
-
Since
-
S60 ?S60_version
addModelChangeObserver(IAlfModelChangeObserver &)
From
IAlfModel
. Add a new observer to be notified of any changes in the model.
-
Exceptions
-
-
Since
-
S60 ?S60_version
clearModel()
OSN_IMPORT void
|
clearModel
|
(
|
)
|
[virtual]
|
data()
From
IAlfModel
. Get the root data object of this model.
executeOperation(AlfModelOperation *)
Api for executing one operation at a
Time
-
Since
-
S60 ?S60_version
Api for executing one operation at a
Time
executeOperations(AlfPtrVector< AlfModelOperation > &)
Api for executing batch operations
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when the operation fails.
|
-
Since
-
S60 ?S60_version
Api for executing batch operations
makeInterface(const IfId &)
From
IAlfInterfaceBase
. Getter for interfaces provided by the widget classes. Derived classes should always call the base class method from the overridden makeInterface.
Parameters
const
IfId
& aType
|
A descriptor to identify the type of the queried interface.
|
notifyModelChanged()
OSN_IMPORT void
|
notifyModelChanged
|
(
|
)
|
|
Notifies the observers, that the model has changed.
removeData(int, int *)
OSN_IMPORT void
|
removeData
|
(
|
int
|
aNumContainerIndices,
|
|
int *
|
aContainerIndices
|
|
)
|
[virtual]
|
Remove a number of data fields in the model data. All model change observers are notified about the change.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when the operation fails.
|
-
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.
|
removeData(AlfModelOperation *)
Internal removeDataL method .
-
Since
-
S60 ?S60_version
removeModelChangeObserver(IAlfModelChangeObserver &)
From
IAlfModel
. Remove an observer which is added to get notified of any changes in the model.
setData(IAlfVariantType *)
Api to change the model completely at one short. From
IAlfModel
updateData(int, int *, IAlfVariantType *)
OSN_IMPORT void
|
updateData
|
(
|
int
|
aNumContainerIndices,
|
|
int *
|
aContainerIndices,
|
|
IAlfVariantType
*
|
aData
|
|
)
|
[virtual]
|
Change a given of data fields in the model . All model change observers are notified about the change.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when the operation fails.
|
-
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
|
updateData(AlfModelOperation *)
Internal updateDataL method .
-
Since
-
S60 ?S60_version
Member Data Documentation
auto_ptr< AlfModelImpl > mData
auto_ptr< AlfModelImpl >
|
mData
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.