diff -r f87e8c4ac026 -r 3eb824b18d67 videoplayerapp/mpxvideoplayer/src/mpxvideoplayerappuiengine.cpp --- a/videoplayerapp/mpxvideoplayer/src/mpxvideoplayerappuiengine.cpp Tue Sep 14 21:23:06 2010 +0300 +++ b/videoplayerapp/mpxvideoplayer/src/mpxvideoplayerappuiengine.cpp Wed Sep 15 12:15:24 2010 +0300 @@ -16,7 +16,7 @@ */ -// Version : %version: da1mmcf#72 % +// Version : %version: 73 % #include @@ -52,6 +52,7 @@ #include #include "mpxvideo_debug.h" #include "mpxvideoplayercustomviewmsgconsts.h" +#include "mpxvideoplayeriadupdate.h" const TInt KMpxPlaybackPluginTypeUid = 0x101FFCA0; @@ -204,6 +205,12 @@ { MPX_ENTER_EXIT(_L("CMpxVideoPlayerAppUiEngine::~CMpxVideoPlayerAppUiEngine()")); + if ( iIadUpdate ) + { + delete iIadUpdate; + iIadUpdate = NULL; + } + if ( iConstructTimer ) { delete iConstructTimer; @@ -1179,7 +1186,24 @@ iConstructTimer->Cancel(); + DoCheckForUpdatesL(); + PlaybackUtilityL(); } +// --------------------------------------------------------------------------- +// Checks for updates via IAD +// --------------------------------------------------------------------------- +// +void CMpxVideoPlayerAppUiEngine::DoCheckForUpdatesL() + { + MPX_ENTER_EXIT(_L("CMpxVideoPlayerAppUiEngine::DoCheckForUpdatesL()")); + + if ( !iIadUpdate ) + { + iIadUpdate = CMpxVideoPlayerIadUpdate::NewL( *iViewUtility ); + } + iIadUpdate->StartL(); + } + // EOF