|
||
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.
CBase
-
Base class for all classes to be instantiated on the heap.
CActive
-
The core class of the active object abstraction.
CLogActive
- Common active object behaviour.
CLogBase
- Base class for the log engine implementation.
Defined in CLogBase
:
AddEvent(CLogEvent &,TRequestStatus &)
Adds an event to the log database. This is an asynchronous request.CLogBase(TInt)
Sets the priority of this active object.CLogBase_Reserved1()
ChangeEvent(const CLogEvent &,TRequestStatus &)
Changes the details of an existing event. This is an asynchronous request.DeleteEvent(TLogId,TRequestStatus &)
Deletes an event from the log. This is an asynchronous request.DoRunL()
GetEvent(CLogEvent &,TRequestStatus &)
Gets the details of an existing event. This is an asynchronous request.GetString(TDes &,TInt)const
Gets a standard string from the logwrap.dll resource file.LoadResourcesL(RFs &)
ResourceFile()const
~CLogBase()
Fees all resources owned by the object prior to its destruction. In particular i...Inherited from CActive
:
CActive(TInt)
Constructs the active object with the specified priority.Cancel()
Cancels the wait for completion of an outstanding request.Deque()
Removes the active object from the active scheduler's list of active objects.EPriorityHigh
A priority higher than EPriorityUserInput.EPriorityIdle
A low priority, useful for active objects representing background processing.EPriorityLow
A priority higher than EPriorityIdle but lower than EPriorityStandard.EPriorityStandard
Most active objects will have this priority.EPriorityUserInput
A priority higher than EPriorityStandard; useful for active objects handling use...Extension_(TUint,TAny *&,TAny *)
Extension function IsActive()const
Determines whether the active object has a request outstanding.IsAdded()const
Determines whether the active object has been added to the active scheduler's li...Priority()const
Gets the priority of the active object.RunError(TInt)
Handles a leave occurring in the request completion event handler CActive::RunL(...RunL()
Handles an active object's request completion event.SetActive()
Indicates that the active object has issued a request and that it is now outstan...SetPriority(TInt)
Sets the priority of the active object.TPriority
Defines standard priorities for active objects. iStatus
The request status associated with an asynchronous request.Inherited from CBase
:
Delete(CBase *)
Deletes the specified object.operator new(TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TAny *)
Initialises the object to binary zeroes.operator new(TUint,TLeave)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TLeave,TUint)
Allocates the object from the heap and then initialises its contents to binary z...operator new(TUint,TUint)
Allocates the object from the heap and then initialises its contents to binary z...Inherited from CLogActive
:
CLogActive(TInt)
Complete(TInt)
DoCancel()
Implements cancellation of an outstanding request.Queue(TRequestStatus &)
CLogClient
Log Engine implementation.CLogWrapper
The log wrapper.IMPORT_C CLogBase(TInt aPriority);
Sets 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.
Capability: | Security policy note: | For built-in event types, the required capability level is defined in the event type's read access policy. |
IMPORT_C virtual void GetEvent(CLogEvent &aEvent, TRequestStatus &aStatus);
Gets the details of an existing event. This is an asynchronous request.
This function is overridden by log engine implementations.
|
Capability: | Security policy note: | For built-in event types, the required capability level is defined in the event type's write access policy. |
IMPORT_C virtual void AddEvent(CLogEvent &aEvent, TRequestStatus &aStatus);
Adds an event to the log database. This is an asynchronous request.
This function is overridden by log engine implementations.
|
Capability: | Security policy note: | For built-in event types, the required capability level is defined in the event type's write access policy. |
IMPORT_C virtual void ChangeEvent(const CLogEvent &aEvent, TRequestStatus &aStatus);
Changes the details of an existing event. This is an asynchronous request.
This function is overridden by log engine implementations.
|
Capability: | Security policy note: | For built-in event types, the required capability level is defined in the event type's write access policy. |
IMPORT_C virtual void DeleteEvent(TLogId aId, TRequestStatus &aStatus);
Deletes an event from the log. This is an asynchronous request.
This function is overridden by log engine implementations.
|
IMPORT_C virtual TInt GetString(TDes &aString, TInt aId) const;
Gets a standard string from the logwrap.dll resource file.
This function is overridden by log engine implementations.
|
|
RResourceFile
Accesses a resource file and reads the resource data into a buffer.protected: inline const CResourceFile* ResourceFile() const;
|
private: IMPORT_C virtual void CLogBase_Reserved1();