Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <LOGVIEW.H>
Link against: logcli.lib

Class CLogViewRecent

class CLogViewRecent : public CLogView;

Description

A view on a recent event list.

Derivation

Members

Defined in CLogViewRecent:

Inherited from CActive:

Inherited from CBase:

Inherited from CLogActive:

Inherited from CLogView:


Construction and destruction


NewL(CLogClient &,TInt)

IMPORT_C static CLogViewRecent* NewL(CLogClient &aClient, TInt aPriority=CActive::EPriorityStandard);

Description

Parameters

CLogClient &aClient

TInt aPriority

Return value

CLogViewRecent *


NewL(CLogClient &,MLogViewChangeObserver &,TInt)

IMPORT_C static CLogViewRecent* NewL(CLogClient &aClient, MLogViewChangeObserver &aObserver, TInt aPriority=CActive::EPriorityStandard);

Description

Parameters

CLogClient &aClient

MLogViewChangeObserver &aObserver

TInt aPriority

Return value

CLogViewRecent *


~CLogViewRecent()

IMPORT_C ~CLogViewRecent();

Description

Frees resources owned by the object priot to its destruction.

[Top]


Member functions


SetRecentListL(TLogRecentList,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool SetRecentListL(TLogRecentList aList, TRequestStatus &aStatus);

Description

Initialises or refreshes the view for the specified recent event list. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event within the recent event list.

Parameters

TLogRecentList aList

The recent event list specifier. A value of KLogNullRecentList indicates that the view is to include events from all of the recent event lists.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully initialised or refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


SetRecentListL(TLogRecentList,const CLogFilter &,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool SetRecentListL(TLogRecentList aList, const CLogFilter &aFilter, TRequestStatus &aStatus);

Description

Initialises or refreshes the view for the specified recent event list, conforming to the specified filter. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event in the recent event list.

Parameters

TLogRecentList aList

The recent event list specifier. A value of KLogNullRecentList indicates that the view is to include events from all of the recent event lists.

const CLogFilter &aFilter

The filter.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully initialised or refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


SetRecentListL(TLogRecentList,const CLogFilterList &,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool SetRecentListL(TLogRecentList aList, const CLogFilterList &aFilterList, TRequestStatus &aStatus);

Description

Initialises or refreshes the view for the specified recent event list, conforming to the set of specified filters. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event in the recent event list.

Parameters

TLogRecentList aList

The recent event list specifier. A value of KLogNullRecentList indicates that the view is to include events from all of the recent event lists.

const CLogFilterList &aFilterList

The set of filters.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully initialised or refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


DuplicatesL(CLogViewDuplicate &,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool DuplicatesL(CLogViewDuplicate &aView, TRequestStatus &aStatus);

Description

Refreshes the specified duplicate event view with the duplicates of the current event in the recent event list view. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event within the view.

Parameters

CLogViewDuplicate &aView

The duplicates view to be refreshed.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


DuplicatesL(CLogViewDuplicate &,const CLogFilter &,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool DuplicatesL(CLogViewDuplicate &aView, const CLogFilter &aFilter, TRequestStatus &aStatus);

Description

Refreshes the specified duplicate event view with the duplicates of the current event in the recent event list view and conforming to the specified filter. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event within the view.

Parameters

CLogViewDuplicate &aView

The duplicates view to be refreshed.

const CLogFilter &aFilter

The filter.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


DuplicatesL(CLogViewDuplicate &,const CLogFilterList &,TRequestStatus &)

Capability: Security policy note: None required.

IMPORT_C TBool DuplicatesL(CLogViewDuplicate &aView, const CLogFilterList &aFilterList, TRequestStatus &aStatus);

Description

Refreshes the specified duplicate event view with the duplicates of the current event in the recent event list view and conforming to the set of specified filters. This is an asynchronous request.

On successful completion, the view is positioned at the first, i.e. most recent, event within the view.

Parameters

CLogViewDuplicate &aView

The duplicates view to be refreshed.

const CLogFilterList &aFilterList

The set of filters.

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


ClearDuplicatesL()

Capability: WriteDeviceData

IMPORT_C void ClearDuplicatesL();

Description


RemoveL(TLogId)

Capability: WriteDeviceData

IMPORT_C void RemoveL(TLogId aId);

Description

Removes the event with the specified unique event ID from the view. This does not delete the event from the main event log.

Parameters

TLogId aId

The unique event ID.


RemoveL(TRequestStatus &)

Capability: WriteDeviceData

IMPORT_C TBool RemoveL(TRequestStatus &aStatus);

Description

Removes the current event from its recent event list. This is an asynchronous request.

This does not delete the event from the main event log.

The function moves the current position in the view to the first, i.e. most recent, event.

Note that removing a recent event from a recent event list also removes all of its duplicates.

Parameters

TRequestStatus &aStatus

The request status. On request completion, contains:KErrNone, if the view has been successfully initialised or refreshed; otherwise, one of the other system wide error codes.

Return value

TBool

ETrue, if the function has successfully issued the asynchronous request. EFalse, if there are no events in the view.


RecentList()const

inline TLogRecentList RecentList() const;

Description

Gets the recent event list number that identifies the recent event list to which the current entry belongs. This is an asynchronous request.

Note that this function is only useful if KLogNullRecentList is passed to the CLogViewRecent::SetRecentListL(TLogRecentList,TRequestStatus &) functions.

Return value

TLogRecentList

The recent event list number.


DoRunL()

private: virtual void DoRunL();

Description