|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Defines class CMNcnCRRepositoryHandlerCallback. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef NCNCRREPOSITORYHANDLERCALLBACK_H |
|
21 #define NCNCRREPOSITORYHANDLERCALLBACK_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CRepository; |
|
28 class CCenRepNotifyHandler; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Callback interface for repository specific key changes. |
|
34 */ |
|
35 class MNcnCRRepositoryHandlerCallback |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Repository specific integer value notification callback. |
|
40 * @param aRepository The repository. |
|
41 * @param aId Id of the key that has changed. |
|
42 * @param aNewValue The new value of the key. |
|
43 */ |
|
44 virtual void HandleRepositoryNotifyInt( |
|
45 CRepository& aRepository, |
|
46 TUint32 aId, |
|
47 TInt aNewValue ); |
|
48 |
|
49 /** |
|
50 * Repository specific real value notification callback. |
|
51 * @param aRepository The repository. |
|
52 * @param aId Id of the key that has changed. |
|
53 * @param aNewValue The new value of the key. |
|
54 */ |
|
55 virtual void HandleRepositoryNotifyReal( |
|
56 CRepository& aRepository, |
|
57 TUint32 aId, |
|
58 TReal aNewValue ); |
|
59 |
|
60 |
|
61 /** |
|
62 * Repository specific string value notification callback. |
|
63 * @param aRepository The repository. |
|
64 * @param aId Id of the key that has changed. |
|
65 * @param aNewValue The new value of the key. |
|
66 */ |
|
67 virtual void HandleRepositoryNotifyString( |
|
68 CRepository& aRepository, |
|
69 TUint32 aId, |
|
70 const TDesC16& aNewValue ); |
|
71 |
|
72 /** |
|
73 * Repository specific binary value notification callback. |
|
74 * @param aRepository The repository. |
|
75 * @param aId Id of the key that has changed. |
|
76 * @param aNewValue The new value of the key. |
|
77 */ |
|
78 virtual void HandleRepositoryNotifyBinary( |
|
79 CRepository& aRepository, |
|
80 TUint32 aId, |
|
81 const TDesC8& aNewValue ); |
|
82 |
|
83 /** |
|
84 * Repository specific generic value notification callback. |
|
85 * @param aRepository The repository. |
|
86 * @param aId Id of the key that has changed. |
|
87 */ |
|
88 virtual void HandleRepositoryNotifyGeneric( |
|
89 CRepository& aRepository, |
|
90 TUint32 aId ); |
|
91 |
|
92 /** |
|
93 * Repository specific callback method for error notifications. |
|
94 * @param aRepository The repository. |
|
95 * @param aId Id of the key that has changed. |
|
96 * @param aError Error code. |
|
97 * @param aHandler Pointer to the handler instance. |
|
98 */ |
|
99 virtual void HandleRepositoryNotifyError( |
|
100 CRepository& aRepository, |
|
101 TUint32 aId, |
|
102 TInt aError, |
|
103 CCenRepNotifyHandler* aHandler ); |
|
104 }; |
|
105 |
|
106 #endif // NCNCRREPOSITORYHANDLERCALLBACK_H |
|
107 |
|
108 // End of File |