|
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 #include "cauninstallobserver.h" |
|
27 |
|
28 using namespace Usif; |
|
29 |
|
30 |
|
31 /** |
|
32 * Uninstall Progress notifier. |
|
33 * |
|
34 * @since S60 v5.0 |
|
35 */ |
|
36 NONSHARABLE_CLASS( CCaProgresScanner ) : public CBase, public MSifOperationsHandler |
|
37 { |
|
38 |
|
39 public: |
|
40 /** |
|
41 * Creates an instance of CCaProgresScanner. |
|
42 */ |
|
43 IMPORT_C static CCaProgresScanner* NewL( IUninstallObserver* aObserver ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CCaProgresScanner(); |
|
49 |
|
50 private: |
|
51 |
|
52 /** |
|
53 * Constructor. |
|
54 */ |
|
55 CCaProgresScanner( IUninstallObserver* aObserver ); |
|
56 |
|
57 /** |
|
58 * Symbian 2nd phase constructor. |
|
59 */ |
|
60 void ConstructL( ); |
|
61 |
|
62 void UpdateProgressL( const CSifOperationProgressData& aProgressData ); |
|
63 void EndOperationL( TInt aError ); |
|
64 void SubscribeL( TUint aKey ); |
|
65 void CancelSubscribeL(); |
|
66 |
|
67 public: |
|
68 /** |
|
69 * From MSifOperationsHandler |
|
70 */ |
|
71 void StartOperationHandler( |
|
72 TUint aKey, |
|
73 const CSifOperationStartData& aStartData ); |
|
74 |
|
75 /** |
|
76 * From MSifOperationsHandler |
|
77 */ |
|
78 void EndOperationHandler( const CSifOperationEndData& aEndData ); |
|
79 |
|
80 /** |
|
81 * From MSifOperationsHandler |
|
82 */ |
|
83 void ProgressOperationHandler( |
|
84 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 * Reference to Software component registry. Not own. |
|
99 */ |
|
100 RSoftwareComponentRegistry iSoftwareRegistry; |
|
101 |
|
102 TUint iKey; |
|
103 |
|
104 TComponentId iComponentId; |
|
105 |
|
106 const IUninstallObserver* iObserver; |
|
107 }; |
|
108 |
|
109 |
|
110 #endif /* CAPROGRESSCANER_H */ |
|
111 |
|
112 // End of File |
|
113 |
|
114 |