CDiagResultDetailBasic Class Reference
class CDiagResultDetailBasic : public CBase |
Diagnostics Result Database Detail class.
This class provides implementation of MDiagResultDetail with commonly used methods.
Constructor & Destructor Documentation
CDiagResultDetailBasic(CDiagResultsDatabaseItem::TResult)
~CDiagResultDetailBasic()
IMPORT_C | ~CDiagResultDetailBasic | ( | ) | [virtual] |
Member Functions Documentation
BaseConstructL(RReadStream &)
IMPORT_C void | BaseConstructL | ( | RReadStream & | aReadStream | ) | [protected] |
BaseConstructL(const CBufFlat &)
IMPORT_C void | BaseConstructL | ( | const CBufFlat & | aBuffer | ) | [protected] |
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 &)
ExternalizeToBufferL()
IMPORT_C CBufFlat * | ExternalizeToBufferL | ( | ) | const |
FindItem(TInt)
TInt
| FindItem | ( | TInt | aFieldId | ) | const [private] |
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, TPtrC16 &)
InternalizeL(RReadStream &)
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 *)
Insert a new item. This function will delete the old item if item with same field id already existsed.
SetResult(CDiagResultsDatabaseItem::TResult)
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] |
SetValueL(TInt, const TDesC8 &, const TDesC16 &)
IMPORT_C void | SetValueL | ( | TInt | aFieldId, |
| const TDesC8 & | aFieldName, |
| const TDesC16 & | aValue |
| ) | [protected] |
Member Data Documentation
RPointerArray< CDiagResultDetailBasicItem > iFields
List of fields it contains. All items are owned by this class.
CDiagResultsDatabaseItem::TResult
iResult
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.