#include <logview.h>
Link against: logcli.lib
class CLogView : public CLogActive |
Protected Attributes | |
---|---|
CLogClient & | iClient |
TDes8 * | iData |
CLogMaintainClientOp * | iMaintain |
CLogPackage * | iPackage |
TAny * | iSpare2 |
TBool | iValid |
TLogViewId | iViewId |
CLogViewWindow * | iWindow |
Public Member Functions | |
---|---|
~CLogView() | |
IMPORT_C TInt | CountL() |
const CLogEvent & | Event() |
IMPORT_C TBool | FirstL(TRequestStatus &) |
IMPORT_C TBool | LastL(TRequestStatus &) |
IMPORT_C TBool | NextL(TRequestStatus &) |
IMPORT_C TBool | PreviousL(TRequestStatus &) |
IMPORT_C void | SetFlagsL(TLogFlags) |
Protected Member Functions | |
---|---|
CLogView(CLogClient &, TInt) | |
void | ConstructL(TInt, MLogViewChangeObserver *) |
virtual void | DoCancel() |
TBool | IsValid() |
TInt | LogViewRecordCount() |
void | ReadEventFromWindowL() |
void | ReawaitForChanges() |
Inherited Attributes | |
---|---|
CActive::iStatus |
Inherited Enumerations | |
---|---|
CActive:TPriority |
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.
CLogClient & | iClient | [protected] |
TDes8 * | iData | [protected] |
CLogMaintainClientOp * | iMaintain | [protected] |
CLogPackage * | iPackage | [protected] |
TAny * | iSpare2 | [protected] |
TBool | iValid | [protected] |
TLogViewId | iViewId | [protected] |
CLogViewWindow * | iWindow | [protected] |
CLogView | ( | CLogClient & | aClient, |
TInt | aPriority = CActive::EPriorityStandard | ||
) | [protected] |
IMPORT_C | ~CLogView | ( | ) |
Frees all resources owned by this object prior to its destruction. In particular, any outstanding asynchronous request is cancelled.
void | ConstructL | ( | TInt | aType, |
MLogViewChangeObserver * | aObserver = 0 | |||
) | [protected] |
IMPORT_C TInt | CountL | ( | ) |
Gets the number of events in the view.
void | DoCancel | ( | ) | [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
const CLogEvent & | Event | ( | ) | const [inline] |
Returns details of the log event at the current position within the view.
IMPORT_C TBool | FirstL | ( | 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 | |
---|---|
aStatus | The 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. |
TBool | IsValid | ( | ) | const [protected, inline] |
IMPORT_C TBool | LastL | ( | 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 | |
---|---|
aStatus | The 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. |
TInt | LogViewRecordCount | ( | ) | const [protected] |
IMPORT_C TBool | NextL | ( | 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 | |
---|---|
aStatus | The 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. |
IMPORT_C TBool | PreviousL | ( | 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 | |
---|---|
aStatus | The 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. |
void | ReadEventFromWindowL | ( | ) | [protected] |
void | ReawaitForChanges | ( | ) | [protected] |
IMPORT_C void | SetFlagsL | ( | TLogFlags | aFlags | ) |
Capability | |
---|---|
Note | For built-in event types, the required capability level is defined in the event type's write access policy. |