serviceproviders/sapi_serviceregistry/inc/serviceregistryutilities.h
changeset 19 989d2f495d90
equal deleted inserted replaced
14:a36b1e19a461 19:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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:  Common utilities for ServiceRegistry Service API
       
    15 *                THIS FILE IS GENERATED - DO NOT MODIFY!!!
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef SERVICEREGISTRYUTILITIES_H
       
    21 #define SERVICEREGISTRYUTILITIES_H
       
    22 
       
    23 #include "serviceerrno.h"
       
    24 
       
    25 
       
    26 /**
       
    27  * Common utilities for HelloWorld Service API
       
    28  */
       
    29 class TServiceRegistryUtilities
       
    30     {
       
    31 
       
    32 public: // Construction
       
    33 
       
    34     /**
       
    35      * Constructor.
       
    36      */
       
    37     inline TServiceRegistryUtilities();
       
    38 
       
    39 public: // Utility methods
       
    40 
       
    41     
       
    42     /**
       
    43      * Converts LIW type input Int32 into Symbian type.
       
    44      * @param aInParamList Input parameter list.
       
    45      * @param aName Parameter name.
       
    46      * @param aErrorMessage Reference to error message.
       
    47      * @param aParamIndex Index used to get value from aInParamList
       
    48      *        if name search fails.
       
    49      * @return Converted input string.
       
    50      */
       
    51     TInt32 ConvertInputInt32L( const CLiwGenericParamList& aInParamList,                                  
       
    52                               const TDesC8& aName,                              
       
    53                               const TInt aParamIndex = -1 );
       
    54     
       
    55     /**
       
    56      * Converts Symbian error code into Sapi error code.
       
    57      * Inlined in order to be accessible also from service side.
       
    58      * @param aError Symbian error code.
       
    59      * @return Corresponding SapiErrors
       
    60      */
       
    61     inline SapiErrors GetSapiErrorCode( TInt aError );
       
    62     
       
    63     };
       
    64         
       
    65 // Including inline methods
       
    66 #include "serviceregistryutilities.inl"
       
    67 
       
    68 #endif // SERVICEREGISTRYUTILITIES_H
       
    69