satengine/SatServer/Engine/src/CSatCommandContainer.cpp
changeset 15 d7fc66ccd6fb
parent 0 ff3b6d0fd310
child 23 427125ac6cb8
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
    23 #include    <SatServer.rsg>
    23 #include    <SatServer.rsg>
    24 #include    <ecom.h>
    24 #include    <ecom.h>
    25 #include    <e32property.h>
    25 #include    <e32property.h>
    26 #include    <data_caging_path_literals.hrh>
    26 #include    <data_caging_path_literals.hrh>
    27 #include    <startupdomainpskeys.h>
    27 #include    <startupdomainpskeys.h>
    28 #include    <SATDomainPSKeys.h>
    28 #include    <satdomainpskeys.h>
    29 
    29 
    30 #include    "MSatSystemState.h"
    30 #include    "MSatSystemState.h"
    31 #include    "TSatSystemStateFactory.h"
    31 #include    "TSatSystemStateFactory.h"
    32 #include    "MSatSystemStateChangeNotifier.h"
    32 #include    "MSatSystemStateChangeNotifier.h"
    33 #include    "CSatCommandContainer.h"
    33 #include    "CSatCommandContainer.h"
   316 
   316 
   317     // Reset ClientService request handlers since there are no command handlers
   317     // Reset ClientService request handlers since there are no command handlers
   318     // to handle client responses. If SAT UI / Proactive command is executing
   318     // to handle client responses. If SAT UI / Proactive command is executing
   319     // while Bluetooth SAP is enabled, SAT UI sends ClientResponse and that must
   319     // while Bluetooth SAP is enabled, SAT UI sends ClientResponse and that must
   320     // be preveted
   320     // be preveted
   321     iServiceReqs->Reset();
   321     if ( iServiceReqs )
       
   322         {
       
   323         iServiceReqs->Reset();
       
   324         }
   322 
   325 
   323     // Close all reserved BIP Data channels
   326     // Close all reserved BIP Data channels
   324     if ( iBipUtils )
   327     if ( iBipUtils )
   325         {
   328         {
   326         LOG( NORMAL, "SATENGINE: CSatCommandContainer::StopCommandHandlers \
   329         LOG( NORMAL, "SATENGINE: CSatCommandContainer::StopCommandHandlers \
   336         iEventMonitors->CancelAllMonitors();
   339         iEventMonitors->CancelAllMonitors();
   337         }
   340         }
   338 
   341 
   339 #ifdef SAT_USE_DUMMY_TSY
   342 #ifdef SAT_USE_DUMMY_TSY
   340     // Close ATSY. This is needed when testin BT SAP in emulator
   343     // Close ATSY. This is needed when testin BT SAP in emulator
   341     iUSatAPI->Close();
   344     if ( iUSatAPI )
       
   345         {
       
   346         iUSatAPI->Close();
       
   347         }
   342 #endif
   348 #endif
   343 
   349 
   344     LOG( NORMAL,
   350     LOG( NORMAL,
   345         "SATENGINE: CSatCommandContainer::StopCommandHandlers exiting" )
   351         "SATENGINE: CSatCommandContainer::StopCommandHandlers exiting" )
   346     }
   352     }