97 ENTRY( "CancelDownload", CVHPPTestClass::CancelDownloadL), |
97 ENTRY( "CancelDownload", CVHPPTestClass::CancelDownloadL), |
98 ENTRY( "RetrievePdlStatus", CVHPPTestClass::RetrievePdlStatusL), |
98 ENTRY( "RetrievePdlStatus", CVHPPTestClass::RetrievePdlStatusL), |
99 ENTRY( "ChangeAspectRatioL", CVHPPTestClass::ChangeAspectRatioL), |
99 ENTRY( "ChangeAspectRatioL", CVHPPTestClass::ChangeAspectRatioL), |
100 |
100 |
101 ENTRY( "AlarmOn", CVHPPTestClass::AlarmOn), |
101 ENTRY( "AlarmOn", CVHPPTestClass::AlarmOn), |
102 ENTRY( "AlarmAutoResume", CVHPPTestClass::AlarmAutoResume), |
|
103 ENTRY( "PhoneCallRejected", CVHPPTestClass::PhoneCallRejected), |
102 ENTRY( "PhoneCallRejected", CVHPPTestClass::PhoneCallRejected), |
104 ENTRY( "VoiceCallAccepted", CVHPPTestClass::VoiceCallAccepted), |
103 ENTRY( "VoiceCallAccepted", CVHPPTestClass::VoiceCallAccepted), |
105 ENTRY( "VideoCallAccepted", CVHPPTestClass::VideoCallAccepted), |
104 ENTRY( "VideoCallAccepted", CVHPPTestClass::VideoCallAccepted), |
106 ENTRY( "PlayduringVideoCall", CVHPPTestClass::PlayduringVideoCall), |
105 ENTRY( "PlayduringVideoCall", CVHPPTestClass::PlayduringVideoCall), |
107 ENTRY( "PlayduringVoiceCall", CVHPPTestClass::PlayduringVoiceCall), |
106 ENTRY( "PlayduringVoiceCall", CVHPPTestClass::PlayduringVoiceCall), |
1722 |
1721 |
1723 return err; |
1722 return err; |
1724 } |
1723 } |
1725 |
1724 |
1726 // ----------------------------------------------------------------------------- |
1725 // ----------------------------------------------------------------------------- |
1727 // CVHPPTestClass::AlarmOnAndOff |
|
1728 // ----------------------------------------------------------------------------- |
|
1729 // |
|
1730 TInt |
|
1731 CVHPPTestClass::AlarmAutoResume( CStifItemParser& aItem ) |
|
1732 { |
|
1733 MPX_ENTER_EXIT(_L("CVHPPTestClass::AlarmOnAndOff()")); |
|
1734 iLog->Log(_L("CVHPPTestClass::AlarmOnAndOff()")); |
|
1735 |
|
1736 TInt backgroundCmd = 0; |
|
1737 TInt err = 0;//aItem.GetNextInt( backgroundCmd ); |
|
1738 |
|
1739 err = AlarmOn(aItem); |
|
1740 |
|
1741 if ( err == KErrNone ) |
|
1742 { |
|
1743 err = aItem.GetNextInt( backgroundCmd ); |
|
1744 |
|
1745 //reset alarm |
|
1746 RProperty::Set( KPSUidCoreApplicationUIs, KLightsAlarmLightActive, ELightsNotBlinking ); |
|
1747 |
|
1748 if ( err == KErrNone ) |
|
1749 { |
|
1750 TCallbackEvent* event = new TCallbackEvent; |
|
1751 event->iError = 0; |
|
1752 event->iData = 0; |
|
1753 event->iEvent = EPPlaying; |
|
1754 AddExpectedEvent( event ); |
|
1755 |
|
1756 //auto resume if alarm off |
|
1757 CMPXCommand* cmdPlay = CMPXCommand::NewL(); |
|
1758 CleanupStack::PushL( cmdPlay ); |
|
1759 cmdPlay->SetTObjectValueL<TBool>( KMPXCommandGeneralDoSync, ETrue ); |
|
1760 cmdPlay->SetTObjectValueL<TInt>( KMPXCommandGeneralId, KMPXMediaIdVideoPlayback ); |
|
1761 cmdPlay->SetTObjectValueL<TInt>( KMPXMediaVideoPlaybackCommand, backgroundCmd ); |
|
1762 cmdPlay->SetTObjectValueL<TBool>( KMPXMediaVideoAppForeground, ETrue ); |
|
1763 iPlaybackPlugin->CommandL( *cmdPlay ); |
|
1764 CleanupStack::PopAndDestroy( cmdPlay ); |
|
1765 } |
|
1766 } |
|
1767 |
|
1768 return err; |
|
1769 } |
|
1770 |
|
1771 // ----------------------------------------------------------------------------- |
|
1772 // CVHPPTestClass::PhoneCallRejected |
1726 // CVHPPTestClass::PhoneCallRejected |
1773 // ----------------------------------------------------------------------------- |
1727 // ----------------------------------------------------------------------------- |
1774 // |
1728 // |
1775 TInt |
1729 TInt |
1776 CVHPPTestClass::PhoneCallRejected( CStifItemParser& aItem ) |
1730 CVHPPTestClass::PhoneCallRejected( CStifItemParser& aItem ) |