47
|
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 <hbdialog.h>
|
|
24 |
#include "ApplicationManagementCommon.h"
|
|
25 |
#include "javaregistryentry.h"
|
|
26 |
|
|
27 |
|
|
28 |
namespace NApplicationManagement
|
|
29 |
{
|
|
30 |
|
|
31 |
// CLASS DEFINITION
|
|
32 |
/**
|
|
33 |
*
|
|
34 |
*
|
|
35 |
*
|
|
36 |
*/
|
|
37 |
|
|
38 |
class TMidletParameters
|
|
39 |
{
|
|
40 |
public:
|
|
41 |
TUid iMidletUid;
|
|
42 |
TMidletnameName iMidletName;
|
|
43 |
TMidletVendorName iMidletVenorName;
|
|
44 |
TMidletVersion bufVersion;
|
|
45 |
TDriveNumber iDrive;
|
|
46 |
|
|
47 |
};
|
|
48 |
class CApplicationManagementUtility : public CBase
|
|
49 |
{
|
|
50 |
|
|
51 |
public:
|
|
52 |
// Constructors and destructors
|
|
53 |
|
|
54 |
static CApplicationManagementUtility* NewL(); // Static constructor
|
|
55 |
static CApplicationManagementUtility* NewLC(); // Static constructor
|
|
56 |
~CApplicationManagementUtility(); // Destructor
|
|
57 |
|
|
58 |
protected:
|
|
59 |
|
|
60 |
CApplicationManagementUtility(); // Default constructor
|
|
61 |
|
|
62 |
private:
|
|
63 |
// Constructors and destructors
|
|
64 |
|
|
65 |
void ConstructL(); // Second phase construct
|
|
66 |
|
|
67 |
|
|
68 |
public:
|
|
69 |
// New methods
|
|
70 |
|
|
71 |
virtual TBool FindInstalledJavaUidL(const TUid &aUid) const;
|
|
72 |
|
|
73 |
virtual void InstalledSuiteUidsL(RArray <TUid>);
|
|
74 |
|
|
75 |
virtual void JavaUidsL(RArray<TUid> &aUids);
|
|
76 |
|
|
77 |
virtual void RefreshJavaRegistryL();
|
|
78 |
virtual void GetInstalledMidletParametersL(
|
|
79 |
TMidletParameters& aMidletParameters);
|
|
80 |
|
|
81 |
static void SetFileName(const TFileName& aFileName);
|
|
82 |
static void GetFileName(TFileName& aFileName);
|
|
83 |
|
|
84 |
public:
|
|
85 |
static TInt mHidden;
|
|
86 |
static HbDialog* mCurrDlg;
|
|
87 |
static TInt iSilentSession;
|
|
88 |
static TFileName iFileName;
|
|
89 |
|
|
90 |
};
|
|
91 |
|
|
92 |
}
|
|
93 |
|
|
94 |
#endif // __CApplicationManagementUtility_H__
|