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

  • CDiagResultDetailBasic

Constructor & Destructor Documentation

CDiagResultDetailBasic(CDiagResultsDatabaseItem::TResult)

IMPORT_CCDiagResultDetailBasic(CDiagResultsDatabaseItem::TResultaResult)

Constructor.

Parameters

CDiagResultsDatabaseItem::TResult aResult- Test Result

~CDiagResultDetailBasic()

IMPORT_C~CDiagResultDetailBasic()[virtual]

Destructor.

Member Functions Documentation

BaseConstructL(RReadStream &)

IMPORT_C voidBaseConstructL(RReadStream &aReadStream)[protected]

BaseConstructL

Parameters

RReadStream & aReadStream- Initialize from a stream.

BaseConstructL(const CBufFlat &)

IMPORT_C voidBaseConstructL(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 voidExternalizeL(RWriteStream &aWriteStream)const

Externalize to a stream

Parameters

RWriteStream & aWriteStream- stream to write to.

ExternalizeToBufferL()

IMPORT_C CBufFlat *ExternalizeToBufferL()const

FindItem(TInt)

TInt FindItem(TIntaFieldId)const [private]

Find item by field id

Parameters

TInt aFieldId

GetOutputL(TOutputFormat, RBuf &)

IMPORT_C voidGetOutputL(TOutputFormataFormat,
RBuf &aBuffer
)const [virtual]

Output current result to a specified format.

Parameters

TOutputFormat aFormatFormat of desired output.
RBuf & aBufferOutput buffer.

GetSupportedOutput(RArray< TOutputFormat > &)

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

Get list of supported output

Parameters

RArray< TOutputFormat > & aOutputList- Returns supported output formats

GetValue(TInt, TInt &)

IMPORT_C TIntGetValue(TIntaFieldId,
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 TIntGetValue(TIntaFieldId,
TPtrC8 &aValue
)const [protected]

Parameters

TInt aFieldId
TPtrC8 & aValue

GetValue(TInt, TPtrC16 &)

IMPORT_C TIntGetValue(TIntaFieldId,
TPtrC16 &aValue
)const [protected]

Parameters

TInt aFieldId
TPtrC16 & aValue

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aReadStream)[private]

InternalizeL

Parameters

RReadStream & aReadStream- Initialize from a stream.

IsOutputSupported(TOutputFormat)

IMPORT_C TBoolIsOutputSupported(TOutputFormataOutputFormat)const [virtual]

Check if a given output format is supported.

Parameters

TOutputFormat aOutputFormat- Possible output formate.

SetItemL(CDiagResultDetailBasicItem *)

voidSetItemL(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 voidSetResult(CDiagResultsDatabaseItem::TResultaResult)

Update result value

Parameters

CDiagResultsDatabaseItem::TResult aResult- Test result

SetValueL(TInt, const TDesC8 &, TInt)

IMPORT_C voidSetValueL(TIntaFieldId,
const TDesC8 &aFieldName,
TIntaValue
)[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 voidSetValueL(TIntaFieldId,
const TDesC8 &aFieldName,
const TDesC8 &aValue
)[protected]

Parameters

TInt aFieldId
const TDesC8 & aFieldName
const TDesC8 & aValue

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

IMPORT_C voidSetValueL(TIntaFieldId,
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.