uifw/AknGlobalUI/OldStyleNotif/Src/AknSystemPopup.cpp
changeset 14 3320e4e6e8bb
parent 0 2f259fa3e83a
equal deleted inserted replaced
0:2f259fa3e83a 14:3320e4e6e8bb
   764     {
   764     {
   765     }
   765     }
   766 
   766 
   767 void CAknGlobalNoteDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent)
   767 void CAknGlobalNoteDialog::HandlePointerEventL(const TPointerEvent& aPointerEvent)
   768     {
   768     {
       
   769     if(aPointerEvent.iType == TPointerEvent::EButton1Down)
       
   770         {
       
   771         iCaptured = ETrue;
       
   772         }
   769     if (Rect().Contains(aPointerEvent.iPosition) && (aPointerEvent.iType == TPointerEvent::EButton1Up)
   773     if (Rect().Contains(aPointerEvent.iPosition) && (aPointerEvent.iType == TPointerEvent::EButton1Up)
   770         && iIsAlarm)
   774         && iIsAlarm)
   771         {
   775         {
   772         if (!iIsAlarmWakeup)
   776         if (!iIsAlarmWakeup)
   773             {
   777             {
   774             CEikDialog::TryExitL(EAlertOpen);
   778             CEikDialog::TryExitL(EAlertOpen);
   775             }
   779             }
   776 		}
   780 		}
   777     else if ((iSoftkeys == R_AVKON_SOFTKEYS_EMPTY) && 
   781     else if ((iSoftkeys == R_AVKON_SOFTKEYS_EMPTY) && 
   778             (iTimeoutInMicroseconds != ENoTimeout) && 
   782             (iTimeoutInMicroseconds != ENoTimeout) && 
   779             (aPointerEvent.iType == TPointerEvent::EButton1Up))
   783             (aPointerEvent.iType == TPointerEvent::EButton1Up)&& iCaptured)
   780         {
   784         {
   781         CEikDialog::TryExitL(EAknSoftkeyExit);
   785         CEikDialog::TryExitL(EAknSoftkeyExit);
   782         }
   786         }
   783     else
   787     else
   784         {
   788         {
   785         CAknStaticNoteDialog::HandlePointerEventL(aPointerEvent);
   789         CAknStaticNoteDialog::HandlePointerEventL(aPointerEvent);
   786         }
   790         }
       
   791     
       
   792     if(aPointerEvent.iType == TPointerEvent::EButton1Up)
       
   793         {
       
   794         iCaptured = EFalse;
       
   795         }
       
   796     
   787     }
   797     }
   788 
   798 
   789 // class CAknGlobalNoteSubject
   799 // class CAknGlobalNoteSubject
   790 
   800 
   791 CAknGlobalNoteSubject* CAknGlobalNoteSubject::NewL(
   801 CAknGlobalNoteSubject* CAknGlobalNoteSubject::NewL(