widgets/widgetapp/src/WidgetUiWindowManager.cpp
branchRCL_3
changeset 46 30342f40acbf
parent 44 800203832575
child 47 e1bea15f9a39
equal deleted inserted replaced
44:800203832575 46:30342f40acbf
   226     {
   226     {
   227 #ifdef BRDO_WRT_HS_FF 
   227 #ifdef BRDO_WRT_HS_FF 
   228     iCenrepNotifyHandler->DoCancel();
   228     iCenrepNotifyHandler->DoCancel();
   229     delete iCenrepNotifyHandler;
   229     delete iCenrepNotifyHandler;
   230 #endif
   230 #endif
   231       iActiveFsWindow = NULL;
   231    
   232 	  
   232     iActiveFsWindow = NULL;
       
   233     
       
   234 #ifdef BRDO_OCC_ENABLED_FF 
       
   235     if ( iRetryConnectivity)
       
   236         {
       
   237         iRetryConnectivity->Cancel();
       
   238         delete iRetryConnectivity;
       
   239         iRetryConnectivity = NULL;
       
   240         }
       
   241 #endif
       
   242 	 
   233 	  iWindowList.ResetAndDestroy();
   243 	  iWindowList.ResetAndDestroy();
   234   
   244   
   235 #ifdef BRDO_WRT_HS_FF   
   245 #ifdef BRDO_WRT_HS_FF   
   236     delete iNetworkListener;
   246     delete iNetworkListener;
   237 #endif
   247 #endif
   254     delete iConnection;
   264     delete iConnection;
   255 #ifdef BRDO_WRT_HS_FF  
   265 #ifdef BRDO_WRT_HS_FF  
   256     delete iCpsPublisher;
   266     delete iCpsPublisher;
   257 #endif
   267 #endif
   258     delete iDb;
   268     delete iDb;
   259 #ifdef BRDO_OCC_ENABLED_FF 
       
   260     if ( iRetryConnectivity)
       
   261         {
       
   262         iRetryConnectivity->Cancel();
       
   263         delete iRetryConnectivity;
       
   264         iRetryConnectivity = NULL;
       
   265         }
       
   266 #endif
       
   267     }
   269     }
   268 
   270 
   269 // -----------------------------------------------------------------------------
   271 // -----------------------------------------------------------------------------
   270 // CWidgetUiWindowManager::DeactivateMiniViewL()
   272 // CWidgetUiWindowManager::DeactivateMiniViewL()
   271 // Stop MiniView. Stops publishing and exits widget
   273 // Stop MiniView. Stops publishing and exits widget
   762 #endif
   764 #endif
   763                 iConnection->StopConnectionL();
   765                 iConnection->StopConnectionL();
   764                 }             
   766                 }             
   765             delete aWidgetWindow;
   767             delete aWidgetWindow;
   766             }
   768             }
   767         return EFalse; 
   769         }
   768         }
   770     return EFalse;
   769     
       
   770     }
   771     }
   771 
   772 
   772 // =============================================================================
   773 // =============================================================================
   773 // CWidgetUiWindowManager::CloseWindowWithLeastClick()
   774 // CWidgetUiWindowManager::CloseWindowWithLeastClick()
   774 // return true for the last widgets  to be closed
   775 // return true for the last widgets  to be closed
  1614       } 
  1615       } 
  1615 #endif // BRDO_OCC_ENABLED_FF
  1616 #endif // BRDO_OCC_ENABLED_FF
  1616 
  1617 
  1617 CRequestRAM::CRequestRAM(CWidgetUiWindowManager* aWidgetUiWindowManager, const TUid& aUid, TUint32 aOperation):
  1618 CRequestRAM::CRequestRAM(CWidgetUiWindowManager* aWidgetUiWindowManager, const TUid& aUid, TUint32 aOperation):
  1618     CActive( EPriorityStandard ),
  1619     CActive( EPriorityStandard ),
  1619     iOperation(aOperation),
  1620     iWidgetUiWindowManager(aWidgetUiWindowManager),
  1620     iUid(aUid),
  1621     iUid(aUid),
  1621     iWidgetUiWindowManager(aWidgetUiWindowManager)
  1622     iOperation(aOperation)
  1622     {
  1623     {
  1623 	}
  1624 	}
  1624 	
  1625 	
  1625 CRequestRAM* CRequestRAM::StartLD(CWidgetUiWindowManager* aWidgetUiWindowManager, const TUid& aUid, TUint32 aOperation)
  1626 CRequestRAM* CRequestRAM::StartLD(CWidgetUiWindowManager* aWidgetUiWindowManager, const TUid& aUid, TUint32 aOperation)
  1626     {
  1627     {
  1778     iRepository = CRepository::NewL( iUid );
  1779     iRepository = CRepository::NewL( iUid );
  1779     CActiveScheduler::Add(this);
  1780     CActiveScheduler::Add(this);
  1780     StartObservingL();
  1781     StartObservingL();
  1781     }
  1782     }
  1782          
  1783          
  1783 CCenrepNotifyHandler::CCenrepNotifyHandler(MCenrepWatcher& aObserver) : iObserver(aObserver), CActive (EPriorityLow)
  1784 CCenrepNotifyHandler::CCenrepNotifyHandler(MCenrepWatcher& aObserver) : CActive (EPriorityLow),iObserver(aObserver) 
  1784    {
  1785    {
  1785          
  1786          
  1786    }
  1787    }
  1787      
  1788      
  1788 CCenrepNotifyHandler::~CCenrepNotifyHandler()
  1789 CCenrepNotifyHandler::~CCenrepNotifyHandler()