widgets/widgetapp/src/WidgetUiNetworkListener.cpp
branchRCL_3
changeset 40 8bfb9186a8b8
parent 34 220a17280356
child 41 4bd5176e1bc8
equal deleted inserted replaced
38:4917f9bf7995 40:8bfb9186a8b8
    89         // notify widgets of an active network connection
    89         // notify widgets of an active network connection
    90         iWindowManager.NotifyConnecionChange( ETrue );
    90         iWindowManager.NotifyConnecionChange( ETrue );
    91         }
    91         }
    92     else if ( iNote().iState == EInterfaceDown )
    92     else if ( iNote().iState == EInterfaceDown )
    93         {
    93         {
       
    94 #ifndef BRDO_OCC_ENABLED_FF
       
    95         RTimer timer; 
       
    96         TRequestStatus timerStatus; // Request status associated with timer
       
    97         timer.CreateLocal();   	
       
    98 #endif
    94         // check if there are no other active connections
    99         // check if there are no other active connections
    95         if ( !CheckActiveNetworkConnection() )
   100         if ( !CheckActiveNetworkConnection() )
    96             {
   101             {
    97             // notify widgets of a network connection going down
   102             // notify widgets of a network connection going down
    98             iWindowManager.NotifyConnecionChange( EFalse );
   103             iWindowManager.NotifyConnecionChange( EFalse );
       
   104 #ifndef BRDO_OCC_ENABLED_FF
       
   105             timer.After(timerStatus,30000000);
       
   106             User::WaitForRequest(timerStatus);
       
   107 #endif
    99             }
   108             }
       
   109 #ifndef BRDO_OCC_ENABLED_FF        
       
   110             timer.Close();
       
   111 #endif
   100         }
   112         }
   101          
   113          
   102     iConn.AllInterfaceNotification( iNote, iStatus );
   114     iConn.AllInterfaceNotification( iNote, iStatus );
   103     SetActive();
   115     SetActive();
   104     }
   116     }