idlefw/plugins/devicestatus/src/aisimregpublisher.cpp
branchRCL_3
changeset 78 1b207dd38b72
parent 9 d0529222e3f0
equal deleted inserted replaced
74:edd621764147 78:1b207dd38b72
     1 /*
     1 /*
     2 * Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    19 #include "aisimregpublisher.h"
    19 #include "aisimregpublisher.h"
    20 #include <aicontentobserver.h>
    20 #include <aicontentobserver.h>
    21 #include "ainetworkinfolistener.h"
    21 #include "ainetworkinfolistener.h"
    22 #include <activeidle2domainpskeys.h>
    22 #include <activeidle2domainpskeys.h>
    23 #include <e32property.h>
    23 #include <e32property.h>
       
    24 #include <featmgr.h>
    24 
    25 
    25 #include <startupdomainpskeys.h>
    26 #include <startupdomainpskeys.h>
    26 
    27 
    27 // ======== LOCAL FUNCTIONS =======
    28 // ======== LOCAL FUNCTIONS =======
    28 
    29 
    47     }
    48     }
    48 
    49 
    49 
    50 
    50 void CAiSimRegPublisher::ConstructL()
    51 void CAiSimRegPublisher::ConstructL()
    51     {
    52     {
       
    53     FeatureManager::InitializeLibL();
    52     iListener = CAiNetworkInfoListener::InstanceL();
    54     iListener = CAiNetworkInfoListener::InstanceL();
    53     }
    55     }
    54 
    56 
    55 
    57 
    56 CAiSimRegPublisher* CAiSimRegPublisher::NewL()
    58 CAiSimRegPublisher* CAiSimRegPublisher::NewL()
    63     }
    65     }
    64 
    66 
    65 
    67 
    66 CAiSimRegPublisher::~CAiSimRegPublisher()
    68 CAiSimRegPublisher::~CAiSimRegPublisher()
    67     {
    69     {
       
    70     FeatureManager::UnInitializeLib();
    68     if( iListener )
    71     if( iListener )
    69         {
    72         {
    70         iListener->RemoveObserver( *this );
    73         iListener->RemoveObserver( *this );
    71         iListener->Release();
    74         iListener->Release();
    72         }
    75         }
   172                 break;
   175                 break;
   173                 }
   176                 }
   174             default:
   177             default:
   175                 break;
   178                 break;
   176             }
   179             }
       
   180          }
       
   181     else if ( FeatureManager::FeatureSupported( KFeatureIdFfManualSelectionPopulatedPlmnList )
       
   182               && aMessage ==
       
   183                   static_cast<MNWMessageObserver::TNWMessages>( KErrGsmMMNetworkFailure ) )
       
   184         {
       
   185         iContentObserver->Publish( *iExtension,
       
   186                                    EAiDeviceStatusContentNetRegStatus,
       
   187                                    EAiDeviceStatusResourceNetRegFail,
       
   188                                    0 );
   177         }
   189         }
   178     }
   190     }
   179 
   191 
   180 
   192 
   181 TBool CAiSimRegPublisher::RefreshL( TInt aContentId, TBool aClean )
   193 TBool CAiSimRegPublisher::RefreshL( TInt aContentId, TBool aClean )