tsrc/featmgrstub/src/FeatMgr.cpp
changeset 15 ccd8e69b5392
parent 2 b31261fd4e04
child 20 e8be2c2e049d
child 22 496ad160a278
equal deleted inserted replaced
2:b31261fd4e04 15:ccd8e69b5392
     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 
       
    27 
       
    28 // =============================================================================
       
    29 // Stub functions for FeatureManager
       
    30 // =============================================================================
       
    31 
       
    32 EXPORT_C TBool FeatureManager::FeatureSupported( TInt aFeature )
       
    33     {
       
    34     if (aFeature == KFeatureIdCamera)
       
    35        return iIsCameraSupported;
       
    36     else if (aFeature == KFeatureIdMultimediaSharing)
       
    37        return iIsMultimediaSharingSupported;
       
    38     else 
       
    39        return EFalse;
       
    40     }
       
    41 
       
    42 EXPORT_C void FeatureManager::CameraNotSupported()
       
    43     {
       
    44     iIsCameraSupported = EFalse;
       
    45     }
       
    46 
       
    47 EXPORT_C void FeatureManager::CameraSupported()
       
    48     {
       
    49     iIsCameraSupported = ETrue;
       
    50     }
       
    51 	
       
    52 EXPORT_C void FeatureManager::MultimediaSharingNotSupported()
       
    53     {
       
    54     iIsMultimediaSharingSupported = EFalse;
       
    55     }
       
    56 
       
    57 EXPORT_C void FeatureManager::MultimediaSharingSupported()
       
    58     {
       
    59     iIsMultimediaSharingSupported = ETrue;
       
    60     }
       
    61 	
       
    62 void FeatureManager::InitializeLibL()
       
    63     {
       
    64 
       
    65     }
       
    66 
       
    67 void FeatureManager::UnInitializeLib()
       
    68     {
       
    69 
       
    70     }