java_plat/java_registry_api/inc/javaregistryentry.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 07 Jan 2010 16:18:57 +0200
changeset 0 3fd91c96c86c
permissions -rw-r--r--
Revision: v2.1.7 Kit: 201001
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     1
/*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     3
* All rights reserved.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
3fd91c96c86c Revision: v2.1.7
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".
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     8
*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    11
*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    12
* Contributors:
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    13
*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    14
* Description: Java Registy API header file
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
*/
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    17
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    18
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    19
#ifndef JAVAREGISTRYENTRY_H
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
#define JAVAREGISTRYENTRY_H
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    21
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    22
#include <e32base.h>
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
#include <e32cmn.h>
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
#include <f32file.h>
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
#include "javaregistryentrytype.h"
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
#include "javaattribute.h"
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    28
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    29
namespace Java
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
{
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
namespace Manager
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
{
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
namespace Registry
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
{
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    35
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    36
// FORWARD DECLARATION
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    37
class CWriteableJavaRegistryEntry;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
}// namespace Registry
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    40
}// namespace Manager
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    41
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
/**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
 * This class provides the Domain API for entries in JavaRegistry.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
 * This class is intended for further derivation.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    45
 * It supports only those attributes which exist in all types of
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
 * entries.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    47
 *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    48
 * @lib javaregistryclient.lib
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
 * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
 */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
class CJavaRegistryEntry : public CBase
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    52
{
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    53
public:
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    55
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    56
     * Gets the Uid of this registry entry.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    57
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    58
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
     * @return A TUid object.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    60
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
    IMPORT_C TUid Uid() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    62
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    63
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
     * Gets the type of this registry entry.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
     * Enumeration TJavaRegistryEntryType defines the currently possible
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
     * options. Mandatory property.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    68
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
     * @return Type of this registry entry.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    70
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    71
    IMPORT_C TJavaRegistryEntryType Type() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    72
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    73
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    74
     * Gets the drive letter where the content of the installation package
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    75
     * has been installed.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    76
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    77
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    78
     * @return Drive letter where the content of the installation package
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    79
     *         has been installed.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
     *         Default value if not set: EDriveC.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    81
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    82
    IMPORT_C TDriveNumber Drive() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    83
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    84
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    85
     * Gets the name of the entity (midlet, suite, etc.) this entry
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    86
     * represents.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    88
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
     * @return Name of the entity this entry represents.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
     *         Default value if not set: KNullDesC.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    91
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    92
    IMPORT_C const TDesC& Name() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    93
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    94
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    95
     * Returns the number of certificate chains belonging to the entity
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    96
     * this entry represents.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    97
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    98
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    99
     * @return Number of certificate chains.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   100
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   101
    IMPORT_C TInt NumberOfCertificateChains() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   102
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   103
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   104
     * Returns the n-th certificate chain of the entity this entry
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   105
     * represents consisting of X.509 version 3 certificates
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   106
     * in their DER encoded format concatenated together
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   107
     * without any separators.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   108
     * All certificate chains are returned indifferent if they could be
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   109
     * validated or not.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   110
     * This format is directly suitable to be used with
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   111
     * function CX509CertChain::DecodeCertsL().
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   112
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   113
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   114
     * @param aChain Zero-based index of the certificate chain to be
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   115
     *               retrieved.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   116
     * @return N-th certificate chain
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   117
     *         Default value if not set: KNullDesC8.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   118
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   119
    IMPORT_C const TDesC8& CertificateChain(TInt aChain) const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   120
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   121
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   122
     * Returns the content id of the entity this entry represents.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   123
     * The content id can be used to check if a DRM protected entity
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   124
     * has enough right to be launched or not.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   125
     * The method can also be used to check if the entity is DRM
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   126
     * protected or not.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   127
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   128
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   129
     * @return Content id of the entity this entry represent or
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   130
     *          KNullDesC if the entity is not DRM protected.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   131
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   132
    IMPORT_C const TDesC& DrmContentId() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   133
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   134
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   135
     * CJavaRegistryEntry::~CJavaRegistryEntry method
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   136
     * Destructor
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   137
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   138
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   139
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   140
    IMPORT_C ~CJavaRegistryEntry();
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   141
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   142
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   143
     * CJavaRegistryEntry::Attribute method gets the
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   144
     * additional attribute.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   145
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   146
     * @since S60 v5.0
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   147
     * @param aName The name the searched attribute.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   148
     * @return MJavaAttribute poiter to instance, which contain attribute.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   149
     * If attribute doesn't exist return NULL.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   150
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   151
    IMPORT_C const MJavaAttribute*
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   152
    CJavaRegistryEntry::AttributeL(const TDesC& aName) const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   153
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   154
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   155
     * CJavaRegistryEntry::Attributes method gets the
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   156
     * array of additional attributes.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   157
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   158
     * @since S60 v5.0
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   159
     * @return RPointerArray& with all additional attributes.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   160
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   161
    IMPORT_C const RPointerArray<MJavaAttribute>&
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   162
    CJavaRegistryEntry::AttributesL() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   163
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   164
protected:
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   165
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   166
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   167
     * CJavaRegistryEntry::CJavaRegistryEntry constructor
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   168
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   169
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   170
     * @param aWritableEntry Pointer to a writable entry, to delegate
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   171
     *          getter methods. Pointer ownership taken.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   172
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   173
    CJavaRegistryEntry(Java::Manager::Registry::
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   174
                       CWriteableJavaRegistryEntry* aWritableEntry);
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   175
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   176
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   177
     * CJavaRegistryEntry::WritableEntry method returns the member
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   178
     * of this class;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   179
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   180
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   181
     * @return Returns the member of this class.
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   182
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   183
    Java::Manager::Registry::
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   184
    CWriteableJavaRegistryEntry* WritableEntry() const;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   185
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   186
protected: // Data
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   187
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   188
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   189
    /**
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   190
     * CJavaRegistryEntry::iWritableEntry member
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   191
     * Pointer Owned
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   192
     *
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   193
     * @since S60 v3.2
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   194
     */
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   195
    Java::Manager::Registry::CWriteableJavaRegistryEntry* iWritableEntry;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   196
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   197
private: // Data
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   198
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   199
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   200
    RPointerArray<MJavaAttribute> iAttributes;
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   201
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   202
};
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   203
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   204
} // namespace Java
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   205
3fd91c96c86c Revision: v2.1.7
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   206
#endif // JAVAREGISTRYENTRY_H