MMTPConnection Class Reference

class MMTPConnection

Defines the MTP data provider framework MTP connection interface.

Member Functions Documentation

ConnectionId()

TUint ConnectionId()const [pure virtual]

Provides the unique MTP data provider framework assigned identifier of the connection.

SessionCount()

TUint SessionCount()const [pure virtual]

Provides a count of the number of sessions currently active on the connection.

SessionWithMTPIdExists(TUint32)

TBool SessionWithMTPIdExists(TUint32aMTPId)const [pure virtual]

Indicates if a session with the specified MTP connection assigned identifier is currently active on the connection.

Parameters

TUint32 aMTPIdThe MTP connection assigned identifier of the session.

SessionWithMTPIdL(TUint32)

MMTPSession &SessionWithMTPIdL(TUint32aMTPId)const [pure virtual]
Provides a reference to the session with the specified MTP connection assigned identifier.
leave
KErrNotFound, if the specified session identifier is not currently active on the connection.
SessionWithMTPIdExists

Parameters

TUint32 aMTPIdThe MTP connection assigned identifier of the requested session.

SessionWithUniqueIdExists(TUint32)

TBool SessionWithUniqueIdExists(TUint32aUniqueId)const [pure virtual]

Indicates if a session with the specified MTP connection assigned identifier is currently active on the connection.

Parameters

TUint32 aUniqueIdThe MTP connection assigned identifier of the session.

SessionWithUniqueIdL(TUint32)

MMTPSession &SessionWithUniqueIdL(TUint32aUniqueId)const [pure virtual]
Provides a reference to the session with the specified MTP connection assigned identifier.
leave
KErrNotFound, if the specified session identifier is not currently active on the connection.
SessionWithMTPIdExists

Parameters

TUint32 aUniqueIdThe MTP connection assigned identifier of the requested session.