|
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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __LOGSERVDATABASECHANGEINTERFACE_H__ |
|
17 #define __LOGSERVDATABASECHANGEINTERFACE_H__ |
|
18 |
|
19 #include "LogServDatabaseChangeObserver.h" |
|
20 #include "LogChangeDefinition.h" |
|
21 |
|
22 |
|
23 ///////////////////////////////////////////////////////////////////////////////////////// |
|
24 // -----> MLogServDatabaseChangeInterface (header) |
|
25 ///////////////////////////////////////////////////////////////////////////////////////// |
|
26 /** |
|
27 @internalComponent |
|
28 */ |
|
29 class MLogServDatabaseChangeInterface |
|
30 { |
|
31 ///////////////////////////////////////////////////////////////////////////////////////// |
|
32 public: // ENUMERATIONS |
|
33 ///////////////////////////////////////////////////////////////////////////////////////// |
|
34 |
|
35 ///////////////////////////////////////////////////////////////////////////////////////// |
|
36 public: // FROM MLogServDatabaseChangeInterface |
|
37 ///////////////////////////////////////////////////////////////////////////////////////// |
|
38 |
|
39 /** |
|
40 * Submit some contextual information to the change interface so that it can |
|
41 * intelligently notify observers about a batch of updates |
|
42 */ |
|
43 virtual void DCISubmitChangedEventContextL(TLogDatabaseChangeType aType, TLogId aEventId) = 0; |
|
44 |
|
45 /** |
|
46 * Submit some global information about a change. This isn't specific to an event |
|
47 * but may include changes such as 'a backup is starting/ending' or 'the log |
|
48 * has been cleared' etc. |
|
49 */ |
|
50 virtual void DCISubmitGlobalChangeContextL(TUid aChangeType, TInt aContextParam1 = 0, TInt aContextParam2 = 0, TInt aContextParam3 = 0) = 0; |
|
51 |
|
52 ///////////////////////////////////////////////////////////////////////////////////////// |
|
53 public: // FROM MLogServDatabaseChangeInterface |
|
54 ///////////////////////////////////////////////////////////////////////////////////////// |
|
55 |
|
56 /** |
|
57 * Request change notifications |
|
58 */ |
|
59 virtual void DCIRequestChangeNotificationsL(MLogServDatabaseChangeObserver& aObserver) = 0; |
|
60 |
|
61 /** |
|
62 * Cancel change notification request |
|
63 */ |
|
64 virtual void DCIRequestChangeNotificationsCancel(MLogServDatabaseChangeObserver& aObserver) = 0; |
|
65 }; |
|
66 |
|
67 |
|
68 #endif |