RMTPClient Class Reference

class RMTPClient : public RSessionBase

Implements the MTP client API. This API provides a control interface to start and stop MTP services.

Inherits from

Public Member Functions
RMTPClient()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C TIntIsAvailable(TUid)
IMPORT_C TIntIsProcessRunning()
IMPORT_C TIntStartTransport(TUid)
IMPORT_C TIntStartTransport(TUid, const TDesC8 &)
IMPORT_C TIntStopTransport(TUid)
IMPORT_C const TVersion &Version()
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TVersion iVersion
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RMTPClient()

IMPORT_CRMTPClient()

Constructor.

Member Functions Documentation

Close()

IMPORT_C voidClose()

Closes a connection to the MTP daemon server.

Connect()

IMPORT_C TIntConnect()

Opens a connection to the MTP daemon server.

IsAvailable(TUid)

IMPORT_C TIntIsAvailable(TUidaTransport)

Checks whether MTP Framework shall allow the StartTransport Command or not.

Parameters

TUid aTransportThe implementation UID of the transport protocol implementation.

IsProcessRunning()

IMPORT_C TIntIsProcessRunning()

Checks whether the mtpserver.exe process is running or not.

StartTransport(TUid)

IMPORT_C TIntStartTransport(TUidaTransport)

Starts up the specified MTP transport protocol.

Parameters

TUid aTransportThe implementation UID of the transport protocol implemetation.

StartTransport(TUid, const TDesC8 &)

IMPORT_C TIntStartTransport(TUidaTransport,
const TDesC8 &aParameter
)

Starts up the specified MTP BLUETOOTH transport protocol.

Parameters

TUid aTransportThe implementation UID of the transport protocol implemetation.
const TDesC8 & aParameter

StopTransport(TUid)

IMPORT_C TIntStopTransport(TUidaTransport)

Shuts down the specified MTP transport protocol.

Parameters

TUid aTransportThe implementation UID of the transport protocol implemetation.

Version()

IMPORT_C const TVersion &Version()const

Provides the minimum MTP daemon version with which the MTP client API is compatible.

Member Data Documentation

TVersion iVersion

TVersion iVersion[private]

The minimum MTP daemon version with which the MTP client API is compatible.