sipplugins/sippsipsettingsui/tsrc/UT_sipsettingsui/src/FeatMgr.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *
       
    16 */
       
    17 #include "FeatMgr.h"
       
    18 
       
    19 
       
    20 // =============================================================================
       
    21 // Stub variables for FeatureManager
       
    22 // =============================================================================
       
    23 
       
    24 TBool FeatureManager::iIsCameraSupported = ETrue;
       
    25 TBool FeatureManager::iIsMultimediaSharingSupported = ETrue;
       
    26 TBool FeatureManager::iIsIdHelpSupported = ETrue;
       
    27 
       
    28 
       
    29 // =============================================================================
       
    30 // Stub functions for FeatureManager
       
    31 // =============================================================================
       
    32 
       
    33 EXPORT_C TBool FeatureManager::FeatureSupported( TInt aFeature )
       
    34     {
       
    35     if (aFeature == KFeatureIdCamera)
       
    36        return iIsCameraSupported;
       
    37     else if (aFeature == KFeatureIdMultimediaSharing)
       
    38        return iIsMultimediaSharingSupported;
       
    39     else if ( aFeature == KFeatureIdHelp )
       
    40     	return iIsIdHelpSupported;
       
    41     else 
       
    42        return EFalse;
       
    43     }
       
    44 
       
    45 EXPORT_C void FeatureManager::CameraNotSupported()
       
    46     {
       
    47     iIsCameraSupported = EFalse;
       
    48     }
       
    49 
       
    50 EXPORT_C void FeatureManager::CameraSupported()
       
    51     {
       
    52     iIsCameraSupported = ETrue;
       
    53     }
       
    54 	
       
    55 EXPORT_C void FeatureManager::MultimediaSharingNotSupported()
       
    56     {
       
    57     iIsMultimediaSharingSupported = EFalse;
       
    58     }
       
    59 
       
    60 EXPORT_C void FeatureManager::MultimediaSharingSupported()
       
    61     {
       
    62     iIsMultimediaSharingSupported = ETrue;
       
    63     }
       
    64 
       
    65 EXPORT_C void FeatureManager::IDHelpSupported()
       
    66 	{
       
    67 	iIsIdHelpSupported = ETrue;
       
    68 	}
       
    69 EXPORT_C void FeatureManager::IDHelpNotSupported()
       
    70 	{
       
    71 	iIsIdHelpSupported = EFalse;
       
    72 	}
       
    73 	
       
    74 void FeatureManager::InitializeLibL()
       
    75     {
       
    76 
       
    77     }
       
    78 
       
    79 void FeatureManager::UnInitializeLib()
       
    80     {
       
    81 
       
    82     }