CLogView Class Reference

#include <logview.h>

Link against: logcli.lib

class CLogView : public CLogActive

Inherits from

Detailed Description

Navigates a view on the log database.

The class provides functions for navigating through a set of events and a function to retrieve the event at the current position within the view.

The class cannot be instantiated. Further classes are derived from this class to define and construct views on the log database.

The set of events in a view are always ordered so that the first event in a view is the most recent.

Member Attribute Documentation

iClient

CLogClient &iClient[protected]

iData

TDes8 *iData[protected]

iMaintain

CLogMaintainClientOp *iMaintain[protected]

iPackage

CLogPackage *iPackage[protected]

iSpare2

TAny *iSpare2[protected]

iValid

TBool iValid[protected]

iViewId

TLogViewId iViewId[protected]

iWindow

CLogViewWindow *iWindow[protected]

Constructor & Destructor Documentation

CLogView ( CLogClient &, TInt )

CLogView(CLogClient &aClient,
TIntaPriority = CActive::EPriorityStandard
)[protected]

~CLogView ( )

IMPORT_C~CLogView()

Frees all resources owned by this object prior to its destruction. In particular, any outstanding asynchronous request is cancelled.

Member Function Documentation

ConstructL ( TInt, MLogViewChangeObserver * )

voidConstructL(TIntaType,
MLogViewChangeObserver *aObserver = 0
)[protected]

CountL ( )

IMPORT_C TIntCountL()

Gets the number of events in the view.

Return Value
The number of events in the view.

DoCancel ( )

voidDoCancel()[protected, virtual]

Reimplemented from CLogActive::DoCancel()

Implements cancellation of an outstanding request.

This function is called as part of the active object's Cancel().

It must call the appropriate cancel function offered by the active object's asynchronous service provider. The asynchronous service provider's cancel is expected to act immediately.

DoCancel() must not wait for event completion; this is handled by Cancel().

See also: CActive::Cancel

Event ( )

const CLogEvent &Event()const [inline]

Returns details of the log event at the current position within the view.

Return Value
A reference to the log event details object. If a view does not contain any events, then the content of this object is undefined.

FirstL ( TRequestStatus & )

IMPORT_C TBoolFirstL(TRequestStatus &aStatus)

Moves the current position in the view to the first event. The first event is the most recent event.

This is an asynchronous request.

Parameters
aStatusThe request status. On request completion, contains:KErrNone, if the position in the view has been successfully moved; otherwise, one of the other system wide error codes.
Return Value
ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.

IsValid ( )

TBool IsValid()const [protected, inline]

LastL ( TRequestStatus & )

IMPORT_C TBoolLastL(TRequestStatus &aStatus)

Moves the current position in the view to the last event. The last event is the oldest event.

This is an asynchronous request.

Parameters
aStatusThe request status. On request completion, contains:KErrNone, if the position in the view has been successfully moved; otherwise, one of the other system wide error codes.
Return Value
ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.

LogViewRecordCount ( )

TInt LogViewRecordCount()const [protected]

NextL ( TRequestStatus & )

IMPORT_C TBoolNextL(TRequestStatus &aStatus)

Moves the current position in the view to the next event. The next event is always older than the current event, i.e. next implies movement in the first to last direction.

Parameters
aStatusThe request status. On request completion, contains:KErrNone, if the position in the view has been successfully moved; otherwise, one of the other system wide error codes.
Return Value
ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.

PreviousL ( TRequestStatus & )

IMPORT_C TBoolPreviousL(TRequestStatus &aStatus)

Moves the current position in the view to the previous event. The previous event is always more recent than the current event, i.e. previous implies movement in the last to first direction.

Parameters
aStatusThe request status. On request completion, contains:KErrNone, if the position in the view has been successfully moved; otherwise, one of the other system wide error codes.
Return Value
ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.

ReadEventFromWindowL ( )

voidReadEventFromWindowL()[protected]

ReawaitForChanges ( )

voidReawaitForChanges()[protected]

SetFlagsL ( TLogFlags )

IMPORT_C voidSetFlagsL(TLogFlagsaFlags)
Capability
NoteFor built-in event types, the required capability level is defined in the event type's write access policy.