class CLogWrapper : public CBase |
The log wrapper.
As some UI variants do not use a Log Engine, the log wrapper provides a consistent interface to clients that need to work, without being changed, with multiple UI variants.
The log wrapper is provided in its own DLL, the logwrap.dll.
If a Log Engine is not installed on a phone, the log wrapper creates an instance of the CLogBase class, whose event handling requests complete with KErrNotSupported and whose functions return KErrNotSupported.
If a Log Engine is installed on a phone, the log wrapper creates an instance of the CLogClient class, provided in a separate DLL, the logcli.dll . The CLogClient class derives from CLogBase and provides implementations for the event handling requests and functions.
Public Member Functions | |
---|---|
~CLogWrapper() | |
IMPORT_C TBool | ClientAvailable() |
CLogBase & | Log() |
IMPORT_C CLogWrapper * | NewL(RFs &, TInt) |
Private Member Functions | |
---|---|
CLogWrapper() | |
void | ConstructL(RFs &, TInt) |
Private Attributes | |
---|---|
CLogBase * | iBase |
IMPORT_C | ~CLogWrapper | ( | ) |
Frees all resources owned by the log wrapper prior to its destruction. Specifically, it deletes the Log Engine (or the instance of the Log Engine base class, if the UI variant does not have a Log Engine installed).
IMPORT_C TBool | ClientAvailable | ( | ) | const |
Determines whether the Log Engine is installed.
IMPORT_C CLogWrapper * | NewL | ( | RFs & | aFs, |
TInt | aPriority = CActive::EPriorityStandard | |||
) | [static] |
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.