CTestModule Class Reference

class CTestModule : public CSession2

Inherits from

Public Member Functions
~CTestModule ()
TInt CancelAsyncRequestL (const RMessage2 &)
CTestExecution * CaseFromHandle (const TUint , const RMessage2 &)
TInt CloseSession (const RMessage2 &)
TInt CountResources ()
TInt CreateModuleSessionL (const RMessage2 &)
void DeleteTestExecution (const TUint , const RMessage2 &)
TInt DispatchMessageL (const RMessage2 &)
TInt EnumerateTestCasesL (const RMessage2 &)
void ErrorPrint (const TInt , TPtrC )
TInt FreeCaseData ()
TInt FreeTestModule ( CTestModuleContainer *)
TInt GetServerThreadIdL (const RMessage2 &)
void GetTestCaseTitleL ( TInt , const TDesC &, TDes &)
TInt GetTestCasesL (const RMessage2 &)
TInt GetTestModule ( CTestModuleContainer *&, const TDesC &)
CTestServer * GetTestServer ()
TInt HandleErrorNotificationL (const RMessage2 &)
const TDesC & IniName ()
const TDesC & Name ()
CTestModule * NewL ( CTestServer *)
TInt NewTestExecutionL (const RMessage2 &)
void NumResources (const RMessage2 &)
void PanicClient ( TInt , const RMessage2 &)
void ServiceL (const RMessage2 &)
void Write (const TAny *, const TDesC8 &, TInt )
Private Member Functions
CTestModule ()
void ConstructL ( CTestServer *)
Inherited Functions
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()
CSession2::CSession2()
CSession2::Disconnect(const RMessage2 &)
CSession2::Extension_(TUint,TAny *&,TAny *)
CSession2::ResourceCountMarkEnd(const RMessage2 &)
CSession2::ResourceCountMarkStart()
CSession2::Server()const
CSession2::ServiceError(const RMessage2 &,TInt)
CSession2::SetServer(const CServer2 *)
CSession2::~CSession2()
Inherited Enumerations
CSession2:TPanicNo
Private Attributes
CObjectCon * iContainer
CTestModuleContainer * iEnumerateModule
RMessage2 iErrorMessage
TBool iErrorMessageAvailable
TPtr iIni
HBufC * iIniBuffer
TInt iResourceCount
RPointerArray < CTestCasesList > iTestCaseTitlesMap
CObjectIx * iTestExecutionHandle
RPointerArray < CTestModuleContainer > * iTestModuleInstances
CTestServer * iTestServer

Constructor & Destructor Documentation

CTestModule()

CTestModule ( ) [private]

C++ default constructor.

~CTestModule()

~CTestModule ( ) [virtual]

Destructor

Member Functions Documentation

CancelAsyncRequestL(const RMessage2 &)

TInt CancelAsyncRequestL ( const RMessage2 & aMessage )

Cancels asynchronous request

Parameters

const RMessage2 & aMessage

CaseFromHandle(const TUint, const RMessage2 &)

CTestExecution * CaseFromHandle ( const TUint aHandle,
const RMessage2 & aMessage
) const

Returns case corresponding handle

Parameters

const TUint aHandle
const RMessage2 & aMessage

CloseSession(const RMessage2 &)

TInt CloseSession ( const RMessage2 & aMessage )

Close the session to CTestServer .

Parameters

const RMessage2 & aMessage

ConstructL(CTestServer *)

void ConstructL ( CTestServer * aServer ) [private]

By default Symbian OS constructor is private.

Parameters

CTestServer * aServer

CountResources()

TInt CountResources ( ) [virtual]

Return the number of resources owned by the session.

CreateModuleSessionL(const RMessage2 &)

TInt CreateModuleSessionL ( const RMessage2 & aMessage )

Create Module Session

Parameters

const RMessage2 & aMessage

DeleteTestExecution(const TUint, const RMessage2 &)

void DeleteTestExecution ( const TUint aHandle,
const RMessage2 & aMessage
)

Destroy the created CTestExecution subsession. Cannot fail - can panic client.

Parameters

const TUint aHandle
const RMessage2 & aMessage

DispatchMessageL(const RMessage2 &)

TInt DispatchMessageL ( const RMessage2 & aMessage )

Dispatch message

Parameters

const RMessage2 & aMessage

EnumerateTestCasesL(const RMessage2 &)

