uifw/AknGlobalUI/OldStyleNotif/Src/AknSystemPopup.cpp
branchRCL_3
changeset 56 d48ab3b357f1
parent 55 aecbbf00d063
child 76 5c9f0ba5102a
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
    47 #include <AknCapServer.h>
    47 #include <AknCapServer.h>
    48 #include "AknCapServerEntry.h"
    48 #include "AknCapServerEntry.h"
    49 #include <AknMediatorFacade.h>
    49 #include <AknMediatorFacade.h>
    50 #include <aknSDData.h>
    50 #include <aknSDData.h>
    51 
    51 
    52 #include <SecondaryDisplay/AknSecondaryDisplayDefs.h>
    52 #include <secondarydisplay/AknSecondaryDisplayDefs.h>
    53 #include <AknsUtils.h>
    53 #include <AknsUtils.h>
    54 #include <aknglobalpopupprioritycontroller.h>
    54 #include <aknglobalpopupprioritycontroller.h>
    55 #include "GlobalWindowPriorities.h"
    55 #include "GlobalWindowPriorities.h"
    56 #include "aknmessagereaderlongpressdetector.h" // CAknMessageReaderLongPressDetector    
    56 #include "aknmessagereaderlongpressdetector.h" // CAknMessageReaderLongPressDetector    
    57 
    57 
   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)
   769     if (aPointerEvent.iType == TPointerEvent::EButton1Down)
   770         {
   770         {
   771         iCaptured = ETrue;
   771         iCaptured = ETrue;
   772         }
   772         }
       
   773     
   773     if (Rect().Contains(aPointerEvent.iPosition) && (aPointerEvent.iType == TPointerEvent::EButton1Up)
   774     if (Rect().Contains(aPointerEvent.iPosition) && (aPointerEvent.iType == TPointerEvent::EButton1Up)
   774         && iIsAlarm)
   775         && iIsAlarm && iCaptured)
   775         {
   776         {
   776         if (!iIsAlarmWakeup)
   777         if (!iIsAlarmWakeup)
   777             {
   778             {
   778             CEikDialog::TryExitL(EAlertOpen);
   779             CEikDialog::TryExitL(EAlertOpen);
   779             }
   780             }
   786         }
   787         }
   787     else
   788     else
   788         {
   789         {
   789         CAknStaticNoteDialog::HandlePointerEventL(aPointerEvent);
   790         CAknStaticNoteDialog::HandlePointerEventL(aPointerEvent);
   790         }
   791         }
   791     
   792     if (aPointerEvent.iType == TPointerEvent::EButton1Up)
   792     if(aPointerEvent.iType == TPointerEvent::EButton1Up)
       
   793         {
   793         {
   794         iCaptured = EFalse;
   794         iCaptured = EFalse;
   795         }
   795         }
   796     
       
   797     }
   796     }
   798 
   797 
   799 // class CAknGlobalNoteSubject
   798 // class CAknGlobalNoteSubject
   800 
   799 
   801 CAknGlobalNoteSubject* CAknGlobalNoteSubject::NewL(
   800 CAknGlobalNoteSubject* CAknGlobalNoteSubject::NewL(
  1453     return info->iNoteId;
  1452     return info->iNoteId;
  1454     }
  1453     }
  1455 
  1454 
  1456 void CAknGlobalNoteSubject::TryDisplayNextNoteL(TBool aShowAsynch)
  1455 void CAknGlobalNoteSubject::TryDisplayNextNoteL(TBool aShowAsynch)
  1457     {
  1456     {
  1458     if ( iGlobalNoteList && iGlobalNoteList->Count() == 0 )
  1457     if ( !iGlobalNoteList || iGlobalNoteList->Count() == 0 )
  1459         {
  1458         {
  1460         return;
  1459         return;
  1461         }
  1460         }
  1462 
  1461 
  1463 #ifdef _DEBUG
  1462 #ifdef _DEBUG