CTestServer Class Reference

class CTestServer : public CServer2

Inherits from

Public Member Functions
~CTestServer()
voidClearFirstTime()
voidDeleteContainer(CObjectCon *)
TBool FirstTime()
TInt GetServerThreadId()
CTestThreadContainerRunnerFactory *GetTestThreadContainerRunnerFactory()
CUiEnvProxy *GetUiEnvProxy()
const TDesC &ModuleName()
CObjectCon *NewContainerL()
CTestServer *NewL(const TFileName &)
CSession2 *NewSessionL(const TVersion &, const RMessage2 &)
voidPanicServer(const TTestServerPanic)
voidSessionClosed()
TInt ThreadFunction(TAny *)
TBool UiTesting()
Private Member Functions
CTestServer()
voidConstructL(const TFileName &)
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()
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
CServer2::DoConnect(const RMessage2 &)
CServer2::Extension_(TUint,TAny *&,TAny *)
CServer2::Message()const
CServer2::ReStart()
CServer2::RunError(TInt)
CServer2::RunL()
CServer2::Server()const
CServer2::SetMaster(const CServer2 *)
CServer2::SetPinClientDescriptors(TBool)
CServer2::Start(const TDesC &)
CServer2::StartL(const TDesC &)
CServer2::~CServer2()
Inherited Enumerations
CActive:TPriority
CServer2:TPanic
CServer2:TServerType
Private Attributes
CObjectConIx *iContainerIndex
TBool iFirstTime
TPtr iModuleName
HBufC *iModuleNameBuffer
TInt iSessionCount
CTestThreadContainerRunnerFactory *iTestThreadContainerRunnerFactory
TBool iUiTesting
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

CTestServer()

CTestServer()[private]

C++ default constructor.

~CTestServer()

~CTestServer()

Destructor of CTestServer.

Member Functions Documentation

ClearFirstTime()

voidClearFirstTime()

Clears the module first time flag.

ConstructL(const TFileName &)

voidConstructL(const TFileName &aName)[private]

By default Symbian OS constructor is private.

Parameters

const TFileName & aName

DeleteContainer(CObjectCon *)

voidDeleteContainer(CObjectCon *aContainer)

Removes a container. Needed to close session properly.

Parameters

CObjectCon * aContainer

FirstTime()

TBool FirstTime()const

Is module inside this server already initialised?

GetServerThreadId()

TInt GetServerThreadId()

GetServerThreadId for ServerStateHandler Active object usage

GetTestThreadContainerRunnerFactory()

CTestThreadContainerRunnerFactory *GetTestThreadContainerRunnerFactory()

Gets CTestThreadContainerRunner pointer which is used in UI testing

GetUiEnvProxy()

CUiEnvProxy *GetUiEnvProxy()

Gets pointer to UiEnvProxy.

ModuleName()

const TDesC &ModuleName()const

Returns module name

NewContainerL()

CObjectCon *NewContainerL()

Return object container, guaranteed to produce object containers with unique ids within the server.

NewL(const TFileName &)

CTestServer *NewL(const TFileName &aName)[static]

NewL is first phase of two-phased constructor.

Parameters

const TFileName & aName

NewSessionL(const TVersion &, const RMessage2 &)

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

NewSessionL creates new CTestServer session.

Parameters

const TVersion & aVersion
const RMessage2 & aMessage

PanicServer(const TTestServerPanic)

voidPanicServer(const TTestServerPanicaPanic)[static]

PanicServer panics the CTestServer

Parameters

const TTestServerPanic aPanic

SessionClosed()

voidSessionClosed()

Inform Server that session is closed.

ThreadFunction(TAny *)

TInt ThreadFunction(TAny *aStarted)[static]

ThreadFunction is used to create new thread.

Parameters

TAny * aStarted

UiTesting()

TBool UiTesting()

Gets information that testserver supports UI testing or not

Member Data Documentation

CObjectConIx * iContainerIndex

CObjectConIx *iContainerIndex[private]

TBool iFirstTime

TBool iFirstTime[private]

TPtr iModuleName

TPtr iModuleName[private]

HBufC * iModuleNameBuffer

HBufC *iModuleNameBuffer[private]

TInt iSessionCount

TInt iSessionCount[private]

CTestThreadContainerRunnerFactory * iTestThreadContainerRunnerFactory

CTestThreadContainerRunnerFactory *iTestThreadContainerRunnerFactory[private]

TBool iUiTesting

TBool iUiTesting[private]