videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/src/mpxvideoplaybackdocumentloader.cpp
changeset 35 3738fe97f027
parent 34 bbb98528c666
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
    13 *
    13 *
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  1 %
    18 // Version : %version:  2 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #include <hblistwidget.h>
    22 #include <hblistwidget.h>
    23 #include <hblabel.h>
    23 #include <hblabel.h>
    26 
    26 
    27 #include "mpxvideo_debug.h"
    27 #include "mpxvideo_debug.h"
    28 #include "mpxvideoplaybackdocumentloader.h"
    28 #include "mpxvideoplaybackdocumentloader.h"
    29 #include "mpxvideoplaybackcontrolscontroller.h"
    29 #include "mpxvideoplaybackcontrolscontroller.h"
    30 
    30 
    31 #include "mpxvideoplaybackbuttonbar.h"
    31 #include "mpxvideoplaybackcontrolbar.h"
    32 #include "mpxvideoplaybackprogressbar.h"
       
    33 #include "mpxvideoplaybackfiledetailswidget.h"
    32 #include "mpxvideoplaybackfiledetailswidget.h"
    34 #include "mpxvideoplaybacknontouchvolumebar.h"
    33 #include "mpxvideoplaybacknontouchvolumebar.h"
    35 #include "mpxvideoplaybackcontrolconfiguration.h"
    34 #include "mpxvideoplaybackcontrolconfiguration.h"
    36 #include "mpxvideoplaybackdetailsplaybackwindow.h"
    35 #include "mpxvideoplaybackdetailsplaybackwindow.h"
    37 
    36 
   128         object->setObjectName( name );
   127         object->setObjectName( name );
   129         
   128         
   130         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[HbLabel] to object list") );                
   129         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[HbLabel] to object list") );                
   131         mWidgets.append( object );
   130         mWidgets.append( object );
   132     }
   131     }
   133     else if ( name == "buttonBarLayout" )
   132     else if ( name == "controlBarLayout" )
   134     {
   133     {
   135         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating buttonBarLayout") );
   134         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating controlBarLayout") );
   136     
   135     
   137         object = new QMPXVideoPlaybackButtonBar( mController );
   136         object = new QMPXVideoPlaybackControlBar( mController );
   138         object->setObjectName( name );
   137         object->setObjectName( name );
   139         
   138         
   140         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[buttonBarLayout] to object list") );                        
   139         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[controlBarLayout] to object list") );                        
   141         mWidgets.append( object );
       
   142     }
       
   143     else if ( name == "progressBarLayout" )
       
   144     {
       
   145         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating progressBarLayout") );
       
   146     
       
   147         object = new QMPXVideoPlaybackProgressBar( mController );
       
   148         object->setObjectName( name );
       
   149         
       
   150         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[progressBarLayout] to object list") );                        
       
   151         mWidgets.append( object );
   140         mWidgets.append( object );
   152     }
   141     }
   153     else if ( name == "fileDetailsLayout" )
   142     else if ( name == "fileDetailsLayout" )
   154     {
   143     {
   155         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating fileDetailsLayout") );
   144         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating fileDetailsLayout") );
   198         object->setObjectName( name );
   187         object->setObjectName( name );
   199         
   188         
   200         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[HbRatingSlider] to object list") );                        
   189         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending[HbRatingSlider] to object list") );                        
   201         mWidgets.append( object );
   190         mWidgets.append( object );
   202     }
   191     }
   203             
   192 
   204     return object;
   193     return object;
   205 }
   194 }
   206 
   195 
   207 // -------------------------------------------------------------------------------------------------
   196 // -------------------------------------------------------------------------------------------------
   208 // QMPXVideoPlaybackDocumentLoader::exist()
   197 // QMPXVideoPlaybackDocumentLoader::exist()