equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __APUNINSTALLMONITOR_H__ |
|
17 #define __APUNINSTALLMONITOR_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <e32property.h> |
|
21 #include <swi/swispubsubdefs.h> |
|
22 #include <apsserv.h> |
|
23 |
|
24 |
|
25 class CApaAppListServer; |
|
26 |
|
27 NONSHARABLE_CLASS(CApaAppUnInstallMonitor) : public CActive |
|
28 /** |
|
29 CApaAppUnInstallMonitor |
|
30 |
|
31 A low priority (EPriorityLow) active object which monitors software |
|
32 install for installations/uninstallation of applications. |
|
33 |
|
34 @internalComponent |
|
35 */ |
|
36 { |
|
37 public: |
|
38 IMPORT_C static CApaAppUnInstallMonitor* NewL(CApaAppListServer*); |
|
39 IMPORT_C ~CApaAppUnInstallMonitor(); |
|
40 IMPORT_C void Start(); |
|
41 private: |
|
42 CApaAppUnInstallMonitor(CApaAppListServer*); |
|
43 void ConstructL(); |
|
44 void RunL(); |
|
45 void RunError(); |
|
46 void DoStart(); |
|
47 void DoCancel(); |
|
48 TBool UnInstallInProgress() const; |
|
49 private: |
|
50 CApaAppListServer* iApaServer; |
|
51 RProperty iSwisProperty; |
|
52 TInt iSwisState; |
|
53 TBool iWaitingForStartUninstall; |
|
54 }; |
|
55 |
|
56 #endif |
|