jrt_plat/java_registry_api/inc/javaregistryentry.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 22 Feb 2010 17:55:27 +0200
branchRCL_3
changeset 8 014f8c42e1d4
parent 1 53c80e845d7c
child 14 64bf9e47f05e
permissions -rw-r--r--
Revision: 201007
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-2007 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: Java Registy API header file
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    15
*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    16
*/
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
#ifndef JAVAREGISTRYENTRY_H
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    20
#define JAVAREGISTRYENTRY_H
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
#include <e32base.h>
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    23
#include <e32cmn.h>
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    24
#include <f32file.h>
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    25
#include "javaregistryentrytype.h"
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    26
#include "javaattribute.h"
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    27
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
namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    30
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    31
namespace Manager
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    32
{
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    33
namespace Registry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    34
{
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
// FORWARD DECLARATION
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    37
class CWriteableJavaRegistryEntry;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    38
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    39
}// namespace Registry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    40
}// namespace Manager
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    41
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    42
/**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    43
 * This class provides the Domain API for entries in JavaRegistry.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    44
 * This class is intended for further derivation.
53c80e845d7c Revision: v2.1.8
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
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    46
 * entries.
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
 * @lib javaregistryclient.lib
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    49
 * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    50
 */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    51
class CJavaRegistryEntry : public CBase
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
public:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    54
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
     * Gets the Uid of this registry entry.
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
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    59
     * @return A TUid object.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    60
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    61
    IMPORT_C TUid Uid() const;
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
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    64
     * Gets the type of this registry entry.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    65
     * Enumeration TJavaRegistryEntryType defines the currently possible
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    66
     * options. Mandatory property.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    67
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    68
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    69
     * @return Type of this registry entry.
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 TJavaRegistryEntryType Type() const;
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
     * Gets the drive letter where the content of the installation package
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    75
     * has been installed.
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 Drive letter where the content of the installation package
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    79
     *         has been installed.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    80
     *         Default value if not set: EDriveC.
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 TDriveNumber Drive() const;
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
     * Gets the name of the entity (midlet, suite, etc.) this entry
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    86
     * represents.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    87
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    88
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    89
     * @return Name of the entity this entry represents.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    90
     *         Default value if not set: KNullDesC.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    91
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    92
    IMPORT_C const TDesC& Name() const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    93
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    94
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    95
     * Returns the number of certificate chains belonging to the entity
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    96
     * this entry represents.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    97
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    98
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
    99
     * @return Number of certificate chains.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   100
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   101
    IMPORT_C TInt NumberOfCertificateChains() const;
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
    /**
53c80e845d7c Revision: v2.1.8
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
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   105
     * represents consisting of X.509 version 3 certificates
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   106
     * in their DER encoded format concatenated together
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   107
     * without any separators.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   108
     * All certificate chains are returned indifferent if they could be
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   109
     * validated or not.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   110
     * This format is directly suitable to be used with
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   111
     * function CX509CertChain::DecodeCertsL().
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   112
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   113
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
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
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   115
     *               retrieved.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   116
     * @return N-th certificate chain
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   117
     *         Default value if not set: KNullDesC8.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   118
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   119
    IMPORT_C const TDesC8& CertificateChain(TInt aChain) const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   120
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
     * Returns the content id of the entity this entry represents.
53c80e845d7c Revision: v2.1.8
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
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   124
     * has enough right to be launched or not.
53c80e845d7c Revision: v2.1.8
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
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   126
     * protected or not.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   127
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   128
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   129
     * @return Content id of the entity this entry represent or
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   130
     *          KNullDesC if the entity is not DRM protected.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   131
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   132
    IMPORT_C const TDesC& DrmContentId() const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   133
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   134
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   135
     * CJavaRegistryEntry::~CJavaRegistryEntry method
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   136
     * Destructor
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   137
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   138
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   139
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   140
    IMPORT_C ~CJavaRegistryEntry();
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
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   143
     * CJavaRegistryEntry::Attribute method gets the
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   144
     * additional attribute.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   145
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   146
     * @since S60 v5.0
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   147
     * @param aName The name the searched attribute.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   148
     * @return MJavaAttribute poiter to instance, which contain attribute.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   149
     * If attribute doesn't exist return NULL.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   150
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   151
    IMPORT_C const MJavaAttribute*
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   152
    CJavaRegistryEntry::AttributeL(const TDesC& aName) const;
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
    /**
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   155
     * CJavaRegistryEntry::Attributes method gets the
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   156
     * array of additional attributes.
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
     * @since S60 v5.0
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   159
     * @return RPointerArray& with all additional attributes.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   160
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   161
    IMPORT_C const RPointerArray<MJavaAttribute>&
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   162
    CJavaRegistryEntry::AttributesL() const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   163
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   164
protected:
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   165
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
     * CJavaRegistryEntry::CJavaRegistryEntry constructor
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
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   170
     * @param aWritableEntry Pointer to a writable entry, to delegate
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   171
     *          getter methods. Pointer ownership taken.
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   172
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   173
    CJavaRegistryEntry(Java::Manager::Registry::
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   174
                       CWriteableJavaRegistryEntry* aWritableEntry);
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   175
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
     * CJavaRegistryEntry::WritableEntry method returns the member
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   178
     * of this class;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   179
     *
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   180
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   181
     * @return Returns the member of this class.
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
    Java::Manager::Registry::
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   184
    CWriteableJavaRegistryEntry* WritableEntry() const;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   185
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   186
protected: // Data
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   187
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
     * CJavaRegistryEntry::iWritableEntry member
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   191
     * Pointer Owned
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
     * @since S60 v3.2
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   194
     */
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   195
    Java::Manager::Registry::CWriteableJavaRegistryEntry* iWritableEntry;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   196
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   197
private: // Data
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   198
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   199
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   200
    RPointerArray<MJavaAttribute> iAttributes;
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   201
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   202
};
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   203
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   204
} // namespace Java
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   205
53c80e845d7c Revision: v2.1.8
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff changeset
   206
#endif // JAVAREGISTRYENTRY_H