java_stubs/javaregistry/clientserver/common/inc/javareguidarrayconv.h
branchRCL_3
changeset 8 014f8c42e1d4
child 11 0fdfe802150c
equal deleted inserted replaced
7:9d598f7f02da 8:014f8c42e1d4
       
     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:  javareguidarrayconv definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef JAVAREGUIDARRAYCONV_H
       
    20 #define JAVAREGUIDARRAYCONV_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 
       
    25 namespace Java
       
    26 {
       
    27 namespace Manager
       
    28 {
       
    29 namespace Registry
       
    30 {
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * This class has only static methods, that help to store uids
       
    35  * in descriptors, and to retrieve them. It is mainly used
       
    36  * by the javaregistry internal API.
       
    37  *
       
    38  * @lib javaregistryclient.lib
       
    39  * @since S60 v3.2
       
    40  */
       
    41 class JavaRegUidArrayConverter
       
    42 {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * JavaRegUidArrayConverter::GetTUids method converts the descriptor
       
    47      * parameter to a RArray<TUid> storing entry uids.
       
    48      *
       
    49      * @since S60 v3.2
       
    50      * @param aValue A descriptor storing certificate chains.
       
    51      * @param aUids [out] Returning entry uids.
       
    52      * @return One of the system-wide error codes.
       
    53      */
       
    54     static TInt GetTUids(const TDesC& aValue, RArray<TUid>& aUids);
       
    55 
       
    56     /**
       
    57      * JavaRegUidArrayConverter::GetTUidsL method converts the descriptor
       
    58      * parameter to a RArray<TUid> storing entry uids.
       
    59      * The function may leave with one of the system-wide error codes.
       
    60      *
       
    61      * @since S60 v3.2
       
    62      * @param aValue A descriptor storing certificate chains.
       
    63      * @param aUids [out] Returning entry uids.
       
    64      */
       
    65     static void GetTUidsL(const TDesC& aValue, RArray<TUid>& aUids);
       
    66 
       
    67     /**
       
    68      * JavaRegUidArrayConverter::StoreTUidsL method stores the
       
    69      * entry uids ( given in the first parameter ),
       
    70      * into the descriptor paramameter, that is instantiated by
       
    71      * this method.
       
    72      * The function may leave with one of the system-wide error codes.
       
    73      *
       
    74      * @since S60 v3.2
       
    75      * @param aValue The uids to be stored.
       
    76      * @param aDes [out] Descriptor parameter, storing, and the returning
       
    77      *        the uids.
       
    78      */
       
    79     static void StoreTUidsL(const RArray<TUid>& aValue, HBufC*& aDes);
       
    80 };
       
    81 
       
    82 }//namespace Registry
       
    83 }//namespace Manager
       
    84 }//namespace Java
       
    85 
       
    86 #endif // JAVAREGUIDARRAYCONV_H
       
    87 
       
    88 // End of File