CTestServer Class Reference

class CTestServer : public CServer2

Inherits from

Public Member Functions
~CTestServer ()
void ClearFirstTime ()
void DeleteContainer ( CObjectCon *)
TBool FirstTime ()
TInt GetServerThreadId ()
CTestThreadContainerRunnerFactory * GetTestThreadContainerRunnerFactory ()
CUiEnvProxy * GetUiEnvProxy ()
const TDesC & ModuleName ()
CObjectCon * NewContainerL ()
CTestServer * NewL (const TFileName &)
CSession2 * NewSessionL (const TVersion &, const RMessage2 &)
void PanicServer (const TTestServerPanic )
void SessionClosed ()
TInt ThreadFunction ( TAny *)
TBool UiTesting ()
Private Member Functions
CTestServer ()
void ConstructL (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()

void ClearFirstTime ( )

Clears the module first time flag.

ConstructL(const TFileName &)

void ConstructL ( const TFileName & aName ) [private]

By default Symbian OS constructor is private.

Parameters

const TFileName & aName

DeleteContainer(CObjectCon *)

void DeleteContainer ( 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)

void PanicServer ( const TTestServerPanic aPanic ) [static]

PanicServer panics the CTestServer

Parameters

const TTestServerPanic aPanic

SessionClosed()

void SessionClosed ( )

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]