javamanager/javaregistry/legacy/server/inc/javaregcachedentry.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  javaregcachedentry definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef JAVAREGCACHEDENTRY_H
       
    20 #define JAVAREGCACHEDENTRY_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 namespace Java
       
    26 {
       
    27 namespace Manager
       
    28 {
       
    29 namespace Registry
       
    30 {
       
    31 
       
    32 class CJavaProperty;
       
    33 
       
    34 /**
       
    35  * This is a storage class to cache some information about
       
    36  * the registry entries.
       
    37  *
       
    38  * @since S60 v3.2
       
    39  */
       
    40 // CLASS DECLARATION
       
    41 NONSHARABLE_CLASS(CJavaRegCachedEntry) :
       
    42         public CBase
       
    43 {
       
    44 
       
    45 public:
       
    46 
       
    47     /**
       
    48      * Constructor
       
    49      *
       
    50      * @since S60 v3.2
       
    51      * @param aUid The uid of the registry entry.
       
    52      * @param aPath The path to the file containing the registry entry.
       
    53      * @param aActive The entry is active, if the media is present,
       
    54      *                wich this entry is installed to.
       
    55      * @param aTemp This boolean means, that true:this is a temporary
       
    56      *              cacheentry (placeholder for the allocated uid)
       
    57      *              false: or a normal entry.
       
    58      */
       
    59     CJavaRegCachedEntry(const TUid& aUid,
       
    60     const TDesC& aPath,
       
    61     TBool aActive,
       
    62     TBool aTemp);
       
    63 
       
    64     /**
       
    65      * Constructor
       
    66      * @since S60 v3.2
       
    67      */
       
    68     CJavaRegCachedEntry();
       
    69 
       
    70     /**
       
    71      * Destructor
       
    72      * @since S60 v3.2
       
    73      */
       
    74     ~CJavaRegCachedEntry();
       
    75 
       
    76 public:
       
    77 
       
    78     // The uid of the registry entry.
       
    79     TUid iUid;
       
    80 
       
    81     // The path to the file containing the registry entry.
       
    82     TPath iPath;
       
    83 
       
    84     // The entry is active, if the media is present,
       
    85     // wich this entry is installed to.
       
    86     TBool iActive;
       
    87 
       
    88     // This boolean means, that true:this is a temporary
       
    89     // cacheentry (placeholder for the allocated uid)
       
    90     // false: or a normal entry.
       
    91     TBool iTemp;
       
    92 
       
    93     // Stores the property value of entries.
       
    94     RPointerArray<TDesC> iIndexes;
       
    95 
       
    96 };
       
    97 
       
    98 }//namespace Registry
       
    99 }//namespace Manager
       
   100 }//namespace Java
       
   101 
       
   102 #endif // JAVAREGCACHEDENTRY_H
       
   103 
       
   104 // End of File