CDiagResultsDatabaseItem Class Reference

class CDiagResultsDatabaseItem : public CBase

Results database item.

Since
S60 v5.0

Inherits from

Public Member Functions
~CDiagResultsDatabaseItem ()
IMPORT_C const CBufFlat * DetailsData ()
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C CDiagResultsDatabaseItem * NewL ( RReadStream &)
IMPORT_C CDiagResultsDatabaseItem * NewL ( TUid , TBool , TResult , TTime , TTime , CBufFlat *)
IMPORT_C CDiagResultsDatabaseItem * NewL (const CDiagResultsDatabaseItem &)
IMPORT_C CDiagResultsDatabaseItem * NewLC ( TUid , TBool , TResult , TTime , TTime , CBufFlat *)
IMPORT_C TInt Size ()
IMPORT_C TResult TestResult ()
IMPORT_C TUid TestUid ()
IMPORT_C TTime TimeCompleted ()
IMPORT_C TTime TimeStarted ()
IMPORT_C TBool WasDependency ()
Private Member Functions
CDiagResultsDatabaseItem ( TUid , TBool , TResult , TTime , TTime , CBufFlat *)
CDiagResultsDatabaseItem ()
void ConstructL ( RReadStream &)
IMPORT_C void InternalizeL ( RReadStream &)
void ReadTimeFromStreamL ( RReadStream &, TTime &)
void WriteTimeToStreamL ( RWriteStream &, const TTime &)
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()
Public Member Enumerations
enum TResult {
ESuccess  = 0, EFailed , ESkipped , ECancelled , EInterrupted , ENotPerformed , EDependencyFailed , EWatchdogCancel , ESuspended , EQueuedToRun , EDependencySkipped
}
Private Attributes
TBool iDependencyExecution
CBufFlat * iDetailsData
TTime iEndTime
TResult iResult
TTime iStartTime
TUid iTestUid

Constructor & Destructor Documentation

CDiagResultsDatabaseItem(TUid, TBool, TResult, TTime, TTime, CBufFlat *)

CDiagResultsDatabaseItem ( TUid aTestUid,
TBool aDependencyExecution,
TResult aResult,
TTime aStartTime,
TTime aEndTime,
CBufFlat * aDetailsData
) [private]

C++ Constructors.

Parameters

TUid aTestUid
TBool aDependencyExecution
TResult aResult
TTime aStartTime
TTime aEndTime
CBufFlat * aDetailsData

CDiagResultsDatabaseItem()

CDiagResultsDatabaseItem ( ) [private]

Default C++ constructor.

~CDiagResultsDatabaseItem()

IMPORT_C ~CDiagResultsDatabaseItem ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

Construct from a stream.

Parameters

RReadStream & aStream Read stream.

DetailsData()

IMPORT_C const CBufFlat * DetailsData ( ) const

Details data. This must be interpreted by the plug-ins before it can be used. Data is in object form.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Externalize the test result to a stream.

Parameters

RWriteStream & aStream Stream to write to.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream ) [private]

Internalize the test result from a stream.

Parameters

RReadStream & aStream Stream to read from.

NewL(RReadStream &)

IMPORT_C CDiagResultsDatabaseItem * NewL ( RReadStream & aStream ) [static]

NewL. Construct from a stream.

Parameters

RReadStream & aStream Stream to read from.

NewL(TUid, TBool, TResult, TTime, TTime, CBufFlat *)

IMPORT_C CDiagResultsDatabaseItem * NewL ( TUid aTestUid,
TBool aDependencyExecution,
TResult aResult,
TTime aStartTime,
TTime aEndTime,
CBufFlat * aDetailsData
) [static]

NewL.

Parameters

TUid aTestUid
TBool aDependencyExecution
TResult aResult
TTime aStartTime
TTime aEndTime
CBufFlat * aDetailsData

NewL(const CDiagResultsDatabaseItem &)

IMPORT_C CDiagResultsDatabaseItem * NewL ( const CDiagResultsDatabaseItem & aOriginal ) [static]

NewL. Copy constructor. This will do a deep copy.

Parameters

const CDiagResultsDatabaseItem & aOriginal - Original to copy data from.

NewLC(TUid, TBool, TResult, TTime, TTime, CBufFlat *)

IMPORT_C CDiagResultsDatabaseItem * NewLC ( TUid aTestUid,
TBool aDependencyExecution,
TResult aResult,
TTime aStartTime,
TTime aEndTime,
CBufFlat * aDetailsData
) [static]

NewLC.

Parameters

TUid aTestUid
TBool aDependencyExecution
TResult aResult
TTime aStartTime
TTime aEndTime
CBufFlat * aDetailsData

ReadTimeFromStreamL(RReadStream &, TTime &)

void ReadTimeFromStreamL ( RReadStream & aStream,
TTime & aTime
) [private]

Read TTime from read stream.

Parameters

RReadStream & aStream read stream.
TTime & aTime Contains time after stream is read.

Size()

IMPORT_C TInt Size ( ) const

Calculate stream size in bytes. Size can be used to evaluate needed stream size.

TestResult()

IMPORT_C TResult TestResult ( ) const

Get Test Result.

TestUid()

IMPORT_C TUid TestUid ( ) const

Get Uid of test plug-in.

TimeCompleted()

IMPORT_C TTime TimeCompleted ( ) const

Time that test execution was completed. Universal time is used.

TimeStarted()

IMPORT_C TTime TimeStarted ( ) const

Time that test execution was started. Universal time is used.

WasDependency()

IMPORT_C TBool WasDependency ( ) const

Whether the test was executed to satisfy dependency or not.

WriteTimeToStreamL(RWriteStream &, const TTime &)

void WriteTimeToStreamL ( RWriteStream & aStream,
const TTime & aTime
) const [private]

Write TTime into write stream.

Parameters

RWriteStream & aStream Stream to write to.
const TTime & aTime TTime that is written into the stream.

Member Enumerations Documentation

Enum TResult

Result of test.

Enumerators

ESuccess = 0
EFailed
ESkipped
ECancelled
EInterrupted
ENotPerformed
EDependencyFailed
EWatchdogCancel
ESuspended
EQueuedToRun
EDependencySkipped

Member Data Documentation

TBool iDependencyExecution

TBool iDependencyExecution [private]

CBufFlat * iDetailsData

CBufFlat * iDetailsData [private]

TTime iEndTime

TTime iEndTime [private]

TResult iResult

TResult iResult [private]

TTime iStartTime

TTime iStartTime [private]

TUid iTestUid

TUid iTestUid [private]