CLogViewRecent Class Reference

class CLogViewRecent : public CLogView

A view on a recent event list.

Inherits from

Public Member Functions
~CLogViewRecent ()
IMPORT_C void ClearDuplicatesL ()
IMPORT_C TBool DuplicatesL ( CLogViewDuplicate &, TRequestStatus &)
IMPORT_C TBool DuplicatesL ( CLogViewDuplicate &, const CLogFilter &, TRequestStatus &)
IMPORT_C TBool DuplicatesL ( CLogViewDuplicate &, const CLogFilterList &, TRequestStatus &)
IMPORT_C CLogViewRecent * NewL ( CLogClient &, TInt )
IMPORT_C CLogViewRecent * NewL ( CLogClient &, MLogViewChangeObserver &, TInt )
TLogRecentList RecentList ()
IMPORT_C void RemoveL ( TLogId )
IMPORT_C TBool RemoveL ( TRequestStatus &)
IMPORT_C TBool SetRecentListL ( TLogRecentList , TRequestStatus &)
IMPORT_C TBool SetRecentListL ( TLogRecentList , const CLogFilter &, TRequestStatus &)
IMPORT_C TBool SetRecentListL ( TLogRecentList , const CLogFilterList &, TRequestStatus &)
Private Member Functions
CLogViewRecent ( CLogClient &, TInt )
void ConstructL ( MLogViewChangeObserver *)
TBool DoRemoveL ( TRequestStatus &)
void DoRunL ()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CLogActive::CLogActive(TInt)
CLogActive::Complete(TInt)
CLogActive::Queue(TRequestStatus &)
CLogActive::~CLogActive()
CLogView::CLogView(CLogClient &,TInt)
CLogView::ConstructL(TInt,MLogViewChangeObserver *)
CLogView::CountL()
CLogView::DoCancel()
CLogView::Event()const
CLogView::FirstL(TRequestStatus &)
CLogView::IsValid()const
CLogView::LastL(TRequestStatus &)
CLogView::LogViewRecordCount()const
CLogView::NextL(TRequestStatus &)
CLogView::PreviousL(TRequestStatus &)
CLogView::ReadEventFromWindowL()
CLogView::ReawaitForChanges()
CLogView::SetFlagsL(TLogFlags)
CLogView::~CLogView()
Inherited Enumerations
CActive:TPriority
Private Attributes
TLogRecentList iCurrentList
TPckgBuf < TLogRecentList > iCurrentListBuf
TLogRecentList iRecentList
CLogViewRemoveEventClientOp * iRemove
Inherited Attributes
CActive::iStatus
CLogView::iClient
CLogView::iData
CLogView::iMaintain
CLogView::iPackage
CLogView::iSpare2
CLogView::iValid
CLogView::iViewId
CLogView::iWindow

Constructor & Destructor Documentation

CLogViewRecent(CLogClient &, TInt)

CLogViewRecent ( CLogClient & aClient,
TInt aPriority
) [private]

Parameters

CLogClient & aClient
TInt aPriority

~CLogViewRecent()

IMPORT_C ~CLogViewRecent ( )

Frees resources owned by the object priot to its destruction.

Member Functions Documentation

ClearDuplicatesL()

IMPORT_C void ClearDuplicatesL ( )
capability
WriteDeviceData

ConstructL(MLogViewChangeObserver *)

void ConstructL ( MLogViewChangeObserver * aObserver = NULL ) [private]

Parameters

MLogViewChangeObserver * aObserver = NULL

DoRemoveL(TRequestStatus &)

TBool DoRemoveL ( TRequestStatus & aStatus ) [private]

Parameters

TRequestStatus & aStatus

DoRunL()

void DoRunL ( ) [private, virtual]

DuplicatesL(CLogViewDuplicate &, TRequestStatus &)

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

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.

capability
Note None required.

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.

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

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

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.

capability
Note None required.

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.

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

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

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.

capability
Note None required.

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.

NewL(CLogClient &, TInt)

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

Parameters

CLogClient & aClient
TInt aPriority = CActive::EPriorityStandard

NewL(CLogClient &, MLogViewChangeObserver &, TInt)

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

Parameters

CLogClient & aClient
MLogViewChangeObserver & aObserver
TInt aPriority = CActive::EPriorityStandard

RecentList()

TLogRecentList RecentList ( ) const [inline]

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 SetRecentListL() functions.

RemoveL(TLogId)

IMPORT_C void RemoveL ( TLogId aId )

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

capability
WriteDeviceData

Parameters

TLogId aId The unique event ID.

RemoveL(TRequestStatus &)

IMPORT_C TBool RemoveL ( TRequestStatus & aStatus )

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.

capability
WriteDeviceData

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.

SetRecentListL(TLogRecentList, TRequestStatus &)

IMPORT_C TBool SetRecentListL ( TLogRecentList aList,
TRequestStatus & aStatus
)

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.

capability
Note None required.

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.

SetRecentListL(TLogRecentList, const CLogFilter &, TRequestStatus &)

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

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.

capability
Note None required.

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.

SetRecentListL(TLogRecentList, const CLogFilterList &, TRequestStatus &)

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

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.

capability
Note None required.

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.

Member Data Documentation

TLogRecentList iCurrentList

TLogRecentList iCurrentList [private]

TPckgBuf< TLogRecentList > iCurrentListBuf

TPckgBuf < TLogRecentList > iCurrentListBuf [private]

TLogRecentList iRecentList

TLogRecentList iRecentList [private]

CLogViewRemoveEventClientOp * iRemove

CLogViewRemoveEventClientOp * iRemove [private]