diff -r 9d598f7f02da -r 014f8c42e1d4 java_stubs/javaregistry/clientserver/common/inc/javareguidarrayconv.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java_stubs/javaregistry/clientserver/common/inc/javareguidarrayconv.h Mon Feb 22 17:55:27 2010 +0200 @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: javareguidarrayconv definition +* +*/ + + +#ifndef JAVAREGUIDARRAYCONV_H +#define JAVAREGUIDARRAYCONV_H + +// INCLUDES +#include + +namespace Java +{ +namespace Manager +{ +namespace Registry +{ + +// CLASS DECLARATION +/** + * This class has only static methods, that help to store uids + * in descriptors, and to retrieve them. It is mainly used + * by the javaregistry internal API. + * + * @lib javaregistryclient.lib + * @since S60 v3.2 + */ +class JavaRegUidArrayConverter +{ +public: + + /** + * JavaRegUidArrayConverter::GetTUids method converts the descriptor + * parameter to a RArray storing entry uids. + * + * @since S60 v3.2 + * @param aValue A descriptor storing certificate chains. + * @param aUids [out] Returning entry uids. + * @return One of the system-wide error codes. + */ + static TInt GetTUids(const TDesC& aValue, RArray& aUids); + + /** + * JavaRegUidArrayConverter::GetTUidsL method converts the descriptor + * parameter to a RArray storing entry uids. + * The function may leave with one of the system-wide error codes. + * + * @since S60 v3.2 + * @param aValue A descriptor storing certificate chains. + * @param aUids [out] Returning entry uids. + */ + static void GetTUidsL(const TDesC& aValue, RArray& aUids); + + /** + * JavaRegUidArrayConverter::StoreTUidsL method stores the + * entry uids ( given in the first parameter ), + * into the descriptor paramameter, that is instantiated by + * this method. + * The function may leave with one of the system-wide error codes. + * + * @since S60 v3.2 + * @param aValue The uids to be stored. + * @param aDes [out] Descriptor parameter, storing, and the returning + * the uids. + */ + static void StoreTUidsL(const RArray& aValue, HBufC*& aDes); +}; + +}//namespace Registry +}//namespace Manager +}//namespace Java + +#endif // JAVAREGUIDARRAYCONV_H + +// End of File