RMPMDefaultConnection Class Reference

class RMPMDefaultConnection : public RSessionBase

Cleant API for MPM Default Connection server services.

Enables registering IAP to be used as default connection. Only one client may be connected at a time
  RMPMDefaultConnection rmpmdc;
  TInt err = KErrNone;
  //connect and set default IAP
  err = rmpmdc.Connect();
  err = rmpmdc.SetDefaultIAP( iapId );

  //when IAP no longer used as default
  err = rmpmdc.ClearDefaultIAP();
  rmpmdc.Close();
mpmdefaultconnection.dll
Since
S60 v3.2

Inherits from

Public Member Functions
RMPMDefaultConnection()
IMPORT_C TIntClearDefaultIAP()
IMPORT_C voidClose()
IMPORT_C TIntConnect()
IMPORT_C TIntSetDefaultIAP(TInt)
IMPORT_C TVersionVersion()
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
TBool iClientConnected
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RMPMDefaultConnection()

RMPMDefaultConnection()[inline]

Constructor.

Since
S60 v3.2

Member Functions Documentation

ClearDefaultIAP()

IMPORT_C TIntClearDefaultIAP()

Clears IAP from being used as default connection

Since
S60 v3.2

Close()

IMPORT_C voidClose()

Closes connection to server If IAP has been registered by the client it is also deregistered here

Since
S60 v3.2

Connect()

IMPORT_C TIntConnect()

Creates connection to server

Since
S60 v3.2

SetDefaultIAP(TInt)

IMPORT_C TIntSetDefaultIAP(TIntaIapId)

Sets IAP to be used as default connection

Since
S60 v3.2

Parameters

TInt aIapIdCommsDat record id of the IAP

Version()

IMPORT_C TVersionVersion()const
Returns MPM Default Connection server version.
Since
3.2

Member Data Documentation

TBool iClientConnected

TBool iClientConnected[private]

Is client connected to server or not