phoneapp/phoneuiqtviewadapter/src/phonevisibilityhandler.cpp
changeset 72 c76a0b1755b9
parent 56 5bcb308bd24d
child 76 cfea66083b62
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
   212 	 -1 Ordinal position is lowest ( not visible )
   212 	 -1 Ordinal position is lowest ( not visible )
   213 	  0 Ordinal position is highest ( visible )
   213 	  0 Ordinal position is highest ( visible )
   214 	  1 - ... Ordinal postition under one or more window group
   214 	  1 - ... Ordinal postition under one or more window group
   215 	  
   215 	  
   216 	It is agreed with devicedialog that:
   216 	It is agreed with devicedialog that:
   217      - Incomincall, ECoeWinPriorityAlwaysAtFront + 100
   217      - Incoming call, ECoeWinPriorityAlwaysAtFront + 100
   218      - Ongoing call + security, ECoeWinPriorityAlwaysAtFront
   218      - Ongoing call + security, ECoeWinPriorityAlwaysAtFront + 1
   219      - Ongoing call + Securire query, ECoeWinPriorityAlwaysAtFront - 1
       
   220      - Ongoing call, ECoeWinPriorityNormal
   219      - Ongoing call, ECoeWinPriorityNormal
   221  */
   220  */
   222 void PhoneVisibilityHandler::adjustVisibility(AdjustAction action)
   221 void PhoneVisibilityHandler::adjustVisibility(AdjustAction action)
   223 {
   222 {
   224     PHONE_TRACE1(": START");
   223     PHONE_TRACE1(": START");
   241         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront + 100);
   240         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront + 100);
   242         
   241         
   243     } else if (m_deviceLockEnabled) {
   242     } else if (m_deviceLockEnabled) {
   244         // critical notes are allowed to show on top of Phone application
   243         // critical notes are allowed to show on top of Phone application
   245         PHONE_TRACE1(": Devicelock");
   244         PHONE_TRACE1(": Devicelock");
   246         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
   245         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront + 1);
   247         
   246         
   248     } else if (BringForwards == action) {
   247     } else if (BringForwards == action) {
   249         // Try to show phone with normal priority
   248         // Try to show phone with normal priority
   250         PHONE_TRACE1(": Bring forward");
   249         PHONE_TRACE1(": Bring forward");
   251         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityNormal);
   250         m_eikonEnv->RootWin().SetOrdinalPosition(0, ECoeWinPriorityNormal);