CRootServer Class Reference

class CRootServer : public CPolicyServer

The main class implementing the Rootserver.

Inherits from

Public Member Functions
~CRootServer()
CBindManager *BindManager()
IMPORT_C TIntCpmCount()
CCommsProviderModule *CreateCpmL(const RootServer::TRSStartModuleParams &, HBufC8 *)
IMPORT_C voidDisconnectSession(const CRootServerSession *)
TInt EnumerateModules(TInt, CommsFW::TCFModuleNameF &)
TInt EnumerateSubModules(const CommsFW::TCFModuleNameF &, TInt, CommsFW::TCFSubModuleNameF &)
CCommsProviderModule *FindCpm(const CommsFW::TCFModuleNameF &)
RHeap *FindHeap(const CommsFW::TCFModuleNameF &)
TInt Forward(const CommsFW::TCFModuleNameF &, const RMessage2 &)
TInt GetModuleInfo(const CommsFW::TCFModuleNameF &, RootServer::TRSModuleInfo &)
IMPORT_C TBoolIsCallerConfigurator(const CRootServerSession *, const RMessage2 &)
IMPORT_C voidLazyLoadL()
IMPORT_C CSession2 *NewSessionL(const TVersion &, const RMessage2 &)
IMPORT_C voidReceivedMessage(const CommsFW::TCFModuleName &, const CommsFW::TCFMessage &)
TInt Shutdown()
IMPORT_C voidSuddenDeath(TInt)
Protected Member Functions
CRootServer(TInt, const TPolicy &)
IMPORT_C voidConstructL(const TRootServerStartupInfo &)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType)
CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomSecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CPolicyServer::Extension_(TUint,TAny *&,TAny *)
CPolicyServer::ProcessError(const RMessage2 &,TInt)
CPolicyServer::ProcessL(const RMessage2 &)
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
CServer2::DoConnect(const RMessage2 &)
CServer2::Message()const
CServer2::ReStart()
CServer2::Server()const
CServer2::SetMaster(const CServer2 *)
CServer2::SetPinClientDescriptors(TBool)
CServer2::Start(const TDesC &)
CServer2::StartL(const TDesC &)
CServer2::~CServer2()
Inherited Enumerations
CActive:TPriority
CPolicyServer:TCustomResult
CPolicyServer:TFailureAction
CPolicyServer:TSpecialCase
CServer2:TPanic
CServer2:TServerType
Public Attributes
TUid iDeathKey
TUid iLeakKey
TUid iProcessKey
Protected Attributes
const CPolicyServer::TPolicyPolicy
const CPolicyServer::TPolicyElementPolicyElements
const TUint8PolicyElementsIndex
const TUintPolicyRangeCount
const TIntPolicyRanges
__CFLOG_DECLARATION_MEMBER
CBindManager *iBindMgr
TCommsProviderModuleCtor iCommsProviderModuleCtorL
TInt iDeathCount
RProperty iDeathProperty
TDblQue< CCommsProviderModule >iModules
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

CRootServer(TInt, const TPolicy &)

IMPORT_CCRootServer(TIntaPriority,
const TPolicy &aPolicy
)[protected]

Parameters

TInt aPriority
const TPolicy & aPolicy

~CRootServer()

IMPORT_C~CRootServer()

Member Functions Documentation

BindManager()

CBindManager *BindManager()const

ConstructL(const TRootServerStartupInfo &)

IMPORT_C voidConstructL(const TRootServerStartupInfo &aRootServerStartupInfo)[protected]

Second level construction of rootserver.

Parameters

const TRootServerStartupInfo & aRootServerStartupInfo

CpmCount()

IMPORT_C TIntCpmCount()

Count number of comms provider modules.

CreateCpmL(const RootServer::TRSStartModuleParams &, HBufC8 *)

CCommsProviderModule *CreateCpmL(const RootServer::TRSStartModuleParams &aParams,
HBufC8 *aIniData
)

Parameters

const RootServer::TRSStartModuleParams & aParams
HBufC8 * aIniData

DisconnectSession(const CRootServerSession *)

IMPORT_C voidDisconnectSession(const CRootServerSession *aSession)[virtual]

Parameters

const CRootServerSession * aSession

EnumerateModules(TInt, CommsFW::TCFModuleNameF &)

TInt EnumerateModules(TIntaStartAt,
CommsFW::TCFModuleNameF &aName
)

