applicationmanagement/server/inc/ApplicationManagementUtility.h
author hgs
Fri, 06 Aug 2010 18:56:37 +0530
changeset 52 6e38e48ee756
parent 47 d316aecb87fd
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     1
/*
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     3
 * All rights reserved.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     5
 * under the terms of "Eclipse Public License v1.0"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     6
 * which accompanies this distribution, and is available
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     8
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
     9
 * Initial Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    10
 * Nokia Corporation - initial contribution.
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    11
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    12
 * Contributors:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    13
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    14
 * Description: Implementation of applicationmanagement components
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    15
 *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    16
 */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    17
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    18
#ifndef __CApplicationManagementUtility_H__
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    19
#define __CApplicationManagementUtility_H__
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    20
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    21
//  EXTERNAL INCLUDES
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    22
#include <e32base.h>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    23
#include <hbdialog.h>
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    24
#include "ApplicationManagementCommon.h"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    25
#include "javaregistryentry.h"
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    26
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    27
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    28
namespace NApplicationManagement
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    29
    {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    30
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    31
    //  CLASS DEFINITION
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    32
    /**
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    33
     *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    34
     *   
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    35
     *
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    36
     */
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    37
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    38
    class TMidletParameters
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    39
        {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    40
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    41
        TUid iMidletUid;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    42
        TMidletnameName iMidletName;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    43
        TMidletVendorName iMidletVenorName;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    44
        TMidletVersion bufVersion;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    45
        TDriveNumber iDrive;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    46
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    47
        };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    48
    class CApplicationManagementUtility : public CBase
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    49
        {
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    50
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    51
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    52
        // Constructors and destructors
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    53
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    54
        static CApplicationManagementUtility* NewL(); // Static constructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    55
        static CApplicationManagementUtility* NewLC(); // Static constructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    56
        ~CApplicationManagementUtility(); // Destructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    57
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    58
protected:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    59
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    60
        CApplicationManagementUtility(); // Default constructor
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    61
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    62
private:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    63
        // Constructors and destructors
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    64
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    65
        void ConstructL(); // Second phase construct
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    66
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    67
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    68
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    69
        // New methods
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    70
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    71
        virtual TBool FindInstalledJavaUidL(const TUid &aUid) const;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    72
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    73
        virtual void InstalledSuiteUidsL(RArray <TUid>);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    74
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    75
        virtual void JavaUidsL(RArray<TUid> &aUids);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    76
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    77
        virtual void RefreshJavaRegistryL();
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    78
        virtual void GetInstalledMidletParametersL(
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    79
                TMidletParameters& aMidletParameters);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    80
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    81
	static void SetFileName(const TFileName& aFileName);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    82
	static void GetFileName(TFileName& aFileName);
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    83
        
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    84
public:
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    85
        static TInt mHidden;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    86
        static HbDialog* mCurrDlg;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    87
        static TInt iSilentSession;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    88
        static TFileName iFileName;
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    89
        
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    90
        };
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    91
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    92
    }
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    93
d316aecb87fd 201025_02
hgs
parents:
diff changeset
    94
#endif      //  __CApplicationManagementUtility_H__