|
1 /* |
|
2 * Copyright (c) 2009 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 __CApplicationManagementUtility_H__ |
|
19 #define __CApplicationManagementUtility_H__ |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <e32base.h> |
|
23 #include "ApplicationManagementCommon.h" |
|
24 #include "javaregistryentry.h" |
|
25 namespace NApplicationManagement |
|
26 { |
|
27 |
|
28 // CLASS DEFINITION |
|
29 /** |
|
30 * |
|
31 * |
|
32 * |
|
33 */ |
|
34 |
|
35 class TMidletParameters |
|
36 { |
|
37 public: |
|
38 TUid iMidletUid; |
|
39 TMidletnameName iMidletName; |
|
40 TMidletVendorName iMidletVenorName; |
|
41 TMidletVersion bufVersion; |
|
42 TDriveNumber iDrive; |
|
43 |
|
44 }; |
|
45 class CApplicationManagementUtility : public CBase |
|
46 { |
|
47 |
|
48 public: |
|
49 // Constructors and destructors |
|
50 |
|
51 static CApplicationManagementUtility* NewL(); // Static constructor |
|
52 static CApplicationManagementUtility* NewLC(); // Static constructor |
|
53 ~CApplicationManagementUtility(); // Destructor |
|
54 |
|
55 protected: |
|
56 |
|
57 CApplicationManagementUtility(); // Default constructor |
|
58 |
|
59 private: |
|
60 // Constructors and destructors |
|
61 |
|
62 void ConstructL(); // Second phase construct |
|
63 |
|
64 |
|
65 public: |
|
66 // New methods |
|
67 |
|
68 virtual TBool FindInstalledJavaUidL(const TUid &aUid) const; |
|
69 |
|
70 virtual void InstalledSuiteUidsL(RArray <TUid>); |
|
71 |
|
72 virtual void JavaUidsL(RArray<TUid> &aUids); |
|
73 |
|
74 virtual void RefreshJavaRegistryL(); |
|
75 virtual void GetInstalledMidletParametersL( |
|
76 TMidletParameters& aMidletParameters); |
|
77 |
|
78 }; |
|
79 |
|
80 } |
|
81 |
|
82 #endif // __CApplicationManagementUtility_H__ |