usbengines/usbotgwatcher/src/cusbnotenotifier.cpp
branchRCL_3
changeset 21 ff9df6630274
parent 20 a15c582fbf97
child 33 d895b6d953c9
child 63 ef2686f7597e
equal deleted inserted replaced
20:a15c582fbf97 21:ff9df6630274
   108     {
   108     {
   109     LOG_FUNC
   109     LOG_FUNC
   110 
   110 
   111     if (IsActive())
   111     if (IsActive())
   112         {
   112         {
   113         Panic( ENotifierIsActiveAlready);
   113         PANIC( ENotifierIsActiveAlready);
   114         return;
   114         return;
   115         }    
   115         }
   116 		
   116 
   117     iNotifIdPckg() = iUsbNoteNotifier.iNotifId;
   117     iNotifIdPckg() = iUsbNoteNotifier.iNotifId;
   118     iNotifier.StartNotifierAndGetResponse(iStatus, iUsbNoteNotifier.iCat, iNotifIdPckg, iRes);
   118     iNotifier.StartNotifierAndGetResponse(iStatus, iUsbNoteNotifier.iCat,
       
   119             iNotifIdPckg, iRes);
   119     SetActive();
   120     SetActive();
   120     }
   121     }
   121 
   122 
   122 // ---------------------------------------------------------------------------
   123 // ---------------------------------------------------------------------------
   123 // From base class CActive
   124 // From base class CActive
   128     LOG_FUNC
   129     LOG_FUNC
   129 
   130 
   130     LOG1( "iStatus = %d" , iStatus.Int());
   131     LOG1( "iStatus = %d" , iStatus.Int());
   131 
   132 
   132     // if error occured, deal with it in RunError
   133     // if error occured, deal with it in RunError
   133     User::LeaveIfError(iStatus.Int());
   134     LEAVEIFERROR(iStatus.Int());
   134 
   135 
   135     iNotifier.CancelNotifier(iUsbNoteNotifier.iCat);
   136     iNotifier.CancelNotifier(iUsbNoteNotifier.iCat);
   136 
   137 
   137     // report to owner that show is over
   138     // report to owner that show is over
   138     iUsbNoteNotifier.iNotifManager.NotifierShowCompletedL(iUsbNoteNotifier,
   139     iUsbNoteNotifier.iNotifManager.NotifierShowCompletedL(iUsbNoteNotifier,