CScriptBase Class Reference

class CScriptBase : public CBase

Inherits from

Public Member Functions
~CScriptBase ()
IMPORT_C TInt CallTestClass (const TDesC &)
IMPORT_C CScriptBase * GetTestObject (const TDesC &)
TInt RunMethodL ( CStifItemParser &)
IMPORT_C void SetResultDescription (const TDesC &)
IMPORT_C void Signal ( TInt )
IMPORT_C CTestModuleIf & TestModuleIf ()
Protected Member Functions
CScriptBase ( CTestModuleIf &)
IMPORT_C TInt GetConstantValue (const TDesC &, TDes &)
IMPORT_C TInt GetConstantValue (const TDesC &, TInt &)
IMPORT_C TInt GetConstantValue (const TDesC &, TReal &)
IMPORT_C TInt GetLocalValue (const TDesC &, TDes &)
IMPORT_C TInt GetLocalValue (const TDesC &, TInt &)
IMPORT_C TInt GetLocalValue (const TDesC &, TReal &)
IMPORT_C TInt RunInternalL ( TStifFunctionInfo const , TInt , CStifItemParser &)
IMPORT_C TInt SetLocalValue (const TDesC &, const TDesC &)
IMPORT_C TInt SetLocalValue (const TDesC &, const TInt )
IMPORT_C TInt SetLocalValue (const TDesC &, const TReal )
Private Member Functions
IMPORT_C void CancelSignal ()
IMPORT_C void EnableSignal ( TRequestStatus &)
IMPORT_C void SetScripter ( CallBackFunc , CTestScripter *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
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()
Protected Attributes
CStifLogger * iLog
RArray < TInt > iSignalErrors
Private Attributes
CallBackFunc iFunc
TRequestStatus * iStatus
CTestModuleIf & iTestModuleIf
CTestScripter * iTestScripter

Constructor & Destructor Documentation

CScriptBase(CTestModuleIf &)

IMPORT_C CScriptBase ( CTestModuleIf & aTestModuleIf ) [protected]

Constructor.

Parameters

CTestModuleIf & aTestModuleIf

~CScriptBase()

~CScriptBase ( ) [inline, virtual]

Destructor of CScriptBase .

Member Functions Documentation

CallTestClass(const TDesC &)

IMPORT_C TInt CallTestClass ( const TDesC & aLine )

Parameters

const TDesC & aLine

CancelSignal()

IMPORT_C void CancelSignal ( ) [private]

EnableSignal(TRequestStatus &)

IMPORT_C void EnableSignal ( TRequestStatus & aStatus ) [private]

Parameters

TRequestStatus & aStatus

GetConstantValue(const TDesC &, TDes &)

IMPORT_C TInt GetConstantValue ( const TDesC & aName,
TDes & aValue
) [protected]

Internal fuction to get const value defined in [Define]...[Enddefine] section of script file

Parameters

const TDesC & aName
TDes & aValue

GetConstantValue(const TDesC &, TInt &)

IMPORT_C TInt GetConstantValue ( const TDesC & aName,
TInt & aValue
) [protected]

Internal fuction to get const value defined in [Define]...[Enddefine] section of script file

Parameters

const TDesC & aName
TInt & aValue

GetConstantValue(const TDesC &, TReal &)

IMPORT_C TInt GetConstantValue ( const TDesC & aName,
TReal & aValue
) [protected]

Internal fuction to get const value defined in [Define]...[Enddefine] section of script file

Parameters

const TDesC & aName
TReal & aValue

GetLocalValue(const TDesC &, TDes &)

IMPORT_C TInt GetLocalValue ( const TDesC & aName,
TDes & aValue
) [protected]

Internal fuction to get value of local variable

Parameters

const TDesC & aName
TDes & aValue

GetLocalValue(const TDesC &, TInt &)

IMPORT_C TInt GetLocalValue ( const TDesC & aName,
TInt & aValue
) [protected]

Internal fuction to get value of local variable

Parameters

const TDesC & aName
TInt & aValue

GetLocalValue(const TDesC &, TReal &)

IMPORT_C TInt GetLocalValue ( const TDesC & aName,
TReal & aValue
) [protected]

Internal fuction to get value of local variable

Parameters

const TDesC & aName
TReal & aValue

GetTestObject(const TDesC &)

IMPORT_C CScriptBase * GetTestObject ( const TDesC & aObjectName )

Parameters

const TDesC & aObjectName

RunInternalL(TStifFunctionInfo const, TInt, CStifItemParser &)

IMPORT_C TInt RunInternalL ( TStifFunctionInfo const aFunctions,
TInt aCount,
CStifItemParser & aItem
) [protected, virtual]

Internal fuction to run specified method.

Parameters

TStifFunctionInfo const aFunctions
TInt aCount
CStifItemParser & aItem

RunMethodL(CStifItemParser &)

TInt RunMethodL ( CStifItemParser & aItem ) [pure virtual]

Runs a script line, must be implemented in derived class.

Parameters

CStifItemParser & aItem

SetLocalValue(const TDesC &, const TDesC &)

IMPORT_C TInt SetLocalValue ( const TDesC & aName,
const TDesC & aValue
) [protected]

Internal fuction to set value of local variable

Parameters

const TDesC & aName
const TDesC & aValue

SetLocalValue(const TDesC &, const TInt)

IMPORT_C TInt SetLocalValue ( const TDesC & aName,
const TInt aValue
) [protected]

Internal fuction to set value of local variable

Parameters

const TDesC & aName
const TInt aValue

SetLocalValue(const TDesC &, const TReal)

IMPORT_C TInt SetLocalValue ( const TDesC & aName,
const TReal aValue
) [protected]

Internal fuction to set value of local variable

Parameters

const TDesC & aName
const TReal aValue

SetResultDescription(const TDesC &)

IMPORT_C void SetResultDescription ( const TDesC & aDescription )

Parameters

const TDesC & aDescription

SetScripter(CallBackFunc, CTestScripter *)

IMPORT_C void SetScripter ( CallBackFunc aFunc,
CTestScripter * aTestScripter
) [private]

Parameters

CallBackFunc aFunc
CTestScripter * aTestScripter

Signal(TInt)

IMPORT_C void Signal ( TInt aError =  KErrNone )

Signal TestScripter to continue from waittestclass.

Parameters

TInt aError =  KErrNone

TestModuleIf()

IMPORT_C CTestModuleIf & TestModuleIf ( )

Get reference to TestModuleIf API.

Member Data Documentation

CallBackFunc iFunc

CallBackFunc iFunc [private]

CStifLogger * iLog

CStifLogger * iLog [protected]

Logger.

RArray< TInt > iSignalErrors

RArray < TInt > iSignalErrors [protected]

Array for handling multiple 'waittestclass' given from testclass's test configure file.

TRequestStatus * iStatus

TRequestStatus * iStatus [private]

CTestModuleIf & iTestModuleIf

CTestModuleIf & iTestModuleIf [private]

CTestScripter * iTestScripter

CTestScripter * iTestScripter [private]