CMTPTypeDevicePropDescEnumerationForm Class Reference

class CMTPTypeDevicePropDescEnumerationForm : public CMTPTypeCompoundBase

Defines the MTP DevicePropDesc Enumeration FORM dataset. The Enumeration FORM dataset is a component element of the DevicePropDesc dataset. CMTPTypeDevicePropDesc

Inherits from

Public Member Functions
~CMTPTypeDevicePropDescEnumerationForm()
IMPORT_C voidAppendSupportedValueL(const MMTPType &)
IMPORT_C MMTPType *CommitChunkL(TPtr8 &)
IMPORT_C TBoolCommitRequired()
IMPORT_C TIntFirstWriteChunk(TPtr8 &)
IMPORT_C CMTPTypeDevicePropDescEnumerationForm *NewL(TUint)
IMPORT_C CMTPTypeDevicePropDescEnumerationForm *NewLC(TUint)
IMPORT_C TIntNextWriteChunk(TPtr8 &)
IMPORT_C TUint16NumberOfValues()
IMPORT_C voidSupportedValueL(TUint, MMTPType &)
IMPORT_C TUintType()
Private Member Functions
CMTPTypeDevicePropDescEnumerationForm(TUint)
voidAppendValueChunkL()
voidConstructL()
const TElementInfo &ElementInfo(TInt)
TInt ValidateChunkCount()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CMTPTypeCompoundBase::CMTPTypeCompoundBase(TBool,TUint)
CMTPTypeCompoundBase::ChunkAppendL(const MMTPType &)
CMTPTypeCompoundBase::ChunkCount()const
CMTPTypeCompoundBase::ChunkRemove(TUint)
CMTPTypeCompoundBase::FirstReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::GetL(TInt,MMTPType &)const
CMTPTypeCompoundBase::Int16L(TInt)const
CMTPTypeCompoundBase::Int32L(TInt)const
CMTPTypeCompoundBase::Int64L(TInt)const
CMTPTypeCompoundBase::Int8L(TInt)const
CMTPTypeCompoundBase::NextReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::NextWriteChunk(TPtr8 &,TUint)
CMTPTypeCompoundBase::ReadableElementL(TInt)const
CMTPTypeCompoundBase::Reset()
CMTPTypeCompoundBase::SetExpectedChunkCount(TUint)
CMTPTypeCompoundBase::SetInt16L(TInt,TInt16)
CMTPTypeCompoundBase::SetInt32L(TInt,TInt32)
CMTPTypeCompoundBase::SetInt64L(TInt,TInt64)
CMTPTypeCompoundBase::SetInt8L(TInt,TInt8)
CMTPTypeCompoundBase::SetL(TInt,const MMTPType &)
CMTPTypeCompoundBase::SetStringL(TInt,const TDesC &)
CMTPTypeCompoundBase::SetUint16L(TInt,TUint16)
CMTPTypeCompoundBase::SetUint32L(TInt,TUint32)
CMTPTypeCompoundBase::SetUint64L(TInt,TUint64)
CMTPTypeCompoundBase::SetUint8L(TInt,TUint8)
CMTPTypeCompoundBase::Size()const
CMTPTypeCompoundBase::StringCharsL(TInt)const
CMTPTypeCompoundBase::StringNumCharsL(TInt)const
CMTPTypeCompoundBase::Uint16L(TInt)const
CMTPTypeCompoundBase::Uint32L(TInt)const
CMTPTypeCompoundBase::Uint64L(TInt)const
CMTPTypeCompoundBase::Uint8L(TInt)const
CMTPTypeCompoundBase::Validate()const
CMTPTypeCompoundBase::WriteableElementL(TInt)const
CMTPTypeCompoundBase::~CMTPTypeCompoundBase()
Private Member Enumerations
enumTReadWriteSequenceState { EIdle, EInProgress }
Private Attributes
const TUintKNumberOfValuesChunk
const TUintKValueChunks
TMTPTypeUint16 iChunkNumberOfValues
RArray< RMTPType >iChunksValue
CMTPTypeCompoundBase::TElementInfo iInfoNumberOfValues
CMTPTypeCompoundBase::TElementInfo iInfoValue
TUint iWriteSequenceState
Inherited Attributes
CMTPTypeCompoundBase::KJustInTimeConstruction
CMTPTypeCompoundBase::KMTPNotApplicable
CMTPTypeCompoundBase::KVariableChunkCount
CMTPTypeCompoundBase::iChunks
CMTPTypeCompoundBase::iWriteChunk

Constructor & Destructor Documentation

CMTPTypeDevicePropDescEnumerationForm(TUint)

CMTPTypeDevicePropDescEnumerationForm(TUintaDataType)[private]

