1 /* |
|
2 * Copyright (c) 2005-2006 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: Shortcut definition parser. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AISCUTREPOSITORYWATCHER_H |
|
20 #define AISCUTREPOSITORYWATCHER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <cenrepnotifyhandler.h> // For CCenRepNotifyHandler |
|
25 |
|
26 // CLASS DECLARATIONS |
|
27 |
|
28 class CAiScutRepositoryWatcher : public CBase, public MCenRepNotifyHandlerCallback |
|
29 { |
|
30 public: |
|
31 static CAiScutRepositoryWatcher* NewL( |
|
32 const TUid aUid, |
|
33 const TUint32 aKey, |
|
34 CCenRepNotifyHandler::TCenRepKeyType aKeyType, |
|
35 TCallBack aCallBack, |
|
36 CRepository* aRepository); |
|
37 |
|
38 static CAiScutRepositoryWatcher* NewL( |
|
39 const TUid aUid, |
|
40 TCallBack aCallBack, |
|
41 CRepository* aRepository); |
|
42 |
|
43 ~CAiScutRepositoryWatcher(); |
|
44 |
|
45 void StartListeningL(); |
|
46 |
|
47 void StopListening(); |
|
48 |
|
49 TUint32 ChangedKey(); |
|
50 |
|
51 public: // from MCenRepNotifyHandlerCallback |
|
52 void HandleNotifyInt (TUint32 aKey, TInt aNewValue); |
|
53 void HandleNotifyString (TUint32 aKey, const TDesC16& aNewValue); |
|
54 void HandleNotifyGeneric(TUint32 aKey); |
|
55 void HandleNotifyError (TUint32 aKey, TInt aError, CCenRepNotifyHandler* aHandler); |
|
56 |
|
57 private: |
|
58 CAiScutRepositoryWatcher( |
|
59 const TUid aUid, |
|
60 const TUint32 aKey, |
|
61 TCallBack aCallBack, |
|
62 CRepository* aRepository); |
|
63 |
|
64 void ConstructL(CCenRepNotifyHandler::TCenRepKeyType aKeyType); |
|
65 |
|
66 void ConstructL(); |
|
67 |
|
68 private: |
|
69 TUid iUid; |
|
70 TUint32 iKey; |
|
71 TUint32 iChangedKey; |
|
72 TCallBack iCallBack; |
|
73 CRepository* iRepository; |
|
74 CCenRepNotifyHandler* iNotifyHandler; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // AISCUTREPOSITORYWATCHER_H |
|
79 |
|
80 // End of File |
|