convergedcallengine/spsettings/tsrc/public/basic/spsettingsUT/stubs/FeatMgrStub.cpp
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2003 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:  Stub implementation for needed libraries.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "FeatMgr.h"
       
    22 #include <bldvariant.hrh>
       
    23 #include "TestData.h"
       
    24 
       
    25 TBool FeatureManager::iBtAudioSupported = ETrue;
       
    26 TBool FeatureManager::iHelpSupported = ETrue;
       
    27 TBool FeatureManager::iFeatureIdCsVideoTelephony = ETrue;
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // FeatureManager::InitializeLibL
       
    33 // 
       
    34 // -----------------------------------------------------------------------------
       
    35 void FeatureManager::InitializeLibL()
       
    36     {
       
    37     }
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // FeatureManager::InitializeLibL
       
    41 // 
       
    42 // -----------------------------------------------------------------------------
       
    43 void FeatureManager::UnInitializeLib()
       
    44     {
       
    45     }
       
    46     
       
    47 // -----------------------------------------------------------------------------
       
    48 // FeatureManager::FeatureSupported
       
    49 // 
       
    50 // -----------------------------------------------------------------------------
       
    51 TBool FeatureManager::FeatureSupported( TInt aFeature )
       
    52     {
       
    53     TBool returnValue = EFalse;
       
    54     
       
    55     if ( aFeature == KFeatureIdCsVideoTelephony )
       
    56         {
       
    57         returnValue = iFeatureIdCsVideoTelephony;
       
    58         }
       
    59     else if ( aFeature == KFeatureIdBtAudio )
       
    60         {
       
    61         returnValue = iBtAudioSupported;
       
    62         }
       
    63     else if ( aFeature == KFeatureIdHelp )
       
    64         {
       
    65         returnValue = iHelpSupported;
       
    66         }
       
    67     else if ( aFeature == KFeatureIdAutoRedialForVideoCall )
       
    68         {
       
    69         returnValue = ETrue;
       
    70         }
       
    71     else if ( aFeature == KFeatureIdCommonVoip )
       
    72         {
       
    73         if ( TestData::iCheckSupportedCase )
       
    74             {
       
    75             returnValue = EFalse;
       
    76             }
       
    77         else
       
    78             {
       
    79             returnValue = ETrue;
       
    80             }
       
    81         }
       
    82     else 
       
    83         {
       
    84         // By default any other feature is not supported.
       
    85         returnValue = EFalse;
       
    86         }
       
    87 
       
    88     return returnValue;
       
    89     }
       
    90 
       
    91 //  End of File