|
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: MidletAppInfo represents installed Java applications |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef APPMNGR2MIDLETSTORAGEUTIL_H |
|
20 #define APPMNGR2MIDLETSTORAGEUTIL_H |
|
21 |
|
22 #include <memory> |
|
23 #include <e32cmn.h> |
|
24 |
|
25 #include "javaosheaders.h" |
|
26 #include "javastorage.h" |
|
27 |
|
28 |
|
29 /** |
|
30 * MIDlet Suite Application Info |
|
31 * |
|
32 * MIDlet Suite Application Info handles uinstallation of installed MIDlet suite, |
|
33 * shows MIDlet suite details and MIDlet suite settings. |
|
34 * |
|
35 * @lib appmngr2midletplugin.dll |
|
36 * @since S60 v9.1 |
|
37 */ |
|
38 OS_NONSHARABLE_CLASS(AppMngr2MidletStorageUtil) |
|
39 { |
|
40 public: |
|
41 |
|
42 // constructor and destructor |
|
43 AppMngr2MidletStorageUtil(); |
|
44 ~AppMngr2MidletStorageUtil(); |
|
45 |
|
46 /** |
|
47 * Populate suite information. |
|
48 * |
|
49 * @param aUid suite identifier. |
|
50 */ |
|
51 void populateSuiteInformation(const TUid aUid); |
|
52 |
|
53 /** |
|
54 * Get given attribute value. |
|
55 * |
|
56 * @param aName attribute to return. |
|
57 * @return attribute value if found, null otherwise. Buffer ownership |
|
58 * is transfered to caller. |
|
59 * |
|
60 */ |
|
61 HBufC* attribute(const TDesC& aName); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * Check if connection exists. If not open it. |
|
67 */ |
|
68 void checkConnection(); |
|
69 |
|
70 private: |
|
71 std::auto_ptr<java::storage::JavaStorage>mStorage; |
|
72 java::storage::JavaStorageApplicationEntry_t mPopulatedEntry; |
|
73 bool mIsOpen; |
|
74 }; |
|
75 |
|
76 #endif // APPMNGR2MIDLETSTORAGEUTIL_H |
|
77 |