author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:00:00 +0300 | |
branch | RCL_3 |
changeset 93 | b01126ce0bec |
parent 88 | 3321d3e205b6 |
child 102 | ba63c83f4716 |
permissions | -rw-r--r-- |
83 | 1 |
/* |
2 |
* Copyright (c) 2002-2004 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: factory settings for active space |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef HNREPOSITORYOBSERVER_H_ |
|
20 |
#define HNREPOSITORYOBSERVER_H_ |
|
21 |
||
22 |
#include <liwcommon.h> |
|
23 |
#include <e32base.h> |
|
24 |
#include <centralrepository.h> |
|
25 |
#include <cenrepnotifyhandler.h> |
|
26 |
#include "hnmdmodel.h" |
|
27 |
#include "hnservicehandler.h" |
|
28 |
#include "hnsuiteobserver.h" |
|
29 |
||
30 |
/** |
|
31 |
* Repository Observer base class. |
|
32 |
* |
|
33 |
* It is used to be derived by repository observers. |
|
34 |
* |
|
35 |
* @lib hnmetadatamodel |
|
36 |
* @since S60 5.0 |
|
37 |
* @ingroup group_hnmetadatamodel |
|
38 |
*/ |
|
39 |
NONSHARABLE_CLASS( CHnRepositoryObserver ): |
|
40 |
public CBase, |
|
41 |
public MCenRepNotifyHandlerCallback |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
42 |
{ |
83 | 43 |
public: |
44 |
||
45 |
/** |
|
46 |
* Default C++ Destructor. |
|
47 |
* |
|
48 |
* @since S60 v5.0 |
|
49 |
*/ |
|
50 |
virtual ~CHnRepositoryObserver(); |
|
51 |
||
52 |
||
53 |
protected: |
|
54 |
||
55 |
/** |
|
56 |
* Defautlt C++ Constructor. |
|
57 |
* |
|
58 |
* @param aCmnPtrs Common pointers. |
|
59 |
* @since S60 v5.0 |
|
60 |
*/ |
|
61 |
CHnRepositoryObserver( THnMdCommonPointers* aCmnPtrs ); |
|
62 |
||
63 |
||
64 |
/** |
|
65 |
* Defautlt C++ Constructor. |
|
66 |
* |
|
67 |
* @param aCmnPtrs Common pointers. |
|
68 |
* @since S60 v5.0 |
|
69 |
*/ |
|
70 |
CHnRepositoryObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
|
71 |
||
72 |
/** |
|
73 |
* Second stage constructor. |
|
74 |
* |
|
75 |
* @since S60 v5.0 |
|
76 |
*/ |
|
77 |
void ConstructL( const TUid aRepositoryUid ); |
|
78 |
||
79 |
protected: |
|
80 |
||
81 |
/** |
|
82 |
* Own - Central Repository access class. |
|
83 |
*/ |
|
84 |
CRepository *iRepository; |
|
85 |
||
86 |
/** |
|
87 |
* Id of the CR entry to be watched. |
|
88 |
*/ |
|
89 |
TUint32 iId; |
|
90 |
||
91 |
/** |
|
92 |
* Common pointers. |
|
93 |
*/ |
|
94 |
THnMdCommonPointers* iCmnPtrs; |
|
95 |
||
96 |
/** |
|
97 |
* Own - Central repository notification handler. |
|
98 |
*/ |
|
99 |
CCenRepNotifyHandler* iNotifyHandler; |
|
100 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
101 |
}; |
83 | 102 |
|
103 |
/** |
|
104 |
* Widget Type Repository Observer. |
|
105 |
* |
|
106 |
* It is used to inform hierarchy navigator of changes in the suites repository. |
|
107 |
* |
|
108 |
* @lib hnmetadatamodel |
|
109 |
* @since S60 5.0 |
|
110 |
* @ingroup group_hnmetadatamodel |
|
111 |
*/ |
|
112 |
NONSHARABLE_CLASS( CHnRepositoryWidgetTypeObserver ): public CHnRepositoryObserver |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
113 |
{ |
83 | 114 |
public: |
115 |
||
116 |
/** |
|
117 |
* Default C++ Destructor. |
|
118 |
* |
|
119 |
* @since S60 v5.0 |
|
120 |
*/ |
|
121 |
virtual ~CHnRepositoryWidgetTypeObserver(); |
|
122 |
||
123 |
/** |
|
124 |
* Factory function. |
|
125 |
* |
|
126 |
* @param aCmnPtrs Common pointers. |
|
127 |
* @return Repository Observer. |
|
128 |
* @since S60 v5.0 |
|
129 |
*/ |
|
130 |
static CHnRepositoryWidgetTypeObserver* NewL( THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid ); |
|
131 |
||
132 |
/** |
|
133 |
* Factory function. |
|
134 |
* |
|
135 |
* @param aCmnPtrs Common pointers. |
|
136 |
* @return Repository Observer. |
|
137 |
* @since S60 v5.0 |
|
138 |
*/ |
|
139 |
static CHnRepositoryWidgetTypeObserver* NewLC( THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid ); |
|
140 |
||
141 |
/** |
|
142 |
* Change handler method. |
|
143 |
* It is invoked whenever notifier detects a change in the CR. |
|
144 |
* |
|
145 |
* @param aId Id of the entry in CR. |
|
146 |
* @since S60 v5.0 |
|
147 |
*/ |
|
148 |
void HandleNotifyGeneric(TUint32 aId); |
|
149 |
||
150 |
/** |
|
151 |
* Change handler method. |
|
152 |
* It is invoked whenever notifier detects a change in the CR. |
|
153 |
* |
|
154 |
* @param aId Id of the entry in CR. |
|
155 |
* @since S60 v5.0 |
|
156 |
*/ |
|
157 |
void HandleNotifyGenericL(TUint32 aId); |
|
158 |
||
159 |
private: |
|
160 |
||
161 |
/** |
|
162 |
* Defautlt C++ Constructor. |
|
163 |
* |
|
164 |
* @param aCmnPtrs Common pointers. |
|
165 |
* @since S60 v5.0 |
|
166 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
167 |
CHnRepositoryWidgetTypeObserver( THnMdCommonPointers* aCmnPtrs ); |
83 | 168 |
|
169 |
private: |
|
170 |
||
171 |
/** |
|
172 |
* Second stage constructor. |
|
173 |
* |
|
174 |
* @since S60 v5.0 |
|
175 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
176 |
void ConstructL( const TUid aRepositoryUid ); |
83 | 177 |
|
178 |
private: |
|
179 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
180 |
/** |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
181 |
* Array holding ids of widgets being switched. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
182 |
* It is used to eliminate double refresh for such suites. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
183 |
*/ |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
184 |
RArray<TUint32> iWidgetSwitches; |
83 | 185 |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
186 |
}; |
83 | 187 |
|
188 |
||
189 |
||
190 |
NONSHARABLE_CLASS( CHnRepositoryShowFolderObserver ): public CHnRepositoryObserver, |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
191 |
public MLiwNotifyCallback |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
192 |
{ |
83 | 193 |
public: |
194 |
||
195 |
/** |
|
196 |
* Default C++ Destructor. |
|
197 |
* |
|
198 |
* @since S60 v5.0 |
|
199 |
*/ |
|
200 |
virtual ~CHnRepositoryShowFolderObserver(); |
|
201 |
||
202 |
/** |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
203 |
* Factory function. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
204 |
* |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
205 |
* @param aCmnPtrs Common pointers. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
206 |
* @return Repository Observer. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
207 |
* @since S60 v5.0 |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
208 |
*/ |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
209 |
static CHnRepositoryShowFolderObserver* NewL( |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
210 |
THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
211 |
const TUint32 aId); |
83 | 212 |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
213 |
/** |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
214 |
* Factory function. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
215 |
* |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
216 |
* @param aCmnPtrs Common pointers. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
217 |
* @return Repository Observer. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
218 |
* @since S60 v5.0 |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
219 |
*/ |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
220 |
static CHnRepositoryShowFolderObserver* NewLC( |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
221 |
THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
222 |
const TUint32 aId); |
83 | 223 |
|
224 |
/** |
|
225 |
* Change handler method. |
|
226 |
* It is invoked whenever notifier detects a change in the CR. |
|
227 |
* |
|
228 |
* @param aId Id of the entry in CR. |
|
229 |
* @since S60 v5.0 |
|
230 |
*/ |
|
231 |
void HandleNotifyString(TUint32 aId, const TDesC16& aNewValue ); |
|
232 |
||
233 |
/** |
|
234 |
* Change handler method. |
|
235 |
* It is invoked whenever notifier detects a change in the CR. |
|
236 |
* |
|
237 |
* @param aId Id of the entry in CR. |
|
238 |
* @since S60 v5.0 |
|
239 |
*/ |
|
240 |
void HandleNotifyStringL(TUint32 aId, const TDesC16& aNewValue ); |
|
241 |
||
242 |
||
243 |
/** |
|
244 |
* From MLiwNotifyCallback |
|
245 |
*/ |
|
246 |
TInt HandleNotifyL( |
|
247 |
TInt aCmdId, |
|
248 |
TInt aEventId, |
|
249 |
CLiwGenericParamList& aEventParamList, |
|
250 |
const CLiwGenericParamList& aInParamList); |
|
251 |
||
252 |
private: |
|
253 |
||
254 |
/** |
|
255 |
* Defautlt C++ Constructor. |
|
256 |
* |
|
257 |
* @param aCmnPtrs Common pointers. |
|
258 |
* @since S60 v5.0 |
|
259 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
260 |
CHnRepositoryShowFolderObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
83 | 261 |
|
262 |
/** |
|
263 |
* Extracts the folder name from the CR key. |
|
264 |
* |
|
265 |
* @param aNewValue The CR key. |
|
266 |
* @since S60 v5.0 |
|
267 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
268 |
void ExtractCRKeyShowFolderName( const TDesC& aNewValue ); |
83 | 269 |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
270 |
/** |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
271 |
* Request get list for parent folder of an application. |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
272 |
* |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
273 |
* @param aFolderId A parent folder id |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
274 |
* @since S60 v5.0 |
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
275 |
*/ |
83 | 276 |
void GetShowFolderL( TUint32 aFolderId ); |
277 |
||
278 |
/** |
|
279 |
* Request get list for a folder with given application group name |
|
280 |
* contained in iCRKeyFolderName. |
|
281 |
* |
|
282 |
* @since S60 v5.0 |
|
283 |
*/ |
|
284 |
void GetShowFolderGroupNameL(); |
|
285 |
||
286 |
private: |
|
287 |
/** |
|
288 |
* Type of a flag describing the type of notification. |
|
289 |
* APP_ID - MCS id is given |
|
290 |
* APP_UID - Application UID is given |
|
291 |
* SECOND_NOTIFY - handled notify caused by the second get list |
|
292 |
*/ |
|
293 |
enum TNotifyType { EAPP_ID=1, EAPP_UID=2, ESECOND_NOTIFY=4 }; |
|
294 |
||
295 |
private: |
|
296 |
||
297 |
/** |
|
298 |
* Second stage constructor. |
|
299 |
* |
|
300 |
* @since S60 v5.0 |
|
301 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
302 |
void ConstructL( const TUid aRepositoryUid ); |
83 | 303 |
|
304 |
private: |
|
305 |
||
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
306 |
/** |
83 | 307 |
* Folder application group name. |
308 |
*/ |
|
93
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
309 |
TBuf8< KApaMaxAppGroupName > iCRKeyFolderName; |
83 | 310 |
|
311 |
/** |
|
312 |
* Mcs id for an application item in a folder with a given app group name. |
|
313 |
*/ |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
314 |
TBuf8<KUidStringLength> iCRKeyFolderItemUid; |
83 | 315 |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
316 |
/** |
83 | 317 |
* Own. |
318 |
* Intance of the service handler. |
|
319 |
*/ |
|
320 |
CHnServiceHandler* iServiceHandler; |
|
321 |
||
322 |
/** |
|
323 |
* Flag describing the type of notification. |
|
324 |
*/ |
|
325 |
TInt iNotifyType; |
|
88
3321d3e205b6
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
83
diff
changeset
|
326 |
}; |
83 | 327 |
|
93
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
328 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
329 |
* Open item Repository Observer. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
330 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
331 |
* It is used to inform hierarchy navigator of changes in the suites repository. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
332 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
333 |
* @lib hnmetadatamodel |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
334 |
* @since S60 5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
335 |
* @ingroup group_hnmetadatamodel |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
336 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
337 |
NONSHARABLE_CLASS( CHnRepositoryOpenItemObserver ): |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
338 |
public CHnRepositoryObserver, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
339 |
public MLiwNotifyCallback |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
340 |
{ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
341 |
public: |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
342 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
343 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
344 |
* Default C++ Destructor. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
345 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
346 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
347 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
348 |
virtual ~CHnRepositoryOpenItemObserver(); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
349 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
350 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
351 |
* Factory function. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
352 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
353 |
* @param aCmnPtrs Common pointers. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
354 |
* @return Repository Observer. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
355 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
356 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
357 |
static CHnRepositoryOpenItemObserver* NewL( |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
358 |
THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
359 |
const TUint32 aId ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
360 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
361 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
362 |
* Factory function. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
363 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
364 |
* @param aCmnPtrs Common pointers. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
365 |
* @return Repository Observer. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
366 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
367 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
368 |
static CHnRepositoryOpenItemObserver* NewLC( |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
369 |
THnMdCommonPointers* aCmnPtrs, const TUid aRepositoryUid, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
370 |
const TUint32 aId ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
371 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
372 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
373 |
* Change handler method. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
374 |
* It is invoked whenever notifier detects a change in the CR. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
375 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
376 |
* @param aId Id of the entry in CR. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
377 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
378 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
379 |
void HandleNotifyString( TUint32 aId, const TDesC16& aNewValue ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
380 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
381 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
382 |
* Change handler method. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
383 |
* It is invoked whenever notifier detects a change in the CR. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
384 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
385 |
* @param aId Id of the entry in CR. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
386 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
387 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
388 |
void HandleNotifyStringL( TUint32 aId, const TDesC16& aNewValue ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
389 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
390 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
391 |
* Handles notifications caused by an asynchronous Execute*CmdL call |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
392 |
* or an event. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
393 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
394 |
* @param aCmdId The service command associated to the event. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
395 |
* @param aEventId Occured event, see LiwCommon.hrh. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
396 |
* @param aEventParamList Event parameters, if any, as defined per |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
397 |
* each event. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
398 |
* @param aInParamList Input parameters, if any, given in the |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
399 |
* related HandleCommmandL. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
400 |
* @return Error code for the callback. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
401 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
402 |
virtual TInt HandleNotifyL( |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
403 |
TInt aCmdId, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
404 |
TInt aEventId, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
405 |
CLiwGenericParamList& aEventParamList, |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
406 |
const CLiwGenericParamList& aInParamList); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
407 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
408 |
private: |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
409 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
410 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
411 |
* Defautlt C++ Constructor. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
412 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
413 |
* @param aCmnPtrs Common pointers. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
414 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
415 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
416 |
CHnRepositoryOpenItemObserver( THnMdCommonPointers* aCmnPtrs, TUint32 iId ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
417 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
418 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
419 |
* Second stage constructor. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
420 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
421 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
422 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
423 |
void ConstructL( const TUid aRepositoryUid ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
424 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
425 |
private: |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
426 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
427 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
428 |
* Request get list for an folder. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
429 |
* |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
430 |
* @param aFolderId A parent folder id |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
431 |
* @since S60 v5.0 |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
432 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
433 |
void ShowFolderL( const TDesC16& aFolderId ); |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
434 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
435 |
private: |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
436 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
437 |
/** |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
438 |
* Own. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
439 |
* Intance of the service handler. |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
440 |
*/ |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
441 |
CHnServiceHandler* iServiceHandler; |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
442 |
|
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
443 |
}; |
b01126ce0bec
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
88
diff
changeset
|
444 |
|
83 | 445 |
#endif /*HNREPOSITORYOBSERVER_H_*/ |
446 |
||
447 |
//End of file |
|
448 |