|
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: This class implements MProEngNotifyHandler interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROENGNOTIFYHANDLERIMPL_H |
|
21 #define CPROENGNOTIFYHANDLERIMPL_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <MProEngNotifyHandler.h> |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CProEngProfileActivationDelegate; |
|
29 class CProEngActiveProfileDelegate; |
|
30 class CProEngProfileNameArrayEventDelegate; |
|
31 class CProEngProfileEventDelegate; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * This class implements MProEngNotifyHandler interface. |
|
37 * |
|
38 * @lib ProfileEngine.lib |
|
39 * @since 3.1 |
|
40 */ |
|
41 NONSHARABLE_CLASS( CProEngNotifyHandlerImpl ) : public CBase, |
|
42 public MProEngNotifyHandler |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CProEngNotifyHandlerImpl* NewL(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CProEngNotifyHandlerImpl(); |
|
55 |
|
56 public: |
|
57 |
|
58 /** |
|
59 * From MProEngNotifyHandler |
|
60 */ |
|
61 TInt RequestProfileActivationNotificationsL( |
|
62 MProEngProfileActivationObserver& aObserver ); |
|
63 |
|
64 /** |
|
65 * From MProEngNotifyHandler |
|
66 */ |
|
67 TInt RequestActiveProfileNotificationsL( |
|
68 MProEngActiveProfileObserver& aObserver ); |
|
69 |
|
70 /** |
|
71 * From MProEngNotifyHandler |
|
72 */ |
|
73 TInt RequestProfileNotificationsL( |
|
74 MProEngProfileObserver& aObserver, |
|
75 TInt aProfileId ); |
|
76 |
|
77 /** |
|
78 * From MProEngNotifyHandler |
|
79 */ |
|
80 TInt RequestProfileNameArrayNotificationsL( |
|
81 MProEngProfileNameArrayObserver& aObserver ); |
|
82 |
|
83 /** |
|
84 * From MProEngNotifyHandler |
|
85 */ |
|
86 void CancelProfileActivationNotifications(); |
|
87 |
|
88 /** |
|
89 * From MProEngNotifyHandler |
|
90 */ |
|
91 void CancelActiveProfileNotifications(); |
|
92 |
|
93 /** |
|
94 * From MProEngNotifyHandler |
|
95 */ |
|
96 void CancelProfileNotifications( TInt aProfileId ); |
|
97 |
|
98 /** |
|
99 * From MProEngNotifyHandler |
|
100 */ |
|
101 void CancelProfileNameArrayNotifications(); |
|
102 |
|
103 /** |
|
104 * From MProEngNotifyHandler |
|
105 */ |
|
106 void CancelAll(); |
|
107 |
|
108 private: |
|
109 |
|
110 /** |
|
111 * C++ default constructor. |
|
112 */ |
|
113 CProEngNotifyHandlerImpl(); |
|
114 |
|
115 private: // Data |
|
116 |
|
117 // Own: Delegate for active profile change events |
|
118 CProEngProfileActivationDelegate* iActiveIdEventDelegate; |
|
119 |
|
120 // Own: Delegate for active profile modification events |
|
121 CProEngActiveProfileDelegate* iActiveProfileEventDelegate; |
|
122 |
|
123 // Own: Delegate for profile name array modification events |
|
124 CProEngProfileNameArrayEventDelegate* iNameArrayEventDelegate; |
|
125 |
|
126 // Own: Array of profile change observers |
|
127 RPointerArray< CProEngProfileEventDelegate > iProfileEventDelegates; |
|
128 |
|
129 }; |
|
130 |
|
131 #endif // CPROENGNOTIFYHANDLERIMPL_H |
|
132 |
|
133 // End of File |
|
134 |