|
1 /* |
|
2 * Copyright (c) 2009 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: Listening the events in Central Repository. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROENGCENREPOBSERVERBASE_H |
|
21 #define CPROENGCENREPOBSERVERBASE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CProEngObserverBase.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CRepository; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * The base class for listening to events in Central Repository. This is |
|
33 * a helper class for CProEngNotifyHandlerImpl. |
|
34 * |
|
35 * @lib ProfileEngine.lib |
|
36 * @since 3.1 |
|
37 */ |
|
38 NONSHARABLE_CLASS( CProEngCenRepObserverBase ) : public CProEngObserverBase |
|
39 { |
|
40 protected: // constructor and destructor |
|
41 |
|
42 CProEngCenRepObserverBase( TUint32 aPartialCenRepKey, |
|
43 TUint32 aKeyMask ); |
|
44 |
|
45 virtual ~CProEngCenRepObserverBase(); |
|
46 |
|
47 virtual void ConstructL(); |
|
48 |
|
49 public: // Functions from base classes |
|
50 |
|
51 /** |
|
52 * From CProEngObserverBase. |
|
53 */ |
|
54 TInt RequestNotification(); |
|
55 |
|
56 /** |
|
57 * From CActive. |
|
58 */ |
|
59 void DoCancel(); |
|
60 |
|
61 protected: // Data: |
|
62 |
|
63 // The mask to request notifications about several keys from CenRep |
|
64 TUint32 iKeyMask; |
|
65 |
|
66 // Own: Profiles Engine Central Repository |
|
67 CRepository* iRepository; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // CPROENGCENREPOBSERVERBASE_H |
|
72 |
|
73 // End of File |
|
74 |