Parameters

TInt aStartAt
CommsFW::TCFModuleNameF & aName

EnumerateSubModules(const CommsFW::TCFModuleNameF &, TInt, CommsFW::TCFSubModuleNameF &)

TInt EnumerateSubModules(const CommsFW::TCFModuleNameF &aModuleName,
TIntaStartAt,
CommsFW::TCFSubModuleNameF &aName
)

Parameters

const CommsFW::TCFModuleNameF & aModuleName
TInt aStartAt
CommsFW::TCFSubModuleNameF & aName

FindCpm(const CommsFW::TCFModuleNameF &)

CCommsProviderModule *FindCpm(const CommsFW::TCFModuleNameF &aName)

Parameters

const CommsFW::TCFModuleNameF & aName

FindHeap(const CommsFW::TCFModuleNameF &)

RHeap *FindHeap(const CommsFW::TCFModuleNameF &aName)

Parameters

const CommsFW::TCFModuleNameF & aName

Forward(const CommsFW::TCFModuleNameF &, const RMessage2 &)

TInt Forward(const CommsFW::TCFModuleNameF &aModule,
const RMessage2 &aMessage
)

Parameters

const CommsFW::TCFModuleNameF & aModule
const RMessage2 & aMessage

GetModuleInfo(const CommsFW::TCFModuleNameF &, RootServer::TRSModuleInfo &)

TInt GetModuleInfo(const CommsFW::TCFModuleNameF &aName,
RootServer::TRSModuleInfo &aInfo
)

Parameters

const CommsFW::TCFModuleNameF & aName
RootServer::TRSModuleInfo & aInfo

IsCallerConfigurator(const CRootServerSession *, const RMessage2 &)

IMPORT_C TBoolIsCallerConfigurator(const CRootServerSession *aSession,
const RMessage2 &aMessage
)[virtual]

Parameters

const CRootServerSession * aSession
const RMessage2 & aMessage

LazyLoadL()

IMPORT_C voidLazyLoadL()[virtual]

NewSessionL(const TVersion &, const RMessage2 &)

IMPORT_C CSession2 *NewSessionL(const TVersion &aVersion,
const RMessage2 &aMessage
)const [virtual]

Create new session object.

Parameters

const TVersion & aVersion
const RMessage2 & aMessage

ReceivedMessage(const CommsFW::TCFModuleName &, const CommsFW::TCFMessage &)

IMPORT_C voidReceivedMessage(const CommsFW::TCFModuleName &aModule,
const CommsFW::TCFMessage &aNewMsg
)[virtual]

Parameters

const CommsFW::TCFModuleName & aModule
const CommsFW::TCFMessage & aNewMsg

Shutdown()

TInt Shutdown()
Shutdown RootServer Modules should have already been unloaded so all we do is stop active scheduler and delete self.
Post-condition
The object is deleted

SuddenDeath(TInt)

IMPORT_C voidSuddenDeath(TIntaReason)

Sudden Death has happened, notify all listeners. Called by the modules upon death. Publish property so that all interested party's can take action.

Parameters

TInt aReasonThe reason of the Sudden Death.

Member Data Documentation

const CPolicyServer::TPolicy Policy

const CPolicyServer::TPolicyPolicy[protected, static]

const CPolicyServer::TPolicyElement PolicyElements

const CPolicyServer::TPolicyElementPolicyElements[protected, static]

const TUint8 PolicyElementsIndex

const TUint8PolicyElementsIndex[protected, static]

const TUint PolicyRangeCount

const TUintPolicyRangeCount[protected, static]

const TInt PolicyRanges

const TIntPolicyRanges[protected, static]

__CFLOG_DECLARATION_MEMBER

__CFLOG_DECLARATION_MEMBER[protected]

CBindManager * iBindMgr

CBindManager *iBindMgr[protected]

TCommsProviderModuleCtor iCommsProviderModuleCtorL

TCommsProviderModuleCtor iCommsProviderModuleCtorL[protected]

TInt iDeathCount

TInt iDeathCount[protected]

TUid iDeathKey

TUid iDeathKey

RProperty iDeathProperty

RProperty iDeathProperty[protected]

TUid iLeakKey

TUid iLeakKey

TDblQue< CCommsProviderModule > iModules

TDblQue< CCommsProviderModule >iModules[protected]

TUid iProcessKey

TUid iProcessKey