MMTPDataCodeGenerator Class Reference

class MMTPDataCodeGenerator

Defines the MTP data provider framework datacode generator interface.

Member Functions Documentation

AllocateServiceFormatCode(const TMTPTypeGuid &, const TMTPTypeGuid &, TUint16 &)

TInt AllocateServiceFormatCode ( const TMTPTypeGuid & aServicePGUID,
const TMTPTypeGuid & aGUID,
TUint16 & aServiceFormatCode
) [pure virtual]

Generate one service format code.

Parameters

const TMTPTypeGuid & aServicePGUID The service GUID .
const TMTPTypeGuid & aGUID The GUID of service format
TUint16 & aServiceFormatCode The service format code that is allocated.

AllocateServiceID(const TMTPTypeGuid &, const TUint, TUint &)

TInt AllocateServiceID ( const TMTPTypeGuid & aPGUID,
const TUint aServiceType,
TUint & aServiceID
) [pure virtual]

Generate one ServiceID .

Parameters

const TMTPTypeGuid & aPGUID The GUID of Service.
const TUint aServiceType service type (normal or abstract).
TUint & aServiceID the service id that is allocated.

AllocateServiceMethodFormatCode(const TMTPTypeGuid &, const TMTPTypeGuid &, TUint16 &)

TInt AllocateServiceMethodFormatCode ( const TMTPTypeGuid & aServicePGUID,
const TMTPTypeGuid & aGUID,
TUint16 & aMethodFormatCode
) [pure virtual]

Generate one service method code .

Parameters

const TMTPTypeGuid & aServicePGUID The service GUID .
const TMTPTypeGuid & aGUID The GUID of method
TUint16 & aMethodFormatCode The method format code that is allocated.

AllocateServicePropertyCode(const TMTPTypeGuid &, const TMTPTypeGuid &, const TUint, TUint16 &)

TInt AllocateServicePropertyCode ( const TMTPTypeGuid & aServicePGUID,
const TMTPTypeGuid & aPKNamespace,
const TUint aPKID,
TUint16 & aServicePropertyCode
) [pure virtual]

Generate one service property code .

Parameters

const TMTPTypeGuid & aServicePGUID The service GUID .
const TMTPTypeGuid & aPKNamespace The GUID of PKey Namespace
const TUint aPKID The PKey ID of service property
TUint16 & aServicePropertyCode The service property code that is allocated.