jrt_plat/java_registry_api/inc/javaregistry.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 18 Jan 2010 20:12:00 +0200
changeset 1 53c80e845d7c
permissions -rw-r--r--
Revision: v2.1.8 Kit: 201003
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
* Contributors:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
* Description:  The main class of Java Registy API. Java Registy API
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
*               can be used to query the installed Java applications
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
*               and their properties.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
*/
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
// JAVAREGISTRY.H
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
#ifndef JAVAREGISTRY_H
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
#define JAVAREGISTRY_H
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
#include <e32base.h>
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
#include "javaregistryentrytype.h"
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
namespace Manager
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
namespace Registry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    37
// FORWARD DECLARATION
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
class CWriteableJavaRegistry;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    40
}// namespace Registry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    41
}// namespace Manager
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
}// namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
class CJavaRegistryEntry;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
/**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
 * This class provides the Platform API for JavaRegistry.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
 * It allows for clients to retrieve properties of
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
 * Java install packages, applications, services etc.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
 *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    53
 * @lib javaregistryclient.lib
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
 * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
 */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
class CJavaRegistry : public CBase
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    57
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
    // Constructors
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    60
public:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    62
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
     * Creates a CJavaRegistry object.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
     * @return A pointer to a CJavaRegistry object.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    68
     *         Caller takes over the ownership of the object being
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
     *         transferred.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    70
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    71
    IMPORT_C static CJavaRegistry* NewL();
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    73
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    74
     * Creates a CJavaRegistry object.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    75
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    76
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    77
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    78
     * @return A pointer to a CJavaRegistry object.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    79
     *         Caller takes over the ownership of the object being
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
     *         transferred.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    81
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    82
    IMPORT_C static CJavaRegistry* NewLC();
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    83
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    84
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    85
public:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    86
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
    // Generic methods
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    88
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
     * Returns whether registry entry with the specified Uid exists.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    91
     * Registry entries representing entities installed on
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    92
     * removable media which are currently not present in the device
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    93
     * are considered as not existent.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    94
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    95
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    96
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    97
     * @param aUid The Uid to be checked.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    98
     * @return ETrue if the registry entry exists, EFalse otherwise.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    99
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   100
    IMPORT_C TBool RegistryEntryExistsL(const TUid& aUid) const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   101
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   102
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   103
     * Returns an array of Uids of the existing registry entries.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   104
     * Uids of registry entries representing entities installed on
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   105
     * removable media which are currently not present in the device
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   106
     * are not returned.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   107
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   108
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   109
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   110
     * @param aUids [out] Uids of the registry entries.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   111
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   112
    IMPORT_C void GetRegistryEntryUidsL(RArray<TUid>& aUids) const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   113
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   114
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   115
     * Returns an array of Uids of the existing registry entries.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   116
     * Entries are searched by the specified type.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   117
     * Uids of registry entries representing entities installed on
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   118
     * removable media which are currently not present in the device
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   119
     * are not returned.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   120
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   121
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   122
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   123
     * @param aType Type of registry entries whose Uids are to be returned.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   124
     * @param aUids [out] Uids of the matching registry entries.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   125
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   126
    IMPORT_C void GetRegistryEntryUidsL
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   127
    (TJavaRegistryEntryType aType, RArray<TUid>& aUids) const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   128
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   129
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   130
     * Returns the corresponding registry entry for a given Uid.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   131
     * The returned entry can be casted to the appropriate subclass
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   132
     * according to the type property. If type is in the package range
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   133
     * ( EGeneralPackage <= entryType < EGeneralApplication ), it can
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   134
     * be casted to CJavaRegistryPackageEntry, and if type is
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   135
     * in the application range ( EGeneralApplication <= entryType ),
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   136
     * it can be casted to CJavaRegistryApplicationEntry.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   137
     * Registry entries representing entities installed on
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   138
     * removable media which are currently not present in the device
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   139
     * are not returned.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   140
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   141
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   142
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   143
     * @param aUid The Uid of the entry to be retrieved
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   144
     * @return The returned registry entry or null if registry entry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   145
     *         not found. Caller takes over the ownership of the object
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   146
     *         being transferred.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   147
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   148
    IMPORT_C CJavaRegistryEntry* RegistryEntryL(const TUid& aUid) const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   149
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   150
    // Destructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   151
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   152
     * CJavaRegistry::~CJavaRegistry destructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   153
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   154
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   155
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   156
    virtual ~CJavaRegistry();
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   157
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   158
private:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   159
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   160
    // Constructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   161
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   162
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   163
     * CJavaRegistry::CJavaRegistry constructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   164
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   165
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   166
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   167
    CJavaRegistry();
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   168
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   169
    // 2nd phase constructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   170
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   171
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   172
     * CJavaRegistry::ConstructL method
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   173
     * The function may leave with one of the system-wide error codes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   174
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   175
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   176
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   177
    void ConstructL();
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   178
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   179
private: // Data
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   180
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   181
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   182
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   183
     * CJavaRegistry::iJavaReg member
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   184
     * Pointer Owned
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   185
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   186
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   187
    Java::Manager::Registry::CWriteableJavaRegistry* iJavaReg;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   188
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   189
};
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   190
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   191
}// namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   192
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   193
#endif // JAVAREGISTRY_H