musichomescreen_multiview/musicplayeractionhandlerplugin/src/musicplayeractionhandler.cpp
--- a/musichomescreen_multiview/musicplayeractionhandlerplugin/src/musicplayeractionhandler.cpp Wed Mar 31 21:26:33 2010 +0300
+++ b/musichomescreen_multiview/musicplayeractionhandlerplugin/src/musicplayeractionhandler.cpp Wed Apr 14 15:54:18 2010 +0300
@@ -26,6 +26,8 @@
#include <mpxconstants.h> // KAppUidMusicPlayerX
#include <mpxmusicplayerviewplugin.hrh> // KMPXPluginTypePlaybackUid
#include <AknTaskList.h> // CAknTaskList
+#include <gfxtranseffect/gfxtranseffect.h>
+#include <akntranseffect.h>
#include <mpxcommandgeneraldefs.h>
#include <mpxcommonuihelper.h>
@@ -216,6 +218,7 @@
if ( task.Exists() )
{
// task.SendMessage( KAppUidMusicPlayerX, buffer->Ptr( 0 ));
+ BeginFullScreenTransEffect( KAppUidMusicPlayerX );
wsSession.SendMessageToWindowGroup( task.WgId(), KAppUidMusicPlayerX,
buffer->Ptr( 0 ) );
}
@@ -276,6 +279,7 @@
if ( task.Exists() )
{
// task.SendMessage( KAppUidMusicPlayerX, buffer->Ptr( 0 ));
+ BeginFullScreenTransEffect( KAppUidMusicPlayerX );
wsSession.SendMessageToWindowGroup( task.WgId(), KAppUidMusicPlayerX,
buffer->Ptr( 0 ) );
}
@@ -325,6 +329,7 @@
CleanupStack::PopAndDestroy( &writeStream );
if ( task.Exists() )
{
+ BeginFullScreenTransEffect( KAppUidMusicPlayerX );
wsSession.SendMessageToWindowGroup( task.WgId(), KAppUidMusicPlayerX,
buffer->Ptr( 0 ) );
@@ -380,6 +385,7 @@
CleanupStack::PopAndDestroy( &writeStream );
if ( task.Exists() )
{
+ BeginFullScreenTransEffect( KAppUidMusicPlayerX );
wsSession.SendMessageToWindowGroup( task.WgId(), KAppUidMusicPlayerX,
buffer->Ptr( 0 ) );
if (!aMinimized)
@@ -545,5 +551,21 @@
CleanupStack::PopAndDestroy( cmd );
MPX_DEBUG1("<--CMusicPlayerActionHandler::SetPlaybackCommandL()");
}
+
+// ---------------------------------------------------------------------------
+// Sets a transition effect, to be called before bringing an application to foreground
+// ---------------------------------------------------------------------------
+//
+void CMusicPlayerActionHandler::BeginFullScreenTransEffect( const TUid& aNext )
+ {
+ MPX_DEBUG1("-->CMusicPlayerActionHandler::BeginFullScreenTransEffect()");
+ GfxTransEffect::BeginFullScreen(
+ AknTransEffect::EApplicationStart,
+ TRect(),
+ AknTransEffect::EParameterType,
+ AknTransEffect::GfxTransParam( aNext,
+ AknTransEffect::TParameter::EActivateExplicitContinue ));
+ MPX_DEBUG1("<--CMusicPlayerActionHandler::BeginFullScreenTransEffect()");
+ }
// End of File