apengine/apsettingshandlerui/src/FeatureManagerWrapper.cpp
changeset 66 ed07dcc72692
parent 0 5a93021fdf25
equal deleted inserted replaced
64:84c6623982f6 66:ed07dcc72692
    26 // CFeatureManagerWrapper::CFeatureManagerWrapper
    26 // CFeatureManagerWrapper::CFeatureManagerWrapper
    27 // ---------------------------------------------------------
    27 // ---------------------------------------------------------
    28 //
    28 //
    29 CFeatureManagerWrapper::CFeatureManagerWrapper() : CBase()
    29 CFeatureManagerWrapper::CFeatureManagerWrapper() : CBase()
    30     {
    30     {
    31     APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::CFeatureManagerWrapper<->")
       
    32     }
    31     }
    33 
    32 
    34 // ---------------------------------------------------------
    33 // ---------------------------------------------------------
    35 // CFeatureManagerWrapper::~CFeatureManagerWrapper
    34 // CFeatureManagerWrapper::~CFeatureManagerWrapper
    36 // ---------------------------------------------------------
    35 // ---------------------------------------------------------
    37 //
    36 //
    38 CFeatureManagerWrapper::~CFeatureManagerWrapper() 
    37 CFeatureManagerWrapper::~CFeatureManagerWrapper() 
    39     {
    38     {
    40     APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::~CFeatureManagerWrapper")
       
    41     
       
    42     if ( iIsFeatureMgrInitialized )
       
    43         {
       
    44         FeatureManager::UnInitializeLib();    
       
    45         }
       
    46     
       
    47     APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::~CFeatureManagerWrapper")
       
    48     }
    39     }
    49 
    40 
    50 
    41 
    51 // ---------------------------------------------------------
    42 // ---------------------------------------------------------
    52 // CFeatureManagerWrapper::ConstructL
    43 // CFeatureManagerWrapper::ConstructL
    53 // ---------------------------------------------------------
    44 // ---------------------------------------------------------
    54 //
    45 //
    55 void CFeatureManagerWrapper::ConstructL()
    46 void CFeatureManagerWrapper::ConstructL()
    56     {
    47     {
    57     APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::ConstructL")
       
    58     
       
    59     FeatureManager::InitializeLibL();
       
    60     iIsFeatureMgrInitialized = ETrue ;
       
    61     
       
    62     APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::ConstructL")
       
    63     }
    48     }
    64 
    49 
    65 
    50 
    66 // ---------------------------------------------------------
    51 // ---------------------------------------------------------
    67 // CFeatureManagerWrapper::NewL
    52 // CFeatureManagerWrapper::NewL
    68 // ---------------------------------------------------------
    53 // ---------------------------------------------------------
    69 //
    54 //
    70 CFeatureManagerWrapper*  CFeatureManagerWrapper::NewL()
    55 CFeatureManagerWrapper*  CFeatureManagerWrapper::NewL()
    71     {
    56     {
    72     APSETUILOGGER_ENTERFN( EOther,"FeatureWrapper::NewL")
    57     return NULL;
    73     
       
    74     CFeatureManagerWrapper* self = new ( ELeave ) CFeatureManagerWrapper;
       
    75     
       
    76     CleanupStack::PushL( self );
       
    77     self->ConstructL();
       
    78     CleanupStack::Pop( self );
       
    79 
       
    80     APSETUILOGGER_LEAVEFN( EOther,"FeatureWrapper::NewL")
       
    81     return self;
       
    82     }
    58     }
    83 
    59 
    84 //End of file.
    60 //End of file.
    85 
    61