CMTPTypeStorageInfo Class Reference

class CMTPTypeStorageInfo : public CMTPTypeCompoundBase

Defines the MTP StorageInfo dataset. The StorageInfo dataset provides a description of the MTP device and is generated in response to a GetStorageInfo operation request.

Inherits from

Public Member Functions
~CMTPTypeStorageInfo ()
IMPORT_C CMTPTypeStorageInfo * NewL ()
IMPORT_C CMTPTypeStorageInfo * NewLC ()
IMPORT_C TUint Type ()
Private Member Functions
CMTPTypeStorageInfo ()
void ConstructL ()
const TElementInfo & ElementInfo ( TInt )
MMTPType * NewFlatChunkL (const TElementInfo &)
MMTPType * NewStringChunkL (const TElementInfo &)
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::CommitChunkL(TPtr8 &)
CMTPTypeCompoundBase::CommitRequired()const
CMTPTypeCompoundBase::FirstReadChunk(TPtrC8 &)const
CMTPTypeCompoundBase::FirstWriteChunk(TPtr8 &)
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 &)
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::ValidateChunkCount()const
CMTPTypeCompoundBase::WriteableElementL(TInt)const
CMTPTypeCompoundBase::~CMTPTypeCompoundBase()
Public Member Enumerations
enum TMTPStorageInfoElement {
EStorageType , EFileSystemType , EAccessCapability , EMaxCapacity , EFreeSpaceInBytes , EFreeSpaceInObjects , EStorageDescription , EVolumeIdentifier , ENumElements
}
Private Member Enumerations
enum TChunkIds { EIdFlatChunk , EIdStorageDescriptionChunk , EIdVolumeIdentifierChunk , EIdNumChunks }
Inherited Enumerations
CMTPTypeCompoundBase:TReadWriteSequenceState
Private Attributes
const TUint KFlatChunkSize
RMTPTypeCompoundFlatChunk iChunkFlat
const TFixedArray < TElementInfo , ENumElements > iElementInfo
const CMTPTypeCompoundBase::TElementInfo iElementMetaData
RPointerArray < CMTPTypeString > iStringChunks
Inherited Attributes
CMTPTypeCompoundBase::KJustInTimeConstruction
CMTPTypeCompoundBase::KMTPNotApplicable
CMTPTypeCompoundBase::KVariableChunkCount
CMTPTypeCompoundBase::iChunks
CMTPTypeCompoundBase::iWriteChunk
CMTPTypeCompoundBase::iWriteSequenceState

Constructor & Destructor Documentation

CMTPTypeStorageInfo()

CMTPTypeStorageInfo ( ) [private]

~CMTPTypeStorageInfo()

IMPORT_C ~CMTPTypeStorageInfo ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

ElementInfo(TInt)

const TElementInfo & ElementInfo ( TInt aElementId ) const [private, virtual]

Provides the TElementInfo data for the specified element.

Parameters

TInt aElementId The identifier of the requested element.

NewFlatChunkL(const TElementInfo &)

MMTPType * NewFlatChunkL ( const TElementInfo & aElementInfo ) [private]

Parameters

const TElementInfo & aElementInfo

NewL()

IMPORT_C CMTPTypeStorageInfo * NewL ( ) [static]
MTP StorageInfo dataset factory method. This method is used to create an empty MTP StorageInfo dataset type. A pointer to the MTP array data type is placed on the cleanup stack.
leave
One of the system wide error codes, if unsuccessful.

NewLC()

IMPORT_C CMTPTypeStorageInfo * NewLC ( ) [static]
MTP StorageInfo dataset factory method. This method is used to create an empty MTP StorageInfo dataset type.
leave
One of the system wide error codes, if unsuccessful.

NewStringChunkL(const TElementInfo &)

MMTPType * NewStringChunkL ( const TElementInfo & aElementInfo ) [private]

Parameters

const TElementInfo & aElementInfo

Type()

IMPORT_C TUint Type ( ) const [virtual]

Member Enumerations Documentation

Enum TChunkIds

Data chunk identifiers.

Enumerators

EIdFlatChunk

The flat data chunk ID.

EIdStorageDescriptionChunk

The EStorageDescription element data chunk ID.

EIdVolumeIdentifierChunk

The EVolumeIdentifier element data chunk ID.

EIdNumChunks

The number of data chunks.

Enum TMTPStorageInfoElement

MTP StotageInfo dataset element identifiers.

Enumerators

EStorageType

The physical nature of the storage described by the dataset.

EFileSystemType

The logical file system in use on the storage.

EAccessCapability

The global write-protection status of the storage.

EMaxCapacity

The maximum capacity of the storage in bytes.

EFreeSpaceInBytes

The available capacity of the storage in objects.

EFreeSpaceInObjects

The available capacity of the storage in objects. This field is only used if there is a reasonable expectation that the number of objects that remain to be written can be accurately predicted.

EStorageDescription

The human-readable string identifying the storage.

EVolumeIdentifier

The unique volume identifier of the storage, e.g. serial number.

ENumElements

The number of dataset elements.

Member Data Documentation

const TUint KFlatChunkSize

const TUint KFlatChunkSize [private, static]

The size in bytes of the flat data chunk.

RMTPTypeCompoundFlatChunk iChunkFlat

RMTPTypeCompoundFlatChunk iChunkFlat [private]

The flat data chunk comprising elements EStorageType to EFreeSpaceInObjects.

const TFixedArray< TElementInfo, ENumElements > iElementInfo

const TFixedArray < TElementInfo , ENumElements > iElementInfo [private]

The dataset element metadata table.

const CMTPTypeCompoundBase::TElementInfo iElementMetaData

const CMTPTypeCompoundBase::TElementInfo iElementMetaData [private, static]

The dataset element metadata table content.

RPointerArray< CMTPTypeString > iStringChunks

RPointerArray < CMTPTypeString > iStringChunks [private]

The MTP string type data chunks (EStorageDescription, and EVolumeIdentifier).