convergedcallengine/serviceselector/inc/cssserviceutilities.h
changeset 51 12bc758d6a02
parent 48 78df25012fda
child 53 25b8d29b7c59
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
     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 "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:  This file contains the header file of the
       
    15 *              : CSsServiceUtilities class.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSSSERVICEUTILITIES_H
       
    22 #define CSSSERVICEUTILITIES_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include "cconvergedserviceselector.h"
       
    26 #include <e32base.h>
       
    27 
       
    28 // CONSTANTS
       
    29 //None
       
    30 
       
    31 // MACROS
       
    32 //None
       
    33 
       
    34 // DATA TYPES
       
    35 //None.
       
    36 
       
    37 // FUNCTION PROTOTYPES
       
    38 //None
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 //None
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 /**
       
    46 *  Static interface class for service selector utilities
       
    47 *
       
    48 *  @lib ServiceSelector.lib
       
    49 *  @since Series60_5.0
       
    50 */
       
    51 NONSHARABLE_CLASS( SsServiceUtilities )
       
    52     {
       
    53 
       
    54     public: // New functions
       
    55         
       
    56         /**
       
    57         * Returns service selector by calltype. Leaves on failure.
       
    58         * @param aCallType        Call type
       
    59         * @param aSendKey         ETrue if SendKey used
       
    60         * @return CServiceHandler Call type handler.
       
    61         */
       
    62         static CServiceHandler* ServiceHandlerByCallTypeL( 
       
    63             CConvergedServiceSelector::TSsCallType aCallType,
       
    64             TBool aSendKey );
       
    65             
       
    66         /**
       
    67         * Sets the results to TSsResult by params (calltype, service id and 
       
    68         * registration status).
       
    69         * @param aResult        Results filled by parameters.
       
    70         * @param aCallType      Call type
       
    71         * @param aServiceId     Current service if of the call.
       
    72         * @param aEnabled       ETrue if service enabled
       
    73         */
       
    74         static void SetServiceResult( 
       
    75             CConvergedServiceSelector::TSsResult& aResult, 
       
    76             CConvergedServiceSelector::TSsCallType aCallType,
       
    77             TUint aServiceId,
       
    78             TBool aEnabled );
       
    79         
       
    80         /**
       
    81         * Checks is the string valid for cs voice call.
       
    82         * @param aString String to be checked.
       
    83         * @return ETrue if valid cs number.
       
    84         */
       
    85         static TBool IsValidCsNumber( const TDesC& aString );
       
    86         
       
    87     };
       
    88 
       
    89 #endif      // CSSSERVICEUTILITIES_H
       
    90             
       
    91 // End of File