class CMTPTypeObjectPropDesc : public CMTPTypeCompoundBase |
Defines the MTP ObjectPropDesc dataset. The ObjectPropDesc dataset describes an MTP data object property, and is generated in response to a GetObjectPropDesc operation request.
Public Member Functions | |
---|---|
~CMTPTypeObjectPropDesc () | |
IMPORT_C MMTPType * | CommitChunkL ( TPtr8 &) |
IMPORT_C TBool | CommitRequired () |
IMPORT_C TInt | FirstWriteChunk ( TPtr8 &) |
IMPORT_C CMTPTypeObjectPropDesc * | NewL () |
IMPORT_C CMTPTypeObjectPropDesc * | NewL ( TUint16 ) |
IMPORT_C CMTPTypeObjectPropDesc * | NewL ( TUint16 , const MMTPType &) |
IMPORT_C CMTPTypeObjectPropDesc * | NewL ( TUint16 , TUint8 , const MMTPType *) |
IMPORT_C CMTPTypeObjectPropDesc * | NewL ( TUint16 , const TPropertyInfo &, const MMTPType *) |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC ( TUint16 ) |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC ( TUint16 , const MMTPType &) |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC ( TUint16 , TUint8 , const MMTPType *) |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC ( TUint16 , const TPropertyInfo &, const MMTPType *) |
IMPORT_C TInt | NextWriteChunk ( TPtr8 &) |
void | PropertyInfoL ( TUint16 , TPropertyInfo &) |
IMPORT_C TUint | Type () |
Private Member Functions | |
---|---|
CMTPTypeObjectPropDesc () | |
void | ConstructL ( TUint16 , const MMTPType *) |
void | ConstructL ( TUint16 , const TPropertyInfo &, const MMTPType *) |
const TElementInfo & | ElementInfo ( TInt ) |
TBool | HasFormField ( TUint8 ) |
CMTPTypeObjectPropDesc * | NewLC () |
TBool | ReadableElementL ( TInt ) |
TInt | UpdateWriteSequenceErr ( TInt ) |
TBool | WriteableElementL ( TInt ) |
Public Member Enumerations | |
---|---|
enum |
TMTPObjectPropDescElement
{
EPropertyCode , EDatatype , EGetSet , EDefaultValue , EGroupCode , EFormFlag , EForm , ENumElements } |
enum |
TMTPObjectPropDescFormFlag
{
ENone = 0x00, ERangeForm = 0x01, EEnumerationForm = 0x02, EDateTimeForm = 0x03, EFixedLengthArrayForm = 0x04, ERegularExpressionForm = 0x05, EByteArrayForm = 0x06, EServiceObjPropExtnForm = 0x81, EServiceMethodParamExtnForm = 0x82, EObjectIDForm = 0x83, ELongStringForm = 0xFF } |
enum | TMTPObjectPropDescGetSet { EReadOnly = 0x00, EReadWrite = 0x01 } |
Private Member Enumerations | |
---|---|
enum | TChunkIds { EIdFlat1Chunk , EIdDefaultValueChunk , EIdFlat2Chunk , EIdFormChunk , EIdNumChunks } |
enum | TWriteSequenceState { EIdle , EFlat1Chunk , EDefaultValueChunk , EFlat2Chunk , EFormChunk } |
Inherited Enumerations | |
---|---|
CMTPTypeCompoundBase:TReadWriteSequenceState |
Private Attributes | |
---|---|
const TUint | KFlat1ChunkSize |
const TUint | KFlat2ChunkSize |
const TUint | KNumChunksWithForm |
const TUint | KNumChunksWithoutForm |
RMTPType | iChunkDefaultValue |
RMTPTypeCompoundFlatChunk | iChunkFlat1 |
RMTPTypeCompoundFlatChunk | iChunkFlat2 |
RMTPTypeObjectPropDescForm | iChunkForm |
const TFixedArray < TElementInfo , ENumElements > | iElementInfo |
const CMTPTypeCompoundBase::TElementInfo | iElementMetaData |
TBool | iInitialised |
TUint | iWriteSequenceCompletionState |
TUint | iWriteSequenceErr |
TUint | iWriteSequenceState |
IMPORT_C MMTPType * | CommitChunkL | ( | TPtr8 & | aChunk | ) | [virtual] |
TPtr8 & aChunk |
void | ConstructL | ( | TUint16 | aPropertyCode, |
const MMTPType * | aForm | |||
) | [private] |
void | ConstructL | ( | TUint16 | aPropertyCode, |
const TPropertyInfo & | aInfo, | |||
const MMTPType * | aForm | |||
) | [private] |
TUint16 aPropertyCode | |
const TPropertyInfo & aInfo | |
const MMTPType * aForm |
const TElementInfo & | ElementInfo | ( | TInt | aElementId | ) | const [private, virtual] |
Provides the TElementInfo data for the specified element.
TInt aElementId | The identifier of the requested element. |
IMPORT_C TInt | FirstWriteChunk | ( | TPtr8 & | aChunk | ) | [virtual] |
TPtr8 & aChunk |
TBool | HasFormField | ( | TUint8 | aFormFlag | ) | const [private] |
TUint8 aFormFlag |
IMPORT_C CMTPTypeObjectPropDesc * | NewL | ( | TUint16 | aPropertyCode | ) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the ObjectPropDesc dataset. |
IMPORT_C CMTPTypeObjectPropDesc * | NewL | ( | TUint16 | aPropertyCode, |
const MMTPType & | aForm | |||
) | [static] |
IMPORT_C CMTPTypeObjectPropDesc * | NewL | ( | TUint16 | aPropertyCode, |
TUint8 | aFormFlag, | |||
const MMTPType * | aForm | |||
) | [static] |
IMPORT_C CMTPTypeObjectPropDesc * | NewL | ( | TUint16 | aPropertyCode, |
const TPropertyInfo & | aInfo, | |||
const MMTPType * | aForm | |||
) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the ObjectPropDesc dataset. |
const TPropertyInfo & aInfo | The MTP ObjectPropDesc dataset characteristics (meta data). |
const MMTPType * aForm | The optional ObjectPropDesc FORM dataset. |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC | ( | TUint16 | aPropertyCode | ) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the ObjectPropDesc dataset. |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
const MMTPType & | aForm | |||
) | [static] |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
TUint8 | aFormFlag, | |||
const MMTPType * | aForm | |||
) | [static] |
IMPORT_C CMTPTypeObjectPropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
const TPropertyInfo & | aInfo, | |||
const MMTPType * | aForm | |||
) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the ObjectPropDesc dataset. |
const TPropertyInfo & aInfo | The MTP ObjectPropDesc dataset characteristics (meta data). |
const MMTPType * aForm | The optional ObjectPropDesc FORM dataset. |
IMPORT_C TInt | NextWriteChunk | ( | TPtr8 & | aChunk | ) | [virtual] |
TPtr8 & aChunk |
void | PropertyInfoL | ( | TUint16 | aPropertyCode, |
TPropertyInfo & | aInfo | |||
) | [static] |
TUint16 aPropertyCode | |
TPropertyInfo & aInfo |
TBool | ReadableElementL | ( | TInt | aElementId | ) | const [private, virtual] |
Indicates if the specified element can be read from.
TInt aElementId | The identifier of the requested element. |
TInt | UpdateWriteSequenceErr | ( | TInt | aErr | ) | [private] |
TInt aErr |
TBool | WriteableElementL | ( | TInt | aElementId | ) | const [private, virtual] |
Indicates if the specified element can be written to.
TInt aElementId | The identifier of the requested element. |
Data chunk identifiers.
EIdFlat1Chunk |
The first flat data chunk ID. |
EIdDefaultValueChunk |
The EDefaultValue element data chunk ID. |
EIdFlat2Chunk |
The second flat data chunk ID. |
EIdFormChunk |
The EForm element data chunk ID. |
EIdNumChunks |
The number of data chunks. |
MTP ObjectPropDesc dataset element identifiers.
EPropertyCode |
Property Code (read-only). |
EDatatype |
Datatype (read-only). |
EGetSet |
Get/Set. |
EDefaultValue |
Default Value. |
EGroupCode |
Group Code. |
EFormFlag |
Form Flag (read-only). |
EForm |
FORM element. This element depends EFormFlag and is absent if EFormFlag is ENone. |
ENumElements |
The number of dataset elements. |
MTP ObjectPropDesc dataset FormFlag element values.
ENone = 0x00 |
None. |
ERangeForm = 0x01 |
Range form. |
EEnumerationForm = 0x02 |
Enumeration form. |
EDateTimeForm = 0x03 |
DateTime form. |
EFixedLengthArrayForm = 0x04 |
Fixed-length Array form. |
ERegularExpressionForm = 0x05 |
Regular Expression form. |
EByteArrayForm = 0x06 |
ByteArray form. |
EServiceObjPropExtnForm = 0x81 |
Service Object Property Extension Form |
EServiceMethodParamExtnForm = 0x82 |
Service Method Parameter Extension Form |
EObjectIDForm = 0x83 |
Object ID Form |
ELongStringForm = 0xFF |
LongString form. |
MTP ObjectPropDesc dataset Get/Set element values.
EReadOnly = 0x00 |
Get. |
EReadWrite = 0x01 |
Get/Set. |
The write data stream states.
EIdle |
Data stream is inactive. |
EFlat1Chunk |
Streaming the first flat data chunk. |
EDefaultValueChunk |
Streaming the EDefaultValue data chunk.. |
EFlat2Chunk |
Streaming the second flat data chunk. |
EFormChunk |
Streaming the EForm data chunk. |
const TUint | KFlat1ChunkSize | [private, static] |
The size in bytes of the first flat data chunk.
const TUint | KFlat2ChunkSize | [private, static] |
The size in bytes of the second flat data chunk.
const TUint | KNumChunksWithForm | [private, static] |
The data chunk count of ObjectPropDesc datasets with an EForm of other than ENone.
const TUint | KNumChunksWithoutForm | [private, static] |
The data chunk count of ObjectPropDesc datasets with an EForm of ENone.
RMTPType | iChunkDefaultValue | [private] |
The EDefaultValue element data chunk.
RMTPTypeCompoundFlatChunk | iChunkFlat1 | [private] |
The flat data chunk comprising elements EPropertyCode to EGetSet.
RMTPTypeCompoundFlatChunk | iChunkFlat2 | [private] |
The flat data chunk comprising elements EGroupCode to EFormFlag.
RMTPTypeObjectPropDescForm | iChunkForm | [private] |
The EForm element data chunk.
const TFixedArray < TElementInfo , ENumElements > | iElementInfo | [private] |
The dataset element metadata table.
const CMTPTypeCompoundBase::TElementInfo | iElementMetaData | [private, static] |
The dataset element metadata table content.
TBool | iInitialised | [private] |
The initialised flag indicating if construction is completeand that read-only elements can no longer be modified.
TUint | iWriteSequenceCompletionState | [private] |
The write data stream completion state. This will be set to EFlat2Chunk for ObjectPropDesc datasets with an EForm of ENone, otherwise this will be EFormChunk.
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.