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 & aServicePGUIDThe service GUID .
const TMTPTypeGuid & aGUIDThe GUID of service format
TUint16 & aServiceFormatCodeThe service format code that is allocated.

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

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

Generate one ServiceID .

Parameters

const TMTPTypeGuid & aPGUIDThe GUID of Service.
const TUint aServiceTypeservice type (normal or abstract).
TUint & aServiceIDthe 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 & aServicePGUIDThe service GUID .
const TMTPTypeGuid & aGUIDThe GUID of method
TUint16 & aMethodFormatCodeThe method format code that is allocated.

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

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

Generate one service property code .

Parameters

const TMTPTypeGuid & aServicePGUIDThe service GUID .
const TMTPTypeGuid & aPKNamespaceThe GUID of PKey Namespace
const TUint aPKIDThe PKey ID of service property
TUint16 & aServicePropertyCodeThe service property code that is allocated.