1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __LOGVIEWCHANGEOBSERVER_H__
17 #define __LOGVIEWCHANGEOBSERVER_H__
23 This class allows a client of the log engine to observe specific change events within
28 class MLogViewChangeObserver
32 /**Handle a change corresponding to a view addition
34 This method is called when a log event is added to a view. The event maybe
35 recently added, or have existed for some time but only now meet the
36 criteria of this view (i.e satisfy the filter) due to some other change.
38 @param aId The id of the log event which has been added to the view.
39 @param aViewIndex The position within the view at which the event has been
41 @param aChangeIndex In a series of changes, this is the index of the
42 currently processing change. The change index will be greater than (or
43 equal to) 0, and less than the total change count.
44 @param aTotalChangeCount This is the total count of all changes which will
45 be processed in this batch.
47 virtual void HandleLogViewChangeEventAddedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount) = 0;
49 /** Handle a change corresponding to a view change
51 This method is called when a log event changes within a view.
53 @param aId The id of the log event which has changed within the view.
54 @param aViewIndex The position within the view where the change occurred.
55 @param aChangeIndex In a series of changes, this is the index of the
56 currently processing change. The change index will be greater than (or
57 equal to) 0, and less than the total change count.
58 @param aTotalChangeCount This is the total count of all changes which will
59 be processed in this batch.
61 virtual void HandleLogViewChangeEventChangedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount) = 0;
63 /** Handle a change corresponding to a view deletion
65 This method is called when a log event is removed from a view.
67 @param aId The id of the log event which has been removed from the view
68 @param aViewIndex The position within the view which the event previously
70 @param aChangeIndex In a series of changes, this is the index of the
71 currently processing change. The change index will be greater than (or
72 equal to) 0, and less than the total change count.
73 @param aTotalChangeCount This is the total count of all changes which
74 will be processed in this batch
76 virtual void HandleLogViewChangeEventDeletedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount) = 0;