CMTPTypeObjectPropList Class Reference
class CMTPTypeObjectPropList : public CBase
|
Defines the MTP ObjectPropList dataset. The ObjectPropList dataset provides optimised access to object properties without needing to individually query each object/property pair. It also provides a more flexible querying mechanism for object properties in general. This dataset is used in the GetObjectPropList, SetObjectPropList, and SendObjectPropList requests.
Private Member Functions
|
|
CMTPTypeObjectPropList
()
|
TUint
|
ArrayElemWidth
(
TUint16
&)
|
void
|
ConstructL
()
|
void
|
IncreaseIndexL
(
TUint
&,
TUint
&,
TUint
,
TBool
)
|
void
|
MemoryCopyL
(
TAny
*,
TUint
,
TUint
,
TUint
)
|
void
|
MemoryCopyL
(
TUint
,
TUint
, const
TAny
*,
TUint
)
|
void
|
ReserveNewPage
()
|
TBool
|
ValueAddressAligned
(
TUint
,
TUint
)
|
TBool
|
ValueBufferConsistent
(
TUint
,
TUint
,
TUint
)
|
Constructor & Destructor Documentation
CMTPTypeObjectPropList()
CMTPTypeObjectPropList
|
(
|
)
|
[private]
|
~CMTPTypeObjectPropList()
IMPORT_C
|
~CMTPTypeObjectPropList
|
(
|
)
|
[virtual]
|
Member Functions Documentation
AppendObjectPropListL(const CMTPTypeObjectPropList &)
Append all object property elements from another object property list.
ArrayElemWidth(TUint16 &)
TUint
|
ArrayElemWidth
|
(
|
TUint16
&
|
aDataType
|
)
|
const [private]
|
CommitPropElemL(CMTPTypeObjectPropListElement &)
Commit the reverved object property element in buffer page.
CommitRequired()
IMPORT_C
TBool
|
CommitRequired
|
(
|
)
|
const
|
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
FirstReadChunk(TPtrC8 &)
IMPORT_C
TInt
|
FirstReadChunk
|
(
|
TPtrC8
&
|
aChunk
|
)
|
const
|
FirstWriteChunk(TPtr8 &)
IMPORT_C
TInt
|
FirstWriteChunk
|
(
|
TPtr8
&
|
aChunk
|
)
|
|
FirstWriteChunk(TPtr8 &, TUint)
GetNextElementL()
Get the next object property element in the object property list.
IncreaseIndexL(TUint &, TUint &, TUint, TBool)
void
|
IncreaseIndexL
|
(
|
TUint
&
|
aPageIndex,
|
|
TUint
&
|
aBufIndex,
|
|
TUint
|
aLength,
|
|
TBool
|
aReserveNewPage
|
|
)
|
const [private]
|
MemoryCopyL(TAny *, TUint, TUint, TUint)
void
|
MemoryCopyL
|
(
|
TAny
*
|
aTrg,
|
|
TUint
|
aSrcPageIndex,
|
|
TUint
|
aSrcBufIndex,
|
|
TUint
|
aLength
|
|
)
|
const [private]
|
Copy data from Element to buffer page.
MemoryCopyL(TUint, TUint, const TAny *, TUint)
void
|
MemoryCopyL
|
(
|
TUint
|
aTrgPageIndex,
|
|
TUint
|
aTrgBufIndex,
|
|
const
TAny
*
|
aSrc,
|
|
TUint
|
aLength
|
|
)
|
[private]
|
Copy data from buffer page to Element.
NewL()
MTP ObjectPropList dataset factory method. This method is used to create an empty MTP ObjectPropList dataset.
-
leave
-
One of the system wide error codes, if unsuccessful.
NewLC()
MTP ObjectPropList dataset factory method. This method is used to create an empty MTP ObjectPropList dataset. A pointer to the data type is placed on the cleanup stack.
-
leave
-
One of the system wide error codes, if unsuccessful.
NextReadChunk(TPtrC8 &)
IMPORT_C
TInt
|
NextReadChunk
|
(
|
TPtrC8
&
|
aChunk
|
)
|
const
|
NextWriteChunk(TPtr8 &)
IMPORT_C
TInt
|
NextWriteChunk
|
(
|
TPtr8
&
|
aChunk
|
)
|
|
NextWriteChunk(TPtr8 &, TUint)
NumberOfElements()
IMPORT_C
TUint32
|
NumberOfElements
|
(
|
)
|
const
|
Get the number of element in the object property list.
ReserveNewPage()
void
|
ReserveNewPage
|
(
|
)
|
[private]
|
ReservePropElemL(TUint32, TUint16)
Reserve an object property element in buffer page. After setting the element's values, the element should be committed, otherwise the new element will be discarded without commitment.
Parameters
TUint32
aHandle
|
The object handle of the object property element.
|
TUint16
aPropCode
|
The property code of the object property element.
|
ReserveTransportHeader(TUint, TPtr8 &)
IMPORT_C
TBool
|
ReserveTransportHeader
|
(
|
TUint
|
aHeaderLength,
|
|
TPtr8
&
|
aHeader
|
|
)
|
|
ResetCursor()
IMPORT_C void
|
ResetCursor
|
(
|
)
|
const
|
Reset the element cursor, so
GetNextElementL()
will return the first object property element in the object property list.
Size()
Get the size of the object property list.
Type()
IMPORT_C
TUint
|
Type
|
(
|
)
|
const
|
Validate()
IMPORT_C
TInt
|
Validate
|
(
|
)
|
const
|
ValueAddressAligned(TUint, TUint)
TBool
|
ValueAddressAligned
|
(
|
TUint
|
aPageIdx,
|
|
TUint
|
aBufferIdx
|
|
)
|
const [private]
|
ValueBufferConsistent(TUint, TUint, TUint)
Member Data Documentation
TUint
iChunkIndex
TUint
|
iChunkIndex
|
[private]
|
CMTPTypeObjectPropListElement * iCurrentElement
TUint32
iNumberOfElements
TUint32
|
iNumberOfElements
|
[private]
|
TBool
iReservedElemCommitted
TBool
|
iReservedElemCommitted
|
[private]
|
CMTPTypeObjectPropListElement * iReservedElement
TBool
iResetCursor
TBool
|
iResetCursor
|
[private]
|
TUint
iRevDataEnd
TUint
|
iRevDataEnd
|
[private]
|
TUint
iRevPageEnd
TUint
|
iRevPageEnd
|
[private]
|
TUint
iTransportHeaderIndex
TUint
|
iTransportHeaderIndex
|
[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.