sl@0
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __LOGCLIENTCHANGEOBSERVER_H__
|
sl@0
|
17 |
#define __LOGCLIENTCHANGEOBSERVER_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
// System includes
|
sl@0
|
20 |
#include <logwrap.h>
|
sl@0
|
21 |
|
sl@0
|
22 |
/**
|
sl@0
|
23 |
Constants
|
sl@0
|
24 |
@publishedAll
|
sl@0
|
25 |
*/
|
sl@0
|
26 |
const TUid KLogClientChangeEventLogCleared = { 0x101F8C4F };
|
sl@0
|
27 |
const TUid KLogClientChangeEventRefreshView = { 0x1020601B };
|
sl@0
|
28 |
|
sl@0
|
29 |
/**
|
sl@0
|
30 |
This class allows a client of the log engine to observe specific change
|
sl@0
|
31 |
events within a given view.
|
sl@0
|
32 |
@publishedAll
|
sl@0
|
33 |
@released
|
sl@0
|
34 |
*/
|
sl@0
|
35 |
class MLogClientChangeObserver
|
sl@0
|
36 |
{
|
sl@0
|
37 |
public:
|
sl@0
|
38 |
/** Handle a global change within the logs database
|
sl@0
|
39 |
|
sl@0
|
40 |
This method is called when a generic event occurs within the log database.
|
sl@0
|
41 |
Such events are not specific to a view (see MLogViewChangeObserver for view
|
sl@0
|
42 |
specific events).
|
sl@0
|
43 |
|
sl@0
|
44 |
@param aChangeType The uid corresponding to the type of event which
|
sl@0
|
45 |
occurred.
|
sl@0
|
46 |
@param aChangeParam1 A context-specific change paramater which can be
|
sl@0
|
47 |
interpreted based on the change type.
|
sl@0
|
48 |
@param aChangeParam2 A context-specific change paramater which can be
|
sl@0
|
49 |
interpreted based on the change type.
|
sl@0
|
50 |
@param aChangeParam3 A context-specific change paramater which can be
|
sl@0
|
51 |
interpreted based on the change type.
|
sl@0
|
52 |
|
sl@0
|
53 |
A list of change types and their associated parameters follows:
|
sl@0
|
54 |
|
sl@0
|
55 |
KLogClientChangeEventLogCleared - no parameters. This event occurs when
|
sl@0
|
56 |
the log database is cleared.
|
sl@0
|
57 |
KLogClientChangeEventRefreshView - no parameters. This event occurs when
|
sl@0
|
58 |
the client needs to refresh their view. For example, this occurs after the
|
sl@0
|
59 |
log database has been restored from a backup. */
|
sl@0
|
60 |
virtual void HandleLogClientChangeEventL(TUid aChangeType, TInt aChangeParam1, TInt aChangeParam2, TInt aChangeParam3) = 0;
|
sl@0
|
61 |
|
sl@0
|
62 |
private:
|
sl@0
|
63 |
IMPORT_C virtual void MLogClientChangeObserver_Reserved1();
|
sl@0
|
64 |
IMPORT_C virtual void MLogClientChangeObserver_Reserved2();
|
sl@0
|
65 |
};
|
sl@0
|
66 |
|
sl@0
|
67 |
|
sl@0
|
68 |
#endif
|