CDiagResultDetailBasicItem Class Reference

class CDiagResultDetailBasicItem : public CBase

Diagnostics Result Database Detail Item Classe.

This class stores information needed for each entry in CDiagResultDetailBasic.

Since
S60 v5.0

Inherits from

  • CDiagResultDetailBasicItem

Nested Classes and Structures

Constructor & Destructor Documentation

CDiagResultDetailBasicItem()

CDiagResultDetailBasicItem()[private]

Constructor

~CDiagResultDetailBasicItem()

~CDiagResultDetailBasicItem()

Destructor

Member Functions Documentation

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aWriteStream)const

Externalize to a stream.

Parameters

RWriteStream & aWriteStream

FieldId()

TInt FieldId()const

Get the field Id.

FieldName()

const TDesC8 &FieldName()const

Get the name of the field.

GetValue(TInt &)

TInt GetValue(TInt &aValue)const

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

Parameters

TInt & aValue- Output paramater. The data will be stored here.

GetValue(TPtrC8 &)

TInt GetValue(TPtrC8 &aValue)const

Parameters

TPtrC8 & aValue

GetValue(TPtrC16 &)

TInt GetValue(TPtrC16 &aValue)const

Parameters

TPtrC16 & aValue

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aReadStream)[private]

Internalize from stream.

Parameters

RReadStream & aReadStream- stream to read from.

NewL(TInt, const TDesC8 &, TInt)

CDiagResultDetailBasicItem *NewL(TIntaFieldId,
const TDesC8 &aFieldName,
TIntaValue
)[static]

Two-phase constructor.

Parameters

TInt aFieldId- Field Id.
const TDesC8 & aFieldName- Textual description of the field.
TInt aValue- TInt value.

NewL(TInt, const TDesC8 &, const TDesC8 &)

CDiagResultDetailBasicItem *NewL(TIntaFieldId,
const TDesC8 &aFieldName,
const TDesC8 &aValue
)[static]

Two-phase constructor.

Parameters

TInt aFieldId- Field Id.
const TDesC8 & aFieldName- Textual description of the field.
const TDesC8 & aValue- TDesC8 Text value.

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

CDiagResultDetailBasicItem *NewL(TIntaFieldId,
const TDesC8 &aFieldName,
const TDesC16 &aValue
)[static]

Two-phase constructor.

Parameters

TInt aFieldId- Field Id
const TDesC8 & aFieldName- Textual description of the field.
const TDesC16 & aValue- TDesC16 Text value.

NewL(RReadStream &)

CDiagResultDetailBasicItem *NewL(RReadStream &aReadStream)[static]

Two-phase constructor with RReadStream

Parameters

RReadStream & aReadStream- stream to internalize from

Type()

TFieldType Type()const

Get the type of the field.

Member Enumerations Documentation

Enum TFieldType

Enumerators

ETypeInt = 0
ETypeDes16
ETypeDes8

Member Data Documentation

TInt iFieldId

TInt iFieldId[private]

HBufC8 * iFieldName

HBufC8 *iFieldName[private]

TFieldType iFieldType

TFieldType iFieldType[private]

TValue iValue

TValue iValue[private]