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 C_CAUNINSTALLOPERATION_H |
|
19 #define C_CAUNINSTALLOPERATION_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <SWInstApi.h> |
|
23 |
|
24 /** |
|
25 * Uninstall CMenuOperation |
|
26 * Encapsulates the functionality of uninstalling an application. |
|
27 */ |
|
28 NONSHARABLE_CLASS( CCaUninstallOperation ): public CActive |
|
29 { |
|
30 |
|
31 public: |
|
32 // construction |
|
33 |
|
34 virtual ~CCaUninstallOperation(); |
|
35 |
|
36 static CCaUninstallOperation* NewL( CCaInnerEntry &aEntry, |
|
37 TInt aPriority = CActive::EPriorityStandard ); |
|
38 |
|
39 private: |
|
40 // construction |
|
41 |
|
42 CCaUninstallOperation( CCaInnerEntry &aEntry, TInt aPriority ); |
|
43 |
|
44 void ConstructL( CCaInnerEntry &aEntry ); |
|
45 |
|
46 void AppInfoL( const TUid& aAppUid, TPtrC8& aMimeType, |
|
47 TUid& aPackageUid ); |
|
48 |
|
49 TBool GetInstallPkgUidL( const TDesC& aAppFullName, TUid& aPackageUid ); |
|
50 |
|
51 private: |
|
52 // from CActive |
|
53 |
|
54 void RunL(); |
|
55 void DoCancel(); |
|
56 TInt RunError( TInt aError ); |
|
57 |
|
58 private: |
|
59 |
|
60 CCaInnerEntry& iEntry; |
|
61 SwiUI::RSWInstLauncher iUninstaller; |
|
62 TInt iId; |
|
63 }; |
|
64 |
|
65 #endif // C_CAUNINSTALLOPERATION_H |
|