1 /* |
|
2 * Copyright (c) 2008 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CAPROGRESSNOTIFIER_H |
|
19 #define CAPROGRESSNOTIFIER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <usif/sif/sifnotification.h> |
|
23 #include <usif/usifcommon.h> |
|
24 |
|
25 #include "castorage_global.h" |
|
26 using namespace Usif; |
|
27 |
|
28 class CCaStorageProxy; |
|
29 class CCaInnerEntry; |
|
30 |
|
31 /** |
|
32 * Uninstall Progress notifier. |
|
33 * |
|
34 * @since S60 v5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCaProgressNotifier ) : public CBase, |
|
37 public MSifOperationsHandler |
|
38 { |
|
39 |
|
40 public: |
|
41 /** |
|
42 * Creates an instance of CCaProgressNotifier. |
|
43 * @param aCaStorageProxy Reference to storage. |
|
44 */ |
|
45 IMPORT_C static CCaProgressNotifier* NewL( CCaStorageProxy& aCaStorageProxy); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CCaProgressNotifier(); |
|
51 |
|
52 private: |
|
53 |
|
54 /** |
|
55 * Constructor. |
|
56 */ |
|
57 CCaProgressNotifier( CCaStorageProxy& aCaStorageProxy ); |
|
58 |
|
59 /** |
|
60 * Symbian 2nd phase constructor. |
|
61 * @param aCaStorageProxy Reference to storage. |
|
62 */ |
|
63 void ConstructL( ); |
|
64 |
|
65 void UpdateProgressL( const CSifOperationProgressData& aProgressData ); |
|
66 void EndOperationL(TInt aError); |
|
67 TComponentId ComponentIdL(const TDesC& aGlobalComponentId, const TDesC& aSwType); |
|
68 void MarkEntrysForUnistallL(TUint aKey, TComponentId aComponentId); |
|
69 |
|
70 public: |
|
71 /** |
|
72 * From MSifOperationsHandler |
|
73 */ |
|
74 void StartOperationHandler(TUint aKey, const CSifOperationStartData& aStartData); |
|
75 |
|
76 /** |
|
77 * From MSifOperationsHandler |
|
78 */ |
|
79 void EndOperationHandler(const CSifOperationEndData& aEndData); |
|
80 |
|
81 /** |
|
82 * From MSifOperationsHandler |
|
83 */ |
|
84 void ProgressOperationHandler(const CSifOperationProgressData& aProgressData); |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * USIF notifier |
|
90 * Own. |
|
91 * |
|
92 * Commented out since USIF notifications do not |
|
93 * work on MCL wk20 |
|
94 */ |
|
95 CSifOperationsNotifier* iNotifier; |
|
96 |
|
97 /** |
|
98 * Not Own. |
|
99 * Reference to the Storage Proxy. |
|
100 */ |
|
101 CCaStorageProxy& iStorageProxy; |
|
102 |
|
103 RPointerArray<CCaInnerEntry> iResultArrayItems; |
|
104 |
|
105 TUint iKey; |
|
106 |
|
107 }; |
|
108 |
|
109 |
|
110 #endif /* CAPROGRESSNOTIFIER_H */ |
|
111 |
|
112 // End of File |
|
113 |
|