|
1 /* |
|
2 * Copyright (c) 2002-2005 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: Interface of project pen input plugin utils |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef C_CHINESE_FIND_COMMON_H |
|
27 #define C_CHINESE_FIND_COMMON_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <w32std.h> |
|
31 #include <e32base.h> |
|
32 #include <CenRepNotifyHandler.h> |
|
33 |
|
34 // FORWARD DECLARATION |
|
35 class CRepository; |
|
36 |
|
37 |
|
38 class CFindRepositoryWatcher : public CBase, public MCenRepNotifyHandlerCallback |
|
39 { |
|
40 public: |
|
41 static CFindRepositoryWatcher* NewL( |
|
42 const TUid aUid, |
|
43 const TUint32 aKey, |
|
44 CCenRepNotifyHandler::TCenRepKeyType aKeyType, |
|
45 TCallBack aCallBack, |
|
46 CRepository* aRepository); |
|
47 |
|
48 static CFindRepositoryWatcher* NewL( |
|
49 const TUid aUid, |
|
50 TCallBack aCallBack, |
|
51 CRepository* aRepository); |
|
52 |
|
53 ~CFindRepositoryWatcher(); |
|
54 |
|
55 TUint32 ChangedKey(); |
|
56 |
|
57 public: // from MCenRepNotifyHandlerCallback |
|
58 void HandleNotifyInt (TUint32 aKey, TInt aNewValue); |
|
59 void HandleNotifyError (TUint32 aKey, TInt aError, CCenRepNotifyHandler* aHandler); |
|
60 void HandleNotifyGeneric(TUint32 aId); |
|
61 |
|
62 private: |
|
63 CFindRepositoryWatcher( |
|
64 const TUid aUid, |
|
65 const TUint32 aKey, |
|
66 TCallBack aCallBack, |
|
67 CRepository* aRepository); |
|
68 |
|
69 void ConstructL(CCenRepNotifyHandler::TCenRepKeyType aKeyType); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 private: |
|
74 TUid iUid; |
|
75 TUint32 iKey; |
|
76 TUint32 iChangedKey; |
|
77 TCallBack iCallBack; |
|
78 CRepository* iRepository; |
|
79 CCenRepNotifyHandler* iNotifyHandler; |
|
80 |
|
81 }; |
|
82 |
|
83 #endif // C_CHINESE_FIND_COMMON_H |
|
84 |
|
85 // End Of File |