1 /* |
|
2 * Copyright (c) 2009-2010 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: Access class to Notify CenRep changed. |
|
15 * Interface : Private, CVmbxCenRepObserver |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef C_VMBXCENREPOBSERVER_H |
|
20 #define C_VMBXCENREPOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 // for remote number change |
|
26 #include <cenrepnotifyhandler.h> |
|
27 #include "mvmbxcenrepobserver.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CRepository; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CVmbxCenRepObserver declaration. |
|
37 * |
|
38 */ |
|
39 NONSHARABLE_CLASS( CVmbxCenRepObserver ) : public CBase, |
|
40 public MCenRepNotifyHandlerCallback |
|
41 { |
|
42 |
|
43 public: // Constructors and destructor |
|
44 |
|
45 /** |
|
46 * Two-phased constructor. |
|
47 * @param in aObserver observer notify the CenRep changed. |
|
48 * @return New instance of the object. Ownership transferred. |
|
49 */ |
|
50 static CVmbxCenRepObserver* NewL( MVmbxCenRepObserver& aObserver ); |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 * @param in aObserver observer notify the CenRep changed. |
|
55 * @return New instance of the object. Ownership transferred. |
|
56 */ |
|
57 static CVmbxCenRepObserver* NewLC( MVmbxCenRepObserver& aObserver ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CVmbxCenRepObserver(); |
|
63 |
|
64 |
|
65 private: // from base class MCenRepNotifyHandlerCallback |
|
66 |
|
67 /** |
|
68 * @see MCenRepNotifyHandlerCallback::HandleNotifyGeneric |
|
69 */ |
|
70 void HandleNotifyGeneric( TUint32 aId ); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 * @param in aObserver observer notify the CenRep changed. |
|
77 */ |
|
78 CVmbxCenRepObserver( MVmbxCenRepObserver& aObserver ); |
|
79 |
|
80 /** |
|
81 * By default Symbian 2nd phase constructor is private. |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 private: // data |
|
86 /** |
|
87 * Central repository session |
|
88 * Own. |
|
89 */ |
|
90 CRepository* iCRSession; |
|
91 |
|
92 /** |
|
93 * Central repository observer |
|
94 * Own. |
|
95 */ |
|
96 CCenRepNotifyHandler* iNotifyHandler; |
|
97 |
|
98 /** |
|
99 * Reference to MVmbxCenRepObserver |
|
100 * |
|
101 */ |
|
102 MVmbxCenRepObserver& iObserver; |
|
103 |
|
104 }; |
|
105 |
|
106 #endif // C_VMBXCENREPOBSERVER_H |
|
107 |
|