resourcemgmt/hwresourcesmgr/server/src/HWRMFeatureMgr.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 // INCLUDE FILES
       
    17 #include "HWRMFeatureMgr.h"
       
    18 #include <featmgr/featurecontrol.h> 
       
    19 
       
    20 
       
    21 // -----------------------------------------------------------------------------
       
    22 // HWRMFeatureMgr::IsFeatureSupported
       
    23 // Checks whether feature is supported
       
    24 // -----------------------------------------------------------------------------
       
    25 
       
    26 TBool HWRMFeatureMgr::IsFeatureSupported(const TUid aFeatureUid)
       
    27     {
       
    28     RFeatureControl featureControl;
       
    29     
       
    30     TInt err = featureControl.Open();
       
    31 
       
    32     TBool featureSupported(EFalse);
       
    33 
       
    34     if(err == KErrNone)
       
    35         {
       
    36         featureSupported = featureControl.FeatureSupported(aFeatureUid);
       
    37         }
       
    38     
       
    39     featureControl.Close();
       
    40 
       
    41     return featureSupported;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // HWRMFeatureMgr::HWRMFeatureMgr
       
    46 // C++ constructor
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 
       
    50 HWRMFeatureMgr::HWRMFeatureMgr()
       
    51     {
       
    52     }
       
    53 
       
    54