1 /* |
|
2 * Copyright (c) 2007-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: Utility class to list and remove unknown (not installed) |
|
15 * sisx packages from removable media. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef C_APPMNGR2SISXUNKNOWNLIST_H |
|
21 #define C_APPMNGR2SISXUNKNOWNLIST_H |
|
22 |
|
23 #include <e32base.h> // CBase |
|
24 #include <swi/pkgremover.h> // Swi::CUninstalledPackageEntry |
|
25 |
|
26 // Private folder path containing pre-installed applications |
|
27 _LIT( KAppMngr2PreInstalledPath, ":\\private\\10202dce\\" ); |
|
28 |
|
29 |
|
30 /** |
|
31 * Class for listing and removing uninstalled PA and PP type sisx packages |
|
32 * from removable media. Unknown (not installed) sisx packages are read using |
|
33 * Swi::UninstalledSisPackages::ListL() funtion. Basically this is just a |
|
34 * container class for unknown package list array. |
|
35 */ |
|
36 class CAppMngr2SisxUnknownList : public CBase |
|
37 { |
|
38 public: // constructors and destructor |
|
39 static CAppMngr2SisxUnknownList* NewL( TInt aDriveNumber ); |
|
40 static CAppMngr2SisxUnknownList* NewLC( TInt aDriveNumber ); |
|
41 ~CAppMngr2SisxUnknownList(); |
|
42 |
|
43 public: // new functions |
|
44 TInt PkgCount() const; |
|
45 Swi::CUninstalledPackageEntry& PkgEntry( TInt aIndex ); |
|
46 TInt FindPkgWithUID( const TUid& aUid ); |
|
47 TInt FindPkgWithUIDName( const TDesC& aUIDName ); // aUIDName can be e.g. "20001234.SISX" |
|
48 void RemovePkgL( TInt aIndex ); |
|
49 |
|
50 private: // new functions |
|
51 void ConstructL( TInt aDriveNumber ); |
|
52 |
|
53 private: // data |
|
54 RPointerArray<Swi::CUninstalledPackageEntry> iUnknownPackages; |
|
55 }; |
|
56 |
|
57 #endif // C_APPMNGR2SISXUNKNOWNLIST_H |
|
58 |
|