videoplayback/hbvideoplaybackview/viewsrc/hbvideobaseplaybackview.cpp
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 38 ff53afa8ad05
--- a/videoplayback/hbvideoplaybackview/viewsrc/hbvideobaseplaybackview.cpp	Fri Apr 16 18:13:14 2010 +0300
+++ b/videoplayback/hbvideoplaybackview/viewsrc/hbvideobaseplaybackview.cpp	Fri Apr 30 09:52:11 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: da1mmcf#34 %
+// Version : %version: da1mmcf#38 %
 
 
 
@@ -28,7 +28,6 @@
 
 #include <hbmenu.h>
 #include <hbaction.h>
-#include <hbgesture.h>
 #include <hbinstance.h>
 #include <hbnotificationdialog.h>
 #include <hblabel.h>
@@ -88,10 +87,10 @@
 {
     MPX_DEBUG(_L("HbVideoBasePlaybackView::~HbVideoBasePlaybackView()"));
 
-    disconnect( mTimerForClosingView, SIGNAL( timeout() ), this, SIGNAL( activatePreviousView() ) );
-
     if ( mTimerForClosingView )
-    {
+    {        
+        disconnect( mTimerForClosingView, SIGNAL( timeout() ), this, SIGNAL( activatePreviousView() ) );
+        
         if ( mTimerForClosingView->isActive() )
         {
             mTimerForClosingView->stop();
@@ -101,6 +100,11 @@
         mTimerForClosingView = NULL;
     }
 
+    if ( mVideoMpxWrapper )
+    {
+        delete mVideoMpxWrapper;
+        mVideoMpxWrapper = NULL;
+    }
 
     setParentItem( 0 );
 }
@@ -122,8 +126,6 @@
     
     menu()->close();
 
-    hideItems( Hb::ToolBarItem );
-
     //
     // Landscape orientation
     //
@@ -158,8 +160,6 @@
     // go back to device orientation
     //
     //hbInstance->allMainWindows()[0]->unsetOrientation();
-
-    showItems( Hb::ToolBarItem );
 }
 
 // -------------------------------------------------------------------------------------------------
@@ -209,16 +209,6 @@
             showDialog( hbTrId( "txt_videos_info_video_playback_is_not_allowed_duri" ), false );
             break;
         }
-        case KMPXVideoTvOutPlaybackNotAllowed:
-        {
-            showDialog( hbTrId( "txt_videos_info_protected_clip_can_not_be_played" ), false );
-            break;
-        }
-        case KMPXVideoTvOutPlaybackNotAllowedClose:
-        {
-            showDialog( hbTrId( "txt_videos_info_protected_clip_can_not_be_played" ) );
-            break;
-        }
         default:
         {
             TRAP_IGNORE(