codhandler/codeng/src/RFeatMgr.cpp
changeset 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2004 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 the License "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 *      Implementation of class RFeatMgr.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include <FeatMgr.h>
       
    24 #include "RFeatMgr.h"
       
    25 #include "CodPanic.h"
       
    26 
       
    27 // ================= MEMBER FUNCTIONS =======================
       
    28 
       
    29 // ---------------------------------------------------------
       
    30 // RFeatMgr::RFeatMgr()
       
    31 // ---------------------------------------------------------
       
    32 //
       
    33 RFeatMgr::RFeatMgr(): iOpen( EFalse )
       
    34     {
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // RFeatMgr::Close()
       
    39 // ---------------------------------------------------------
       
    40 //
       
    41 void RFeatMgr::Close()
       
    42     {
       
    43     if ( iOpen )
       
    44         {
       
    45         FeatureManager::UnInitializeLib();
       
    46         iOpen = EFalse;
       
    47         }
       
    48     }
       
    49 
       
    50 // ---------------------------------------------------------
       
    51 // RFeatMgr::OpenL()
       
    52 // ---------------------------------------------------------
       
    53 //
       
    54 void RFeatMgr::OpenL()
       
    55     {
       
    56     __ASSERT_DEBUG( !iOpen, CodPanic( ECodInternal ) );
       
    57     FeatureManager::InitializeLibL();
       
    58     iOpen = ETrue;
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // RFeatMgr::FeatureSupported()
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 TBool RFeatMgr::FeatureSupported( TInt aFeature )
       
    66     {
       
    67     __ASSERT_DEBUG( iOpen, CodPanic( ECodInternal ) );
       
    68     return FeatureManager::FeatureSupported( aFeature );
       
    69     }