Alf::AlfModelOperation Class Reference
class Alf::AlfModelOperation
|
A class for storing information about changes in the model. CAlfModelOperation can be used to make changes in a batch mode, i.e., executing multiple changes in one call. hitchcockwidgetmodel.lib
-
Since
-
S60 ?S60_version Draft
Constructor & Destructor Documentation
AlfModelOperation(OperationType, int, int *, IAlfVariantType *)
AlfModelOperation(OperationType, int, int *, IAlfVariantType *, const UString &)
~AlfModelOperation()
OSN_IMPORT
|
~AlfModelOperation
|
(
|
)
|
|
Member Functions Documentation
containerIndex(int)
OSN_IMPORT int
|
containerIndex
|
(
|
int
|
aIndex
|
)
|
const
|
Get the container index to traverse through the data hierarchy. If the container in the hierarchy is a branch, index 0 refers to the branch data, and index 1 refers to the child data.
create(OperationType, int, int *, IAlfVariantType *)
constructor. The new operation is left on the cleanup stack.
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
OperationType
aOperation
|
The operation to be performed.
|
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 = 0
|
The new data in EOperationAdd and EOperationUpdate operations. The ownership is transferred.
|
create(OperationType, int, int *, IAlfVariantType *, const UString &)
constructor for adding or updating a map item. The new operation is left on the cleanup stack.
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
OperationType
aOperation
|
The operation to be performed.
|
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. The ownership is transferred.
|
const
UString
& aDataName
|
The name of the new data in EOperationAdd and EOperationUpdate operations. Only needed when adding or updating a map item.
|
getNewData()
Get the new data used in EOperationAdd or EOperationUpdate operations. Panics if the operation is EOperationRemove. The ownership of the data is transferred to the caller, and the data of this operation is set to NULL.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when wrong operation is performed on Model.
|
-
Since
-
S60 ?S60_version
index()
OSN_IMPORT int
|
index
|
(
|
)
|
const
|
Get the index of the data inside the parent container. The parent container can be queried using ParentData(). If the parent container is a branch, index 0 refers to the branch data, and index 1 refers to the child data.
newData()
Get the new data used in EOperationAdd or EOperationUpdate operations. Panics if the operation is EOperationRemove.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when wrong operation is performed on Model.
|
-
Since
-
S60 ?S60_version
newDataName()
OSN_IMPORT const
UString
&
|
newDataName
|
(
|
)
|
const
|
Get the name of the new data field in the container map. Panics if the operation is EOperationRemove.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidModelOperation when wrong operation is performed on Model.
|
-
Since
-
S60 ?S60_version
numContainerIndices()
OSN_IMPORT int
|
numContainerIndices
|
(
|
)
|
const
|
Get the number of container indices to find the location in the data hierarchy.
parentData(IAlfVariantType &)
Get the parent data for the operation. The parent data is a container for the data to be added, removed or updated. The index of the data can be queried using Index().
-
Exceptions
-
osncore::AlfDataException
|
Thrown with the error code osncore::EInvalidContainerOperation when wrong operation is performed on Model.
|
-
Since
-
S60 ?S60_version
Parameters
IAlfVariantType
& aRoot
|
The root of the data hierarchy to perform the operation.
|
Member Enumerations Documentation
Enum OperationType
Enumerators
EOperationAdd
|
|
EOperationRemove
|
|
EOperationUpdate
|
|
Member Data Documentation
int * mContainerIndices
int *
|
mContainerIndices
|
[private]
|
int mNumContainerIndices
int
|
mNumContainerIndices
|
[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.