java_plat/java_registry_api/inc/mjavaattribute.h
changeset 1 53c80e845d7c
parent 0 3fd91c96c86c
child 3 255dd6e7afb6
equal deleted inserted replaced
0:3fd91c96c86c 1:53c80e845d7c
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Java Registy API header file
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MJAVAATTRIBUTE_H
       
    20 #define MJAVAATTRIBUTE_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 /**
       
    26  * This interface is used to access Java application attributes.
       
    27  * In case of MIDlets, these attributes are defined in
       
    28  * Java Application Descriptor (JAD) and JAR manifest files.
       
    29  */
       
    30 namespace Java
       
    31 {
       
    32 class MJavaAttribute
       
    33 {
       
    34 public:
       
    35     /**
       
    36     * This method returns name of attribute
       
    37     *
       
    38     * Since S60 v5.0
       
    39     */
       
    40     virtual const TDesC& Name() const = 0;
       
    41     /**
       
    42     * This method returns attribute's value
       
    43     *
       
    44     * Since S60 v5.0
       
    45     */
       
    46     virtual const TDesC& Value() const = 0;
       
    47     /**
       
    48     * This method returns if attribut is trusted or not (attribute is trusted if
       
    49     * JAR file is signed and attribute is present in JAR manifest)
       
    50     *
       
    51     * Since S60 v5.0
       
    52     */
       
    53     virtual TBool Trusted() const = 0;
       
    54 
       
    55     virtual ~MJavaAttribute() {};
       
    56 
       
    57 
       
    58 
       
    59 };
       
    60 } // namespace Registry
       
    61 
       
    62 #endif // MJAVAATTRIBUTE_H
       
    63 
       
    64 
       
    65 // End of File