widgets/widgetapp/src/WidgetUiWindow.cpp
branchRCL_3
changeset 103 be5f8c9adf67
parent 94 919f36ff910f
equal deleted inserted replaced
99:ca6d8a014f4b 103:be5f8c9adf67
   922             // or hit cancel altogether in which case the KErrCancel block above
   922             // or hit cancel altogether in which case the KErrCancel block above
   923             // kicks in and sets a EDeny.
   923             // kicks in and sets a EDeny.
   924             User::Leave( connFailure );
   924             User::Leave( connFailure );
   925             }
   925             }
   926         *aNewConn = ETrue;
   926         *aNewConn = ETrue;
   927         if(iWindowManager.GetNetworkMode() == EOfflineMode)
   927         if( !(EMiniViewEnabled == WidgetMiniViewState() || 
       
   928                 EMiniViewNotEnabled == WidgetMiniViewState()) && iWindowManager.GetNetworkMode() == EOfflineMode )       
   928         	{
   929         	{
   929             iWindowManager.GetConnection()->CancelConnection();
   930             iWindowManager.GetConnection()->CancelConnection();
   930             iWindowManager.GetConnection()->StopConnectionL();
   931             iWindowManager.GetConnection()->StopConnectionL();
   931             User::Leave( KErrAccessDenied );
   932             User::Leave( KErrAccessDenied );
   932         	}      
   933         	}      
   933 #ifdef BRDO_OCC_ENABLED_FF        
   934 #ifdef BRDO_OCC_ENABLED_FF        
   934 		else
   935 		else
   935         	TRAP_IGNORE(iWindowManager.ConnNeededStatusL(KErrNone)); 
   936         	TRAP_IGNORE(iWindowManager.ConnNeededStatusL(KErrNone)); 
   936 #endif        
   937 #endif        
   937         }
   938         }
       
   939 #ifdef BRDO_OCC_ENABLED_FF
       
   940     else
       
   941         {
       
   942             TBool newConnFlag = iWindowManager.GetRetryFlag();
       
   943             if( newConnFlag )
       
   944                 {
       
   945                 *aNewConn = ETrue;
       
   946                 iWindowManager.SetNewConnFlag(EFalse);
       
   947                 }
       
   948         }
       
   949 #endif
   938     }
   950     }
   939 
   951 
   940 // -----------------------------------------------------------------------------
   952 // -----------------------------------------------------------------------------
   941 // CWidgetUiWindow::NetworkConnectionNeededL()
   953 // CWidgetUiWindow::NetworkConnectionNeededL()
   942 //
   954 //