equal
deleted
inserted
replaced
1372 // ---------------------------------------------------------- |
1372 // ---------------------------------------------------------- |
1373 // |
1373 // |
1374 void CAutolockAppUi::HandleWsEventL( const TWsEvent& aEvent,CCoeControl* aDestination ) |
1374 void CAutolockAppUi::HandleWsEventL( const TWsEvent& aEvent,CCoeControl* aDestination ) |
1375 { |
1375 { |
1376 const TInt type = aEvent.Type(); |
1376 const TInt type = aEvent.Type(); |
|
1377 TInt skipEvent = 0; |
1377 #if defined(_DEBUG) |
1378 #if defined(_DEBUG) |
1378 RDebug::Printf( "%s %s (%u) type=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, type ); |
1379 RDebug::Printf( "%s %s (%u) type=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, type ); |
1379 #endif |
1380 #endif |
1380 |
1381 |
1381 switch ( type ) |
1382 switch ( type ) |
1439 if(aCallButtonRect.iBr.iX==0) // initialize if not done already |
1440 if(aCallButtonRect.iBr.iX==0) // initialize if not done already |
1440 aCallButtonRect = TRect (aInitialRect); |
1441 aCallButtonRect = TRect (aInitialRect); |
1441 } |
1442 } |
1442 if ( callState != EPSCTsyCallStateNone && callState != EPSCTsyCallStateUninitialized ) |
1443 if ( callState != EPSCTsyCallStateNone && callState != EPSCTsyCallStateUninitialized ) |
1443 { |
1444 { |
|
1445 skipEvent=1; |
1444 if(pointer->iType==TPointerEvent::EButton1Down) |
1446 if(pointer->iType==TPointerEvent::EButton1Down) |
1445 { |
1447 { |
1446 TPoint iPosition = pointer->iPosition; |
1448 TPoint iPosition = pointer->iPosition; |
1447 #if defined(_DEBUG) |
1449 #if defined(_DEBUG) |
1448 RDebug::Printf( "%s %s (%u) iPosition.iX=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, iPosition.iX ); |
1450 RDebug::Printf( "%s %s (%u) iPosition.iX=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, iPosition.iX ); |
1507 RLine::TCallInfo cinfo; |
1509 RLine::TCallInfo cinfo; |
1508 User::LeaveIfError(mLine.GetCallInfo(jj, cinfo)); |
1510 User::LeaveIfError(mLine.GetCallInfo(jj, cinfo)); |
1509 RMobileCall mCall; |
1511 RMobileCall mCall; |
1510 User::LeaveIfError(mCall.OpenExistingCall(mLine, cinfo.iCallName)); |
1512 User::LeaveIfError(mCall.OpenExistingCall(mLine, cinfo.iCallName)); |
1511 #if defined(_DEBUG) |
1513 #if defined(_DEBUG) |
1512 RDebug::Printf( "%s %s (%u) calling mCall.HangUp 0=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0 ); |
1514 RDebug::Printf( "%s %s (%u) not calling mCall.HangUp 0=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, 0 ); |
1513 #endif |
1515 #endif |
1514 mCall.HangUp(); // this gives an error, but succeeds |
1516 // end call only by EStdKeyNo and not by HangUp |
|
1517 // mCall.HangUp(); // this gives an error, but succeeds |
1515 } |
1518 } |
1516 CleanupStack::PopAndDestroy(&mLine); |
1519 CleanupStack::PopAndDestroy(&mLine); |
1517 CleanupStack::PopAndDestroy(&mPhone); |
1520 CleanupStack::PopAndDestroy(&mPhone); |
1518 } |
1521 } |
1519 User::After(100000); // give time for the call to end |
1522 User::After(100000); // give time for the call to end |
1575 iGotEventDownDuringCall=0; // any other event invalidates the Press inside the BigRedButton |
1578 iGotEventDownDuringCall=0; // any other event invalidates the Press inside the BigRedButton |
1576 break; |
1579 break; |
1577 } |
1580 } |
1578 |
1581 |
1579 // All events are sent to base class. |
1582 // All events are sent to base class. |
1580 CAknViewAppUi::HandleWsEventL( aEvent, aDestination ); |
1583 #if defined(_DEBUG) |
|
1584 RDebug::Printf( "%s %s (%u) skipEvent=%x", __FILE__, __PRETTY_FUNCTION__, __LINE__, skipEvent ); |
|
1585 #endif |
|
1586 if(!skipEvent) |
|
1587 { |
|
1588 CAknViewAppUi::HandleWsEventL( aEvent, aDestination ); |
|
1589 } |
1581 |
1590 |
1582 // part of emergency call handling when telephony+devicelock is active |
1591 // part of emergency call handling when telephony+devicelock is active |
1583 // this solution is meant only for 3.1 and 3.2 |
1592 // this solution is meant only for 3.1 and 3.2 |
1584 // Emergency detector only handles key down events |
1593 // Emergency detector only handles key down events |
1585 if ( iEmergencySupportReady ) |
1594 if ( iEmergencySupportReady ) |