videoplayback/videoplaybackview/controlsrc/videoplaybackfiledetailswidget.cpp
changeset 65 a9d57bd8d7b7
parent 52 e3cecb93e76a
--- a/videoplayback/videoplaybackview/controlsrc/videoplaybackfiledetailswidget.cpp	Fri Sep 17 08:30:05 2010 +0300
+++ b/videoplayback/videoplaybackview/controlsrc/videoplaybackfiledetailswidget.cpp	Mon Oct 04 00:19:07 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version:  28 %
+// Version : %version:  29 %
 
 
 #include <QDir>
@@ -102,8 +102,28 @@
             // Description
             //
             addItemToListWidget(
-                    hbTrId( "txt_videos_list_description" ), details->mDescription );
-
+                    hbTrId( "txt_videos_list_description" ), details->mDescription );           
+  
+            //
+            // File name & File path
+            //
+            // prevent exposure of private paths and show only : 
+            // (a) for standalone video player not when is launched from another app 
+            // (b) for local playback ony not for streaming video
+            //
+            if ( !mController->isService() )
+            {  
+                QFileInfo fileInfo( details->mClipName );
+                
+                // File name                
+                QString filename = fileInfo.completeBaseName();
+                addItemToListWidget( hbTrId( "txt_videos_list_file_name" ), filename );                
+                
+                // File path               
+                QString path = fileInfo.absoluteFilePath();
+                addItemToListWidget( hbTrId( "txt_videos_list_file_path" ), path );
+            }                            
+            
             //
             // Duration
             //