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 CAPROGRESSCANER_H |
|
19 #define CAPROGRESSCANER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <usif/sif/sifnotification.h> |
|
23 #include <usif/usifcommon.h> |
|
24 #include <usif/sif/sifcommon.h> |
|
25 #include <usif/scr/scr.h> |
|
26 |
|
27 #include "casrvplugin.h" |
|
28 #include "castorage_global.h" |
|
29 |
|
30 using namespace Usif; |
|
31 |
|
32 class CCaStorageProxy; |
|
33 class CCaInnerEntry; |
|
34 |
|
35 /** |
|
36 * Uninstall Progress notifier. |
|
37 * |
|
38 * @since S60 v5.0 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CCaProgresScanner ) : public CCaSrvPlugin, |
|
41 public MSifOperationsHandler |
|
42 { |
|
43 |
|
44 public: |
|
45 /** |
|
46 * Creates an instance of CCaProgresScanner. |
|
47 * @param aPLuginParam plugin param consist of storage, storage utils and scr. |
|
48 */ |
|
49 IMPORT_C static CCaProgresScanner* NewL( TPluginParams* aPLuginParam ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CCaProgresScanner(); |
|
55 |
|
56 private: |
|
57 |
|
58 /** |
|
59 * Constructor. |
|
60 * @param aPLuginParam plugin param consist of storage, storage utils and scr. |
|
61 */ |
|
62 CCaProgresScanner( TPluginParams* aPLuginParam ); |
|
63 |
|
64 /** |
|
65 * Symbian 2nd phase constructor. |
|
66 */ |
|
67 void ConstructL( ); |
|
68 |
|
69 void UpdateProgressL( const CSifOperationProgressData& aProgressData ); |
|
70 void EndOperationL(TInt aError); |
|
71 void MarkEntrysForUnistallL(TUint aKey, TComponentId aComponentId); |
|
72 |
|
73 public: |
|
74 /** |
|
75 * From MSifOperationsHandler |
|
76 */ |
|
77 void StartOperationHandler(TUint aKey, const CSifOperationStartData& aStartData); |
|
78 |
|
79 /** |
|
80 * From MSifOperationsHandler |
|
81 */ |
|
82 void EndOperationHandler(const CSifOperationEndData& aEndData); |
|
83 |
|
84 /** |
|
85 * From MSifOperationsHandler |
|
86 */ |
|
87 void ProgressOperationHandler(const CSifOperationProgressData& aProgressData); |
|
88 |
|
89 private: |
|
90 |
|
91 /** |
|
92 * USIF notifier |
|
93 * Own. |
|
94 * |
|
95 * Commented out since USIF notifications do not |
|
96 * work on MCL wk20 |
|
97 */ |
|
98 CSifOperationsNotifier* iNotifier; |
|
99 |
|
100 /** |
|
101 * Not Own. |
|
102 * Reference to the Storage Proxy. |
|
103 */ |
|
104 CCaStorageProxy& iStorageProxy; |
|
105 |
|
106 /** |
|
107 * Reference to Software component registry. Not own. |
|
108 */ |
|
109 RSoftwareComponentRegistry& iSoftwareRegistry; |
|
110 |
|
111 /** |
|
112 * All entries with componentID of uninstalling application |
|
113 */ |
|
114 RPointerArray<CCaInnerEntry> iResultArrayItems; |
|
115 |
|
116 TUint iKey; |
|
117 |
|
118 CA_STORAGE_TEST_FRIEND_CLASS (T_casrvProgresScaner) |
|
119 }; |
|
120 |
|
121 |
|
122 #endif /* CAPROGRESSCANER_H */ |
|
123 |
|
124 // End of File |
|
125 |
|