videoplayback/videoplaybackviews/src/mpxvideoplaybackviewfiledetails.cpp
branchRCL_3
changeset 8 ce5ada96ab30
parent 0 96612d01cf9f
child 9 5294c000a26d
equal deleted inserted replaced
6:7d91903f795f 8:ce5ada96ab30
    13 *
    13 *
    14 * Description:  class for MPX Video File Details
    14 * Description:  class for MPX Video File Details
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 8 %
    18 // Version : %version: e003sa33#9 %
    19 
    19 
    20 
    20 
    21 //
    21 //
    22 //  INCLUDE FILES
    22 //  INCLUDE FILES
    23 //
    23 //
       
    24 #include <f32file.h>
       
    25 
    24 #include "mpxvideo_debug.h"
    26 #include "mpxvideo_debug.h"
    25 #include "mpxvideoplaybackviewfiledetails.h"
    27 #include "mpxvideoplaybackviewfiledetails.h"
    26 
    28 
    27 // ============================ MEMBER FUNCTIONS ===================================================
    29 // ============================ MEMBER FUNCTIONS ===================================================
    28 
    30 
    97     iVideoWidth  = 0;
    99     iVideoWidth  = 0;
    98     iBitRate = 0;
   100     iBitRate = 0;
    99     iFourCCCode = 0;
   101     iFourCCCode = 0;
   100 }
   102 }
   101 
   103 
       
   104 // -------------------------------------------------------------------------------------------------
       
   105 // CMPXVideoPlaybackViewFileDetails::GenerateFileNameL
       
   106 // -------------------------------------------------------------------------------------------------
       
   107 //
       
   108 EXPORT_C HBufC* CMPXVideoPlaybackViewFileDetails::GenerateFileNameL()
       
   109 {
       
   110     MPX_ENTER_EXIT( _L( "CMPXVideoPlaybackViewFileDetails::GenerateFileNameL()" ) );
       
   111     
       
   112 	HBufC* fileName = NULL;
       
   113 
       
   114 	if ( iClipName && iClipName->Length()
       
   115 			&& EMPXVideoStreaming != iPlaybackMode &&
       
   116     		EMPXVideoLiveStreaming != iPlaybackMode )
       
   117 	{
       
   118         //
       
   119         // Get only file name for media details viewer 
       
   120         //
       
   121         //TParsePtrC filePath( iClipName->Des() );
       
   122         //fileName = ( filePath.Name() ).AllocL();
       
   123         TParse parse;
       
   124         parse.Set( iClipName->Des(), NULL, NULL);
       
   125         fileName = ( parse.Name() ).AllocL();
       
   126 
       
   127 	}
       
   128 	
       
   129     return fileName;
       
   130 }
       
   131 
   102 //  EOF
   132 //  EOF