Parameters

TUint aDataType

~CMTPTypeDevicePropDescEnumerationForm()

IMPORT_C~CMTPTypeDevicePropDescEnumerationForm()[virtual]

Destructor.

Member Functions Documentation

AppendSupportedValueL(const MMTPType &)

IMPORT_C voidAppendSupportedValueL(const MMTPType &aValue)
Appends the specified value to the set of supported enumeration values.
leave
One of the system wide error codes, if unsuccessful.
panic
MTPDataTypes 3, if the source value type does not match the property data type.

Parameters

const MMTPType & aValueThe enumeration value to append.

AppendValueChunkL()

voidAppendValueChunkL()[private]

CommitChunkL(TPtr8 &)

IMPORT_C MMTPType *CommitChunkL(TPtr8 &aChunk)[virtual]

Parameters

TPtr8 & aChunk

CommitRequired()

IMPORT_C TBoolCommitRequired()const [virtual]

ConstructL()

voidConstructL()[private]

ElementInfo(TInt)

const TElementInfo &ElementInfo(TIntaElementId)const [private, virtual]

Provides the TElementInfo data for the specified element.

Parameters

TInt aElementIdThe identifier of the requested element.

FirstWriteChunk(TPtr8 &)

IMPORT_C TIntFirstWriteChunk(TPtr8 &aChunk)[virtual]

Parameters

TPtr8 & aChunk

NewL(TUint)

IMPORT_C CMTPTypeDevicePropDescEnumerationForm *NewL(TUintaDataType)[static]
MTP DevicePropDesc Enumeration FORM dataset factory method. This method is used to create an empty MTP DevicePropDesc FORM dataset of the specified Datatype.
leave
One of the system wide error codes, if unsuccessful.

Parameters

TUint aDataTypeThe data type identifier datacode of the dataset.

NewLC(TUint)

IMPORT_C CMTPTypeDevicePropDescEnumerationForm *NewLC(TUintaDataType)[static]
MTP DevicePropDesc Enumeration FORM dataset factory method. This method is used to create an empty MTP DevicePropDesc FORM dataset of the specified Datatype. A pointer to the data type is placed on the cleanup stack.
leave
One of the system wide error codes, if unsuccessful.

Parameters

TUint aDataTypeThe data type identifier datacode of the dataset.

NextWriteChunk(TPtr8 &)

IMPORT_C TIntNextWriteChunk(TPtr8 &aChunk)[virtual]

Parameters

TPtr8 & aChunk

NumberOfValues()

IMPORT_C TUint16NumberOfValues()const

Provides the NumberOfValues element value.

SupportedValueL(TUint, MMTPType &)

IMPORT_C voidSupportedValueL(TUintaIndex,
MMTPType &aValue
)const
Provides the SupportedValue element at the specified index.
leave
One of the system wide error codes, if unsuccessful.
panic
MTPDataTypes 3, if the target value type does not match the property data type.

Parameters

TUint aIndexThe index of the required value.
MMTPType & aValueOn successful completion, the requested value.

Type()

IMPORT_C TUintType()const [virtual]

ValidateChunkCount()

TInt ValidateChunkCount()const [private, virtual]

Validates that the number of chunks making up the compound type is valid. This method is invoked on variable length compound types by the default Valid implementation. Valid KVariableChunkCount

Member Enumerations Documentation

Enum TReadWriteSequenceState

The write data stream states.

Enumerators

EIdle

Data stream is inactive.

EInProgress

Data stream is in progress.

Member Data Documentation

const TUint KNumberOfValuesChunk

const TUintKNumberOfValuesChunk[private, static]

The NumberOfValues element data chunk ID.

const TUint KValueChunks

const TUintKValueChunks[private, static]

The SupportedValue array elements metadata content. Note that this is declared mutable to allow state updates while processing a read data stream.

TMTPTypeUint16 iChunkNumberOfValues

TMTPTypeUint16 iChunkNumberOfValues[private]

The NumberOfPropDescs element data chunk.

RArray< RMTPType > iChunksValue

RArray< RMTPType >iChunksValue[private]

The SupportedValue elements array data chunks.

CMTPTypeCompoundBase::TElementInfo iInfoNumberOfValues

CMTPTypeCompoundBase::TElementInfo iInfoNumberOfValues[private]

The NumberOfValues element metadata content.

CMTPTypeCompoundBase::TElementInfo iInfoValue

CMTPTypeCompoundBase::TElementInfo iInfoValue[private]

The SupportedValue array elements metadata content. Note that this is declared mutable to allow state updates while processing a read data stream.

TUint iWriteSequenceState

TUint iWriteSequenceState[private]

The write data stream state variable.