CMTPTransportPlugin Class Reference

class CMTPTransportPlugin : public CBase

Defines the MTP transport layer plug-in interface.

Inherits from

Constructor & Destructor Documentation

CMTPTransportPlugin()

IMPORT_C CMTPTransportPlugin ( ) [protected]

Constructor.

~CMTPTransportPlugin()

IMPORT_C ~CMTPTransportPlugin ( ) [virtual]

Destructor.

Member Functions Documentation

GetExtendedInterface(TUid)

TAny * GetExtendedInterface ( TUid aInterfaceUid ) [pure virtual]

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

Parameters

TUid aInterfaceUid Unique identifier for the extension interface being requested.

ModeChanged(TMTPOperationalMode)

void ModeChanged ( TMTPOperationalMode aMode ) [pure virtual]

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

Parameters

TMTPOperationalMode aMode The new operational mode of the MTP protocol layer.

NewL(TUid)

IMPORT_C CMTPTransportPlugin * NewL ( TUid aImplementationUid ) [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 aImplementationUid A UID specifying the required interface implementation.

NewL(TUid, const TAny *)

IMPORT_C CMTPTransportPlugin * NewL ( TUid aImplementationUid,
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 aImplementationUid A UID specifying the required interface implementation.
const TAny * aParameter is 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 &)

void StartL ( 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 & aConnectionMgr The MTP connection manager interface.

Stop(MMTPConnectionMgr &)

void Stop ( 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 & aConnectionMgr The connection manager interface.

Member Data Documentation

TUid iDtorIdKey

TUid iDtorIdKey [private]

MTP transport layer ECOM plug-in identifier.