|
1 /* |
|
2 * Copyright (c) 2000 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: Implementation of applicationmanagement components |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef AMPREINSTALLAPP_H_ |
|
19 #define AMPREINSTALLAPP_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <badesca.h> |
|
23 #include <f32file.h> |
|
24 #include "ApplicationManagementCommon.h" |
|
25 #include "amstorage.h" |
|
26 |
|
27 |
|
28 _LIT(KPreInstallPath, "\\private\\10202dce\\"); |
|
29 |
|
30 namespace NApplicationManagement |
|
31 { |
|
32 |
|
33 class TPreInstalledAppParams |
|
34 { |
|
35 public: |
|
36 TUid iPreInstalledAppUid; |
|
37 #if 1 |
|
38 TPreInstalledAppName iPreInstalledAppame; |
|
39 TPreInstalledAppVendorName iPreInstalledAppVendorName; |
|
40 TPreInstalledVersion iVersion; |
|
41 TMimeType iMimeType; |
|
42 #endif |
|
43 //TPreInstalledVersion bufVersion; |
|
44 #if 0 |
|
45 HBufC* iPreInstalledAppame; |
|
46 HBufC* iPreInstalledAppVendorName; |
|
47 #endif |
|
48 }; |
|
49 |
|
50 class CAMPreInstallApp : public CBase |
|
51 { |
|
52 |
|
53 public: |
|
54 ~CAMPreInstallApp(); |
|
55 static CAMPreInstallApp* NewL(); |
|
56 static CAMPreInstallApp* NewLC(); |
|
57 void ListPreInstalledAppL(const TDesC& installDocPath); |
|
58 void ListPreInstalledAppL(); |
|
59 TBool RecognizeL(TDesC& aPathAndName, HBufC* aMimeType); |
|
60 void MakeAllInstallPathsL(); |
|
61 void GetPreInstalledAppsL(RPointerArray<TPreInstalledAppParams> &aPreInstalledAppParams); |
|
62 void Listallapps(); |
|
63 private: |
|
64 CAMPreInstallApp(); |
|
65 |
|
66 void ConstructL(); |
|
67 |
|
68 private: |
|
69 |
|
70 TFileName iPreInstallPath; // Path where to scan for pre-install files |
|
71 #ifdef RD_MULTIPLE_DRIVE |
|
72 CDesCArray* iInstallDocPathArray; |
|
73 #else |
|
74 TFileName iPreInstallDocumentPath; // Path where to scan for pre-install files |
|
75 #endif // RD_MULTIPLE_DRIVE |
|
76 |
|
77 RFs iFs; |
|
78 CDeliveryComponentStorage *iStorage; |
|
79 RPointerArray<TPreInstalledAppParams> iPreInstalledAppParams; |
|
80 |
|
81 }; |
|
82 |
|
83 |
|
84 |
|
85 } |
|
86 |
|
87 #endif /*AMPREINSTALLAPP_H_*/ |