videoplayback/videoplaybackcontrols/src/mpxvideoplaybackmediadetailsviewer.cpp
branchRCL_3
changeset 70 375929f879c2
parent 57 befca0ec475f
--- a/videoplayback/videoplaybackcontrols/src/mpxvideoplaybackmediadetailsviewer.cpp	Wed Sep 15 12:15:24 2010 +0300
+++ b/videoplayback/videoplaybackcontrols/src/mpxvideoplaybackmediadetailsviewer.cpp	Wed Oct 13 14:34:36 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 
-// Version : %version:  18 %
+// Version : %version:  e003sa33#17 %
 
 
 // INCLUDE FILES
@@ -65,7 +65,6 @@
 CMPXVideoPlaybackMediaDetailsViewer::CMPXVideoPlaybackMediaDetailsViewer(
     CMPXVideoPlaybackControlsController* aController )
     : iController( aController )
-    , iDrmDetailsLaunched( EFalse )
 {
 }
 
@@ -239,12 +238,7 @@
 //
 void CMPXVideoPlaybackMediaDetailsViewer::LaunchDRMDetailsL()
 {
-    if ( ! iDrmDetailsLaunched )
-    {
-        iDrmDetailsLaunched = ETrue;
-        iController->iContainer->HandleCommandL( EMPXPbvLaunchDRMDetails );
-        iDrmDetailsLaunched = EFalse;
-    }
+    iController->iContainer->HandleCommandL(EMPXPbvLaunchDRMDetails);
 }
 
 // -------------------------------------------------------------------------------------------------
@@ -313,10 +307,10 @@
 
         CleanupStack::PopAndDestroy( heading );
     }
-
+    
     // Title
     HBufC* fileTitle = iController->FileDetails()->GenerateFileTitleL();
-
+    
     if ( fileTitle && fileTitle->Length() )
     {
         // Title gets populated by UpdateTitle method
@@ -328,7 +322,7 @@
         iTitleLabel->MakeVisible( ETrue );
         rowsAdded++;
     }
-
+    
     delete fileTitle;
 
     // Filename
@@ -345,9 +339,9 @@
         iClipnameLabel->MakeVisible( ETrue );
         rowsAdded++;
     }
-
+    
     delete fileName;
-
+    
     // Mime Type (Format)
     if ( iController->FileDetails()->iMimeType && iController->FileDetails()->iMimeType->Length() )
     {
@@ -703,7 +697,7 @@
     {
         UpdateFilenameL();
     }
-
+    
     if ( iTitleScroller.IsUpdateNeeded() )
     {
         UpdateTitleL();
@@ -761,8 +755,8 @@
     }
 
     HBufC* title = NULL;
-    TRAP_IGNORE ( title = iController->FileDetails()->GenerateFileTitleL() );
-
+    TRAP_IGNORE ( title = iController->FileDetails()->GenerateFileTitleL() ); 
+    
     if ( title )
     {
         numOfItems++;
@@ -849,10 +843,10 @@
 void CMPXVideoPlaybackMediaDetailsViewer::UpdateFilenameL()
 {
     MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackMediaDetailsViewer::UpdateFilenameL" ) );
-
-    HBufC* fileName = iController->FileDetails()->GenerateFileNameL();
+    
+	HBufC* fileName = iController->FileDetails()->GenerateFileNameL();
     CleanupStack::PushL( fileName );
-
+    
     if ( fileName && fileName->Length() )
     {
         HBufC* heading  = iEikonEnv->AllocReadResourceL( R_MPX_FILENAME_HEADING );
@@ -871,7 +865,7 @@
 
         CleanupStack::PopAndDestroy( heading );
     }
-
+    
     CleanupStack::PopAndDestroy( fileName );
 }
 
@@ -882,11 +876,11 @@
 void CMPXVideoPlaybackMediaDetailsViewer::UpdateTitleL()
 {
     MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackMediaDetailsViewer::UpdateTitleL" ) );
-
-    HBufC* fileTitle = iController->FileDetails()->GenerateFileTitleL();
+    
+	HBufC* fileTitle = iController->FileDetails()->GenerateFileTitleL();
     CleanupStack::PushL( fileTitle );
-
-    if ( fileTitle && fileTitle->Length() )
+    
+	if ( fileTitle && fileTitle->Length() )
     {
         HBufC* heading  = iEikonEnv->AllocReadResourceL( R_MPX_TITLE_HEADING );
         CleanupStack::PushL( heading );
@@ -904,8 +898,8 @@
 
         CleanupStack::PopAndDestroy( heading );
     }
-
-    CleanupStack::PopAndDestroy( fileTitle );
+	
+    CleanupStack::PopAndDestroy( fileTitle );	
 }
 
 // -------------------------------------------------------------------------------------------------
@@ -946,8 +940,8 @@
 TBool CMPXVideoPlaybackMediaDetailsViewer::TTextScroller::IsUpdateNeeded()
 {
     MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackMediaDetailsViewer::TTextScroller::IsUpdateNeeded" ) );
-
-    // skip the scrolling operation if the loop for delay is going on
+    
+	// skip the scrolling operation if the loop for delay is going on
     TBool skipForTimerDelay = EFalse;
 
     // add a delay after each complete scrolling
@@ -983,12 +977,12 @@
         TDes& aDesText )
 {
     MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackMediaDetailsViewer::TTextScroller::ScrollText" ) );
-
-    if ( 0 == iSrcTextLen )
+    
+	if ( 0 == iSrcTextLen )
     {
         iSrcTextLen = aSrcText.Length();
     }
-
+    
     ASSERT( aSrcText.Length() == iSrcTextLen );
     if ( aSrcText.Length() >= KMediaDetailsViewerVisibleCharacters )
     {
@@ -1005,7 +999,7 @@
             iTextScrollPos++;
         }
         iScroll = ETrue;
-
+        
     }
     else
     {