CDiagResultDetailBasic Class Reference

class CDiagResultDetailBasic : public CBase

Diagnostics Result Database Detail class.

This class provides implementation of MDiagResultDetail with commonly used methods.

Since
S60 v5.0

Inherits from

Constructor & Destructor Documentation

CDiagResultDetailBasic(CDiagResultsDatabaseItem::TResult)

IMPORT_C CDiagResultDetailBasic ( CDiagResultsDatabaseItem::TResult aResult )

Constructor.

Parameters

CDiagResultsDatabaseItem::TResult aResult - Test Result

~CDiagResultDetailBasic()

IMPORT_C ~CDiagResultDetailBasic ( ) [virtual]

Destructor.

Member Functions Documentation

BaseConstructL(RReadStream &)

IMPORT_C void BaseConstructL ( RReadStream & aReadStream ) [protected]

BaseConstructL

Parameters

RReadStream & aReadStream - Initialize from a stream.

BaseConstructL(const CBufFlat &)

IMPORT_C void BaseConstructL ( const CBufFlat & aBuffer ) [protected]

BaseConstructL

Parameters

const CBufFlat & aBuffer - Buffer to initialize from

CreateIconL()

IMPORT_C CGulIcon * CreateIconL ( ) const [virtual]

Create an icon. Icon can be created based on the results of the test.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aWriteStream ) const

Externalize to a stream

Parameters

RWriteStream & aWriteStream - stream to write to.

ExternalizeToBufferL()

IMPORT_C CBufFlat * ExternalizeToBufferL ( ) const

FindItem(TInt)

TInt FindItem ( TInt aFieldId ) const [private]

Find item by field id

Parameters

TInt aFieldId

GetOutputL(TOutputFormat, RBuf &)

IMPORT_C void GetOutputL ( TOutputFormat aFormat,
RBuf & aBuffer
) const [virtual]

Output current result to a specified format.

Parameters

TOutputFormat aFormat Format of desired output.
RBuf & aBuffer Output buffer.

GetSupportedOutput(RArray< TOutputFormat > &)

IMPORT_C void GetSupportedOutput ( RArray < TOutputFormat > & aOutputList ) const [virtual]

Get list of supported output

Parameters

RArray < TOutputFormat > & aOutputList - Returns supported output formats

GetValue(TInt, TInt &)

IMPORT_C TInt GetValue ( TInt aFieldId,
TInt & aValue
) const [protected]

Get value. If invalid aFieldId is passed, or type does not match, function will leave with KErrArgument.

Parameters

TInt aFieldId - Unique id that identifies the data. Same value used in SetValueL function.
TInt & aValue - Output paramater. The data will be stored here.

GetValue(TInt, TPtrC8 &)

IMPORT_C TInt GetValue ( TInt aFieldId,
TPtrC8 & aValue
) const [protected]

Parameters

TInt aFieldId
TPtrC8 & aValue

GetValue(TInt, TPtrC16 &)

IMPORT_C TInt GetValue ( TInt aFieldId,
TPtrC16 & aValue
) const [protected]

Parameters

TInt aFieldId
TPtrC16 & aValue

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aReadStream ) [private]

InternalizeL

Parameters

RReadStream & aReadStream - Initialize from a stream.

IsOutputSupported(TOutputFormat)

IMPORT_C TBool IsOutputSupported ( TOutputFormat aOutputFormat ) const [virtual]

Check if a given output format is supported.

Parameters

TOutputFormat aOutputFormat - Possible output formate.

SetItemL(CDiagResultDetailBasicItem *)

void SetItemL ( CDiagResultDetailBasicItem * aNewItem ) [private]

Insert a new item. This function will delete the old item if item with same field id already existsed.

Parameters

CDiagResultDetailBasicItem * aNewItem - new item to set

SetResult(CDiagResultsDatabaseItem::TResult)

IMPORT_C void SetResult ( CDiagResultsDatabaseItem::TResult aResult )

Update result value

Parameters

CDiagResultsDatabaseItem::TResult aResult - Test result

SetValueL(TInt, const TDesC8 &, TInt)

IMPORT_C void SetValueL ( TInt aFieldId,
const TDesC8 & aFieldName,
TInt aValue
) [protected]

Set data to a field. This function sets a value to a field. If data already exists at the same field id, new data will over write the old value at the same field.

Parameters

TInt aFieldId - Unique ID to identify the data.
const TDesC8 & aFieldName - Name of the field. This only for a reference.
TInt aValue - Value to set. This can be a TInt, const TDesC8& or const TDesC16&.

SetValueL(TInt, const TDesC8 &, const TDesC8 &)

IMPORT_C void SetValueL ( TInt aFieldId,
const TDesC8 & aFieldName,
const TDesC8 & aValue
) [protected]

Parameters

TInt aFieldId
const TDesC8 & aFieldName
const TDesC8 & aValue

SetValueL(TInt, const TDesC8 &, const TDesC16 &)

IMPORT_C void SetValueL ( TInt aFieldId,
const TDesC8 & aFieldName,
const TDesC16 & aValue
) [protected]

Parameters

TInt aFieldId
const TDesC8 & aFieldName
const TDesC16 & aValue

Member Data Documentation

RPointerArray< CDiagResultDetailBasicItem > iFields

RPointerArray < CDiagResultDetailBasicItem > iFields [private]

List of fields it contains. All items are owned by this class.

CDiagResultsDatabaseItem::TResult iResult

CDiagResultsDatabaseItem::TResult iResult [private]

Test result.