TInt EnumerateTestCasesL ( const RMessage2 & aMessage )

Enumerates test cases

Parameters

const RMessage2 & aMessage

ErrorPrint(const TInt, TPtrC)

void ErrorPrint ( const TInt aPriority,
TPtrC aError
)

Prints error notification

Parameters

const TInt aPriority
TPtrC aError

FreeCaseData()

TInt FreeCaseData ( )

Frees a test case specific data owned by module( i.e enumeration data )

FreeTestModule(CTestModuleContainer *)

TInt FreeTestModule ( CTestModuleContainer * aModule )

Frees a test module.

Parameters

CTestModuleContainer * aModule

GetServerThreadIdL(const RMessage2 &)

TInt GetServerThreadIdL ( const RMessage2 & aMessage )

Get Server Thread Id

Parameters

const RMessage2 & aMessage

GetTestCaseTitleL(TInt, const TDesC &, TDes &)

void GetTestCaseTitleL ( TInt aTestCaseNumber,
const TDesC & aConfigFile,
TDes & aTestCaseTitle
)

Get title of currently running test case

Parameters

TInt aTestCaseNumber
const TDesC & aConfigFile
TDes & aTestCaseTitle

GetTestCasesL(const RMessage2 &)

TInt GetTestCasesL ( const RMessage2 & aMessage )

Get test cases

Parameters

const RMessage2 & aMessage

GetTestModule(CTestModuleContainer *&, const TDesC &)

TInt GetTestModule ( CTestModuleContainer *& aContainer,
const TDesC & aConfig
)

Returns a test module.

Parameters

CTestModuleContainer *& aContainer
const TDesC & aConfig

GetTestServer()

CTestServer * GetTestServer ( )

Get pointer to test server

HandleErrorNotificationL(const RMessage2 &)

TInt HandleErrorNotificationL ( const RMessage2 & aMessage )

Handles error notifications

Parameters

const RMessage2 & aMessage

IniName()

const TDesC & IniName ( ) const

Returns module initialisation file name

Name()

const TDesC & Name ( ) const

Returns module name

NewL(CTestServer *)

CTestModule * NewL ( CTestServer * aServer ) [static]

Construct a test module object.

Parameters

CTestServer * aServer

NewTestExecutionL(const RMessage2 &)

TInt NewTestExecutionL ( const RMessage2 & aMessage )

Create CTestExecution subsession.

Parameters

const RMessage2 & aMessage

NumResources(const RMessage2 &)

void NumResources ( const RMessage2 & aMessage )

NumResources is used to provide reserver resources to client.

Parameters

const RMessage2 & aMessage

PanicClient(TInt, const RMessage2 &)

void PanicClient ( TInt aPanic,
const RMessage2 & aMessage
) const

PanicClient panics the user of CTestModule( RTestModule user )

Parameters

TInt aPanic
const RMessage2 & aMessage

ServiceL(const RMessage2 &)

void ServiceL ( const RMessage2 & aMessage ) [virtual]

ServiceL handles the messages to CTestServer

Parameters

const RMessage2 & aMessage

Write(const TAny *, const TDesC8 &, TInt)

void Write ( const TAny * aPtr,
const TDesC8 & aDes,
TInt anOffset = 0
)

Write is utility method.

Parameters

const TAny * aPtr
const TDesC8 & aDes
TInt anOffset = 0

Member Data Documentation

CObjectCon * iContainer

CObjectCon * iContainer [private]

CTestModuleContainer * iEnumerateModule

CTestModuleContainer * iEnumerateModule [private]

RMessage2 iErrorMessage

RMessage2 iErrorMessage [private]

TBool iErrorMessageAvailable

TBool iErrorMessageAvailable [private]

TPtr iIni

TPtr iIni [private]

HBufC * iIniBuffer

HBufC * iIniBuffer [private]

TInt iResourceCount

TInt iResourceCount [private]

RPointerArray< CTestCasesList > iTestCaseTitlesMap

RPointerArray < CTestCasesList > iTestCaseTitlesMap [private]

CObjectIx * iTestExecutionHandle

CObjectIx * iTestExecutionHandle [private]

RPointerArray< CTestModuleContainer > * iTestModuleInstances

RPointerArray < CTestModuleContainer > * iTestModuleInstances [private]

CTestServer * iTestServer

CTestServer * iTestServer [private]