equal
deleted
inserted
replaced
41 #include <Pbk2ContactNameFormatterFactory.h> |
41 #include <Pbk2ContactNameFormatterFactory.h> |
42 #include <CPbk2StorePropertyArray.h> |
42 #include <CPbk2StorePropertyArray.h> |
43 #include <CPbk2FieldPropertyArray.h> |
43 #include <CPbk2FieldPropertyArray.h> |
44 #include <CPbk2TabGroupContainer.h> |
44 #include <CPbk2TabGroupContainer.h> |
45 #include <MPbk2ContactViewSupplier.h> |
45 #include <MPbk2ContactViewSupplier.h> |
46 #include <pbk2commonui.rsg> |
46 #include <Pbk2CommonUi.rsg> |
47 #include <Pbk2UID.h> |
47 #include <Pbk2UID.h> |
48 #include <Phonebook2PublicPSKeys.h> |
48 #include <Phonebook2PublicPSKeys.h> |
49 |
49 |
50 // Virtual Phonebook |
50 // Virtual Phonebook |
51 #include <VPbkVariant.hrh> |
51 #include <VPbkVariant.hrh> |
570 // -------------------------------------------------------------------------- |
570 // -------------------------------------------------------------------------- |
571 // CPbk2AppUi::LeavePbkInMemExitL |
571 // CPbk2AppUi::LeavePbkInMemExitL |
572 // -------------------------------------------------------------------------- |
572 // -------------------------------------------------------------------------- |
573 // |
573 // |
574 void CPbk2AppUi::LeavePbkInMemExitL() |
574 void CPbk2AppUi::LeavePbkInMemExitL() |
575 { |
575 { |
576 PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING("CPbk2AppUi::LeavePbkInMemExitL")); |
576 PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING("CPbk2AppUi::LeavePbkInMemExitL")); |
577 |
577 |
578 TBool dlgOnTop = IsDisplayingMenuOrDialog(); |
|
579 // When Phonebook app is to leave in memory with a dialog displaying |
|
580 // on the top of it, an escape key event will be simuliated to notify |
|
581 // the dialog more earlier. |
|
582 if ( dlgOnTop ) |
|
583 { |
|
584 TKeyEvent key; |
|
585 key.iRepeats = 0; |
|
586 key.iCode = EKeyEscape; |
|
587 key.iModifiers = 0; |
|
588 key.iScanCode = EStdKeyNull; |
|
589 iCoeEnv->SimulateKeyEventL(key, EEventKey); |
|
590 } |
|
591 |
|
592 // Diasable bring to foreground on view activation event |
578 // Diasable bring to foreground on view activation event |
593 SetCustomControl(1); |
579 SetCustomControl(1); |
594 |
580 |
595 // Hide application in background |
581 // Hide application in background |
596 HideInBackground(); |
582 HideInBackground(); |