CMTPTransportPlugin Class Reference

class CMTPTransportPlugin : public CBase

Defines the MTP transport layer plug-in interface.

Inherits from

Constructor & Destructor Documentation

CMTPTransportPlugin()

IMPORT_CCMTPTransportPlugin()[protected]

Constructor.

~CMTPTransportPlugin()

IMPORT_C~CMTPTransportPlugin()[virtual]

Destructor.

Member Functions Documentation

GetExtendedInterface(TUid)

TAny *GetExtendedInterface(TUidaInterfaceUid)[pure virtual]

Provides an MTP transport plug-in extension interface implementation for the specified interface Uid.

Parameters

TUid aInterfaceUidUnique identifier for the extension interface being requested.

ModeChanged(TMTPOperationalMode)

voidModeChanged(TMTPOperationalModeaMode)[pure virtual]

Notifies the transport layer plug-in of a change in the operational mode of the MTP protocol layer.

Parameters

TMTPOperationalMode aModeThe new operational mode of the MTP protocol layer.

NewL(TUid)

IMPORT_C CMTPTransportPlugin *NewL(TUidaImplementationUid)[static]
MTP transport layer plug-in factory method.
leave
KErrNoMemory If the plug-in instance could not be allocated.
leave
KErrArgument If an invalid aImplementationUid was specified.

Parameters

TUid aImplementationUidA UID specifying the required interface implementation.

NewL(TUid, const TAny *)

IMPORT_C CMTPTransportPlugin *NewL(TUidaImplementationUid,
const TAny *aParameter
)[static]
MTP transport layer plug-in factory method.
leave
KErrNoMemory If the plug-in instance could not be allocated.
leave
KErrArgument If an invalid aImplementationUid was specified.

Parameters

TUid aImplementationUidA UID specifying the required interface implementation.
const TAny * aParameteris the Parameter needed by MTPBT transport plugin. Since MTPBT support to initiate connection, it require listensee application to provide address and psm for remote host.

StartL(MMTPConnectionMgr &)

voidStartL(MMTPConnectionMgr &aConnectionMgr)[pure virtual]
Initiates the startup of the MTP transport layer. The transport layer should use the supplied MTP connection manager interface to signal the availability and unavailability of transport layer connections. MMTPConnectionMgr::ConnectionClosedL MMTPConnectionMgr::ConnectionOpenedL
leave
One of the system wide error codes.

Parameters

MMTPConnectionMgr & aConnectionMgrThe MTP connection manager interface.

Stop(MMTPConnectionMgr &)

voidStop(MMTPConnectionMgr &aConnectionMgr)[pure virtual]

Initiates the shutdown of the MTP transport layer. The transport layer should use the supplied connection manager interface to signal the availability and unavailability of transport layer connections. MMTPConnectionMgr::ConnectionClosedL. MMTPConnectionMgr::ConnectionOpenedL.

Parameters

MMTPConnectionMgr & aConnectionMgrThe connection manager interface.

Member Data Documentation

TUid iDtorIdKey

TUid iDtorIdKey[private]

MTP transport layer ECOM plug-in identifier.