|
1 // Copyright (c) 2008-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 "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 // apinstallationmonitor.h |
|
15 // |
|
16 |
|
17 #ifndef __APINSTALLATIONMONITOR_H__ |
|
18 #define __APINSTALLATIONMONITOR_H__ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include <e32property.h> |
|
22 #include <swi/swispubsubdefs.h> |
|
23 #include "../apserv/apsserv.h" |
|
24 |
|
25 |
|
26 class CApaAppArcServer; |
|
27 |
|
28 NONSHARABLE_CLASS(CApaAppInstallationMonitor) : public CActive |
|
29 /** |
|
30 CApaAppInstallationMonitor |
|
31 |
|
32 A low priority active object which monitors software |
|
33 install for installations/uninstallations of applications. |
|
34 |
|
35 @internalComponent |
|
36 */ |
|
37 { |
|
38 public: |
|
39 IMPORT_C static CApaAppInstallationMonitor* NewL(CApaAppArcServer*); |
|
40 IMPORT_C ~CApaAppInstallationMonitor(); |
|
41 IMPORT_C void Start(); |
|
42 private: |
|
43 CApaAppInstallationMonitor(CApaAppArcServer*); |
|
44 void ConstructL(); |
|
45 void RunL(); |
|
46 void RunError(); |
|
47 void DoStart(); |
|
48 void DoCancel(); |
|
49 TBool InstallationInProgress() const; |
|
50 private: |
|
51 CApaAppArcServer* iApaServer; |
|
52 RProperty iSwisProperty; |
|
53 TInt iSwisState; |
|
54 TBool iWaitingForStartInstallation; |
|
55 }; |
|
56 |
|
57 #endif |