javamanager/javaregistry/client/inc/writeablejavaregistryapplicationentry.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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:  writeablejavaregistryapplicationentry definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef WRITEABLEJAVAREGISTRYAPPLICATIONENTRY_H
       
    20 #define WRITEABLEJAVAREGISTRYAPPLICATIONENTRY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32cmn.h>
       
    24 #include "writeablejavaregistryentry.h"
       
    25 #include "javastorage.h"
       
    26 
       
    27 using namespace Java;
       
    28 
       
    29 namespace Java
       
    30 {
       
    31 namespace Manager
       
    32 {
       
    33 namespace Registry
       
    34 {
       
    35 
       
    36 // FORWARD DECLARATION
       
    37 class CWriteableJavaRegistry;
       
    38 class CWriteableJavaRegistryPackageEntry;
       
    39 
       
    40 
       
    41 // CLASS DECLARATION
       
    42 /**
       
    43  * This subclass of CWriteableJavaRegistryEntry supports attributes
       
    44  * for single applications, that can't contain embedded entries.
       
    45  *
       
    46  * @lib javaregistryclient.lib
       
    47  * @since S60 v3.2
       
    48  */
       
    49 class CWriteableJavaRegistryApplicationEntry :
       
    50         public CWriteableJavaRegistryEntry
       
    51 {
       
    52 public:
       
    53 
       
    54     // constructors
       
    55 
       
    56     CWriteableJavaRegistryApplicationEntry(
       
    57         java::storage::JavaStorageApplicationEntry_t& aEntry,
       
    58         TJavaRegistryEntryType aType);
       
    59 
       
    60     // destructor
       
    61     /**
       
    62      * CWriteableJavaRegistryApplicationEntry::
       
    63      * ~CWriteableJavaRegistryApplicationEntry destructor
       
    64      *
       
    65      * @since S60 v3.2
       
    66      */
       
    67     IMPORT_C ~CWriteableJavaRegistryApplicationEntry();
       
    68 
       
    69     // general methods
       
    70     /**
       
    71      * Tells if this application is startable.
       
    72      *
       
    73      * @since S60 v3.2
       
    74      * @return ETrue if the application is startable, EFalse otherwise.
       
    75      *         Default value if not set: ETrue.
       
    76      */
       
    77     IMPORT_C TBool IsStartable() const;
       
    78 
       
    79 
       
    80     /**
       
    81      * Tells if this application must be shown in Application Shell or
       
    82      * it must rather be hidden.
       
    83      *
       
    84      * @since S60 v3.2
       
    85      * @return ETrue if the application is shown in Application Shell,
       
    86      *         EFalse otherwise.
       
    87      *         Default value if not set: ETrue.
       
    88      */
       
    89     IMPORT_C TBool IsVisible() const;
       
    90 
       
    91 
       
    92     /**
       
    93      * Tells if this application is resident.
       
    94      *
       
    95      * @since S60 v3.2
       
    96      * @return ETrue if the application is resident, EFalse otherwise.
       
    97      *         Default value if not set: EFalse.
       
    98      */
       
    99     IMPORT_C TBool IsResident() const;
       
   100 
       
   101 
       
   102     /**
       
   103      * CWriteableJavaRegistryApplicationEntry::PackageEntryL method
       
   104      * gets a reference to the install package entry, which is the parent
       
   105      * of this application.
       
   106      * The function may leave with one of the system-wide error codes.
       
   107      *
       
   108      * @since S60 v3.2
       
   109      * @return A pointer to a CJavaRegistryEntry object. Caller takes
       
   110      *         over the ownership of the object being transferred.
       
   111      */
       
   112     IMPORT_C CWriteableJavaRegistryPackageEntry* PackageEntryL() const;
       
   113 
       
   114     /**
       
   115      * CWriteableJavaRegistryAplicationEntry::AttributeL method gets the
       
   116      * additional attribute.
       
   117      *
       
   118      * @since S60 v5.0
       
   119      * @param aName The name of the searched attribute.
       
   120      * @return MJavaAttribute poiter to instance, which contain attribute.
       
   121      * If attribute doesn't exist return NULL.
       
   122      */
       
   123     IMPORT_C virtual const MJavaAttribute* AttributeL(const TDesC& aName) const;
       
   124 
       
   125     /**
       
   126      * CWriteableJavaRegistryApplicationEntry::AttributesL method gets the
       
   127      * additional attributes array.
       
   128      *
       
   129      * @since S60 v5.0
       
   130      * @return RPointerArray& with all additional attributes.
       
   131      */
       
   132     IMPORT_C virtual const RPointerArray<MJavaAttribute>& AttributesL() const;
       
   133 
       
   134 
       
   135 private: // Data
       
   136 
       
   137     CWriteableJavaRegistryPackageEntry* iWriteablePackage;
       
   138 
       
   139 };
       
   140 
       
   141 } // namespace Registry
       
   142 } // namespace Manager
       
   143 } // namespace Java
       
   144 
       
   145 #endif // WRITEABLEJAVAREGISTRYAPPLICATIONENTRY_H
       
   146 
       
   147 // End of File