|
||
class CLogView : public CLogActive;
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.
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.
CLogView
- Navigates a view on the log database.
Defined in CLogView
:
CountL()
Gets the number of events in the view.DoCancel()
Implements cancellation of an outstanding request.DoRunL()
Event()const
Returns details of the log event at the current position within the view.FirstL(TRequestStatus &)
Moves the current position in the view to the first event. The first event is th...IsValid()const
LastL(TRequestStatus &)
Moves the current position in the view to the last event. The last event is the ...NextL(TRequestStatus &)
Moves the current position in the view to the next event. The next event is alwa...PreviousL(TRequestStatus &)
Moves the current position in the view to the previous event. The previous event...SetFlagsL(TLogFlags)
iClient
iData
iMaintain
iPackage
iSpare2
iValid
iViewId
iWindow
~CLogView()
Frees all resources owned by this object prior to its destruction. In particular...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
:
IMPORT_C ~CLogView();
Frees all resources owned by this object prior to its destruction. In particular, any outstanding asynchronous request is cancelled.
inline const CLogEvent& Event() const;
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.
|
|
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.
|
|
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.
|
|
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.
|
|
IMPORT_C TInt CountL();
Gets the number of events in the view.
|
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 void SetFlagsL(TLogFlags aFlags);
|
protected: virtual void DoCancel();
Implements cancellation of an outstanding request.
This function is called as part of the active object's CActive::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.
CLogView::DoCancel()
must not wait for event completion; this is handled by CActive::Cancel()
.
CActive::Cancel()
Cancels the wait for completion of an outstanding request.protected: CLogViewWindow * iWindow;