class CMTPTypeDevicePropDesc : public CMTPTypeCompoundBase |
Defines the MTP DevicePropDesc dataset. The DevicePropDesc dataset describes an MTP device property, and is generated in response to a GetDevicePropDesc operation request.
Public Member Functions | |
---|---|
~CMTPTypeDevicePropDesc() | |
IMPORT_C MMTPType * | CommitChunkL(TPtr8 &) |
IMPORT_C TBool | CommitRequired() |
IMPORT_C TInt | FirstWriteChunk(TPtr8 &) |
IMPORT_C CMTPTypeDevicePropDesc * | NewL(TUint16) |
IMPORT_C CMTPTypeDevicePropDesc * | NewL(TUint16, const MMTPType &) |
IMPORT_C CMTPTypeDevicePropDesc * | NewL(TUint16, TUint8, TUint8, const MMTPType *) |
IMPORT_C CMTPTypeDevicePropDesc * | NewL(TUint16, const TPropertyInfo &, const MMTPType *) |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC(TUint16) |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC(TUint16, const MMTPType &) |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC(TUint16, TUint8, TUint8, const MMTPType *) |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC(TUint16, const TPropertyInfo &, const MMTPType *) |
IMPORT_C TInt | NextWriteChunk(TPtr8 &) |
void | PropertyInfoL(TUint16, TPropertyInfo &) |
IMPORT_C TUint | Type() |
Private Member Functions | |
---|---|
CMTPTypeDevicePropDesc() | |
void | ConstructL(TUint16, const MMTPType *) |
void | ConstructL(TUint16, const TPropertyInfo &, const MMTPType *) |
const TElementInfo & | ElementInfo(TInt) |
TBool | HasFormField(TUint8) |
CMTPTypeDevicePropDesc * | NewLC() |
TBool | ReadableElementL(TInt) |
TInt | UpdateWriteSequenceErr(TInt) |
TBool | WriteableElementL(TInt) |
Public Member Enumerations | |
---|---|
enum | TMTPDevicePropDescElement { EDevicePropertyCode, EDatatype, EGetSet, EFactoryDefaultValue, ECurrentValue, EFormFlag, EForm, ENumElements } |
enum | TMTPDevicePropDescFormFlag { ENone = 0x00, ERangeForm = 0x01, EEnumerationForm = 0x02 } |
enum | TMTPDevicePropDescGetSet { EReadOnly = 0x00, EReadWrite = 0x01 } |
Private Member Enumerations | |
---|---|
enum | TChunkIds { EIdFlat1Chunk, EIdDefaultValueChunk, EIdCurrentValueChunk, EIdFormFlagChunk, EIdFormChunk, EIdNumChunks } |
enum | TWriteSequenceState { EWriteIdle, EWriteFlat1Chunk, EWriteDefaultValueChunk, EWriteCurrentValueChunk, EWriteFormFlagChunk, EWriteFormChunk } |
Inherited Enumerations | |
---|---|
CMTPTypeCompoundBase:TReadWriteSequenceState |
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 |
IMPORT_C CMTPTypeDevicePropDesc * | NewL | ( | TUint16 | aPropertyCode | ) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the DevicePropDesc dataset. |
IMPORT_C CMTPTypeDevicePropDesc * | NewL | ( | TUint16 | aPropertyCode, |
const MMTPType & | aForm | |||
) | [static] |
IMPORT_C CMTPTypeDevicePropDesc * | NewL | ( | TUint16 | aPropertyCode, |
TUint8 | aGetSet, | |||
TUint8 | aFormFlag, | |||
const MMTPType * | aForm | |||
) | [static] |
IMPORT_C CMTPTypeDevicePropDesc * | NewL | ( | TUint16 | aPropertyCode, |
const TPropertyInfo & | aInfo, | |||
const MMTPType * | aForm | |||
) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the DevicePropDesc dataset. |
const TPropertyInfo & aInfo | The MTP DevicePropDesc dataset characteristics (meta data). |
const MMTPType * aForm | The optional DevicePropDesc FORM dataset. |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC | ( | TUint16 | aPropertyCode | ) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the DevicePropDesc dataset. |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
const MMTPType & | aForm | |||
) | [static] |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
TUint8 | aGetSet, | |||
TUint8 | aFormFlag, | |||
const MMTPType * | aForm | |||
) | [static] |
IMPORT_C CMTPTypeDevicePropDesc * | NewLC | ( | TUint16 | aPropertyCode, |
const TPropertyInfo & | aInfo, | |||
const MMTPType * | aForm | |||
) | [static] |
TUint16 aPropertyCode | The ObjectPropertyCode of the property being described by the DevicePropDesc dataset. |
const TPropertyInfo & aInfo | The MTP DevicePropDesc dataset characteristics (meta data). |
const MMTPType * aForm | The optional DevicePropDesc 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. |
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 EFactoryDefaultValue element data chunk ID. |
EIdCurrentValueChunk |
The ECurrentValue element data chunk ID. |
EIdFormFlagChunk |
The second flat data chunk ID. |
EIdFormChunk |
The EForm element data chunk ID. |
EIdNumChunks |
The number of data chunks. |
MTP DevicePropDesc dataset element identifiers.
EDevicePropertyCode |
Property Code (read-only). |
EDatatype |
Datatype (read-only). |
EGetSet |
Get/Set. |
EFactoryDefaultValue |
Factory Default Value. |
ECurrentValue |
Factory Default Value. |
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 DevicePropDesc dataset FormFlag element values.
ENone = 0x00 |
None. |
ERangeForm = 0x01 |
Range form. |
EEnumerationForm = 0x02 |
Enumeration form. |
MTP DevicePropDesc dataset Get/Set element values.
EReadOnly = 0x00 |
Get. |
EReadWrite = 0x01 |
Get/Set. |
The write data stream states.
EWriteIdle |
Data stream is inactive. |
EWriteFlat1Chunk |
Streaming the first flat data chunk. |
EWriteDefaultValueChunk |
Streaming the EFactoryDefaultValue data chunk.. |
EWriteCurrentValueChunk |
Streaming the ECurrentValue data chunk.. |
EWriteFormFlagChunk |
Streaming the second flat data chunk. |
EWriteFormChunk |
Streaming the EForm data chunk. |
const TUint | KFlat1ChunkSize | [private, static] |
The size in bytes of the first flat data chunk.
const TUint | KNumChunksWithForm | [private, static] |
The data chunk count of DevicePropDesc datasets with an EForm of other than ENone.
const TUint | KNumChunksWithoutForm | [private, static] |
The data chunk count of DevicePropDesc datasets with an EForm of ENone.
RMTPType | iChunkCurrentValue | [private] |
The ECurrentValue element data chunk.
RMTPType | iChunkDefaultValue | [private] |
The EFactoryDefaultValue element data chunk.
RMTPTypeCompoundFlatChunk | iChunkFlat1 | [private] |
The flat data chunk comprising elements EPropertyCode to EGetSet.
RMTPTypeDevicePropDescForm | 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 DevicePropDesc 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.