smf/smfcredentialmgr/smfcredmgrclient/smfcredmgrclientutil.h
changeset 14 a469c0e6e7fb
child 24 1cee9f1b95e0
equal deleted inserted replaced
13:b5d63d5fc252 14:a469c0e6e7fb
       
     1 /**
       
     2  * Copyright (c) 2010 Sasken Communication Technologies Ltd.
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the "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  * Pritam Roy Biswas, Sasken Communication Technologies Ltd - Initial contribution
       
    11  *
       
    12  * Description:
       
    13  *  Header file for the utility to handle conversion between symbian and Qt 
       
    14  *  in Credential Manager.
       
    15  */
       
    16 
       
    17 #ifndef SMFQTSYMBIANCONVERSIONUTILS_H_
       
    18 #define SMFQTSYMBIANCONVERSIONUTILS_H_
       
    19 
       
    20 #include <QUrl>
       
    21 #include <QDateTime>
       
    22 #include <private/qcore_symbian_p.h>
       
    23 #include <QtCore/qglobal.h>
       
    24 #include <qstring.h>
       
    25 #include <QStringList>
       
    26 #include <qbytearray.h>
       
    27 #include <qlist.h>
       
    28 
       
    29 #ifdef Q_OS_SYMBIAN
       
    30 #include <e32base.h>
       
    31 #include <e32std.h>
       
    32 #include <e32cmn.h>
       
    33 #include <s32strm.h>
       
    34 #include <S32MEM.H> 
       
    35 #include <e32des16.h> 
       
    36 #include <smfcredmgrclientdatastruct.h>
       
    37 #include <smfcredmgrclientglobal.h> 
       
    38 #endif
       
    39 /**
       
    40  * Utility to handle conversion between symbian and Qt in Credential Manager.
       
    41  */
       
    42 namespace smfcredmgrclientutil
       
    43 	{
       
    44 
       
    45 	/**
       
    46 	 * Method to convert QList<QUrl> type to RPointerArray<HBufC> type  
       
    47 	 * @param URLList List of URL in Qt
       
    48 	 * @return the symbian list of thype RPointerArray<HBufC>
       
    49 	 */
       
    50 	RPointerArray<HBufC> convertToSymbianURLList(QList<QUrl> URLList);
       
    51 
       
    52 	/** 
       
    53 	 * Method to convert QStringList type to RPointerArray<HBufC>
       
    54 	 * @param PluginList The QStringList to be converted
       
    55 	 * @return The Converted plugin list in RPointerArray<HBufC> 
       
    56 	 */
       
    57 	RPointerArray<HBufC> convertToSymbianPluginList(QStringList PluginList);
       
    58 
       
    59 	/**
       
    60 	 * Conversion method
       
    61 	 * @param aPluginList List in RPointerArray<HBufC> 
       
    62 	 * @param ListInQt List in QStringList
       
    63 	 */
       
    64 	void convertToQStringList(RPointerArray<HBufC> aPluginList,
       
    65 			QStringList &ListInQt);
       
    66 
       
    67 	/**
       
    68 	 * Conversion method
       
    69 	 * @param aURLList List in RPointerArray<HBufC> 
       
    70 	 * @param List List in QStringList
       
    71 	 */
       
    72 	void convertToQUrlList(RPointerArray<HBufC> aURLList, QList<QUrl> &List);
       
    73 
       
    74 	/**
       
    75 	 * Conversion Method
       
    76 	 * @param aArray Array in RArray<TSmfAuthToken>
       
    77 	 * @param Params Array in SmfAuthParams
       
    78 	 */
       
    79 	void RArrayToSmfAuthParams(RArray<TSmfAuthToken> aArray,
       
    80 			SmfAuthParams& Params);
       
    81 
       
    82 	/**
       
    83 	 * Conversion Method
       
    84 	 * @param aArray Array in RArray<TSmfAuthToken>
       
    85 	 * @param Params Array in SmfAuthParams
       
    86 	 */
       
    87 	void SmfAuthParamstoRArray(SmfAuthParams Params, 
       
    88 			RArray<TSmfAuthToken>& aArray);
       
    89 
       
    90 	}
       
    91 
       
    92 #endif /* SMFQTSYMBIANCONVERSIONUTILS_H_ */