class CLogBase : public CLogActive |
Base class for the log engine implementation.
This class defines the interface that client code uses to perform simple actions on the log database.
The class provides default implementations for the event handling functions. The Log Engine, i.e. an instance of CLogClient , is derived from this class and provides implementations for the event handling functions.
The class also deals with some aspects of resource file handling.
An instance of this class is constructed by the log wrapper, CLogWrapper , if the phone does not implement logging.
An instance of this class is never constructed by clients.
Public Member Functions | |
---|---|
CLogBase ( TInt ) | |
~CLogBase () | |
IMPORT_C void | AddEvent ( CLogEvent &, TRequestStatus &) |
IMPORT_C void | ChangeEvent (const CLogEvent &, TRequestStatus &) |
IMPORT_C void | DeleteEvent ( TLogId , TRequestStatus &) |
IMPORT_C void | GetEvent ( CLogEvent &, TRequestStatus &) |
IMPORT_C TInt | GetString ( TDes &, TInt ) |
Protected Member Functions | |
---|---|
IMPORT_C void | LoadResourcesL ( RFs &) |
const CResourceFile * | ResourceFile () |
Private Member Functions | |
---|---|
IMPORT_C void | CLogBase_Reserved1 () |
void | DoRunL () |
Inherited Enumerations | |
---|---|
CActive:TPriority |
Private Attributes | |
---|---|
TAny * | CLogBase_Reserved |
CResourceFile * | iResourceFile |
Inherited Attributes | |
---|---|
CActive::iStatus |
IMPORT_C | CLogBase | ( | TInt | aPriority | ) |
Sets the priority of this active object.
TInt aPriority | The priority of this active object. |
IMPORT_C | ~CLogBase | ( | ) |
Fees all resources owned by the object prior to its destruction. In particular it closes the resource file reader.
IMPORT_C void | AddEvent | ( | CLogEvent & | aEvent, |
TRequestStatus & | aStatus | |||
) | [virtual] |
Adds an event to the log database. This is an asynchronous request.
This function is overridden by log engine implementations.
CLogEvent & aEvent | A reference to a log event detail object. This value is not used. |
TRequestStatus & aStatus | The request status. On completion of the asynchronous request, it always contains KErrNotSupported. |
IMPORT_C void | ChangeEvent | ( | const CLogEvent & | aEvent, |
TRequestStatus & | aStatus | |||
) | [virtual] |
Changes the details of an existing event. This is an asynchronous request.
This function is overridden by log engine implementations.
const CLogEvent & aEvent | A reference to a log event detail object. This value is not used. |
TRequestStatus & aStatus | The request status. On completion of the asynchronous request, it always contains KErrNotSupported. |
IMPORT_C void | DeleteEvent | ( | TLogId | aId, |
TRequestStatus & | aStatus | |||
) | [virtual] |
Deletes an event from the log. This is an asynchronous request.
This function is overridden by log engine implementations.
TLogId aId | The unique event ID of the event to be deleted. This value is not used. |
TRequestStatus & aStatus | The request status. On completion of the asynchronous request, it always contains KErrNotSupported.. |
IMPORT_C void | GetEvent | ( | CLogEvent & | aEvent, |
TRequestStatus & | aStatus | |||
) | [virtual] |
Gets the details of an existing event. This is an asynchronous request.
This function is overridden by log engine implementations.
CLogEvent & aEvent | A reference to a log event detail object. This value is not used. |
TRequestStatus & aStatus | The request status. On completion of the asynchronous request, it always contains KErrNotSupported. |
IMPORT_C TInt | GetString | ( | TDes & | aString, |
TInt | aId | |||
) | const [virtual] |
Gets a standard string from the logwrap.dll resource file.
This function is overridden by log engine implementations.
RResourceFile
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.