videoplayback/videoplaybackview/tsrc/testtoolbar/src/testtoolbar.cpp
changeset 66 adb51f74b890
parent 58 d2b028fd1f7d
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
    13 *
    13 *
    14 * Description:   tester for methods in TestToolBar
    14 * Description:   tester for methods in TestToolBar
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  8 %
    18 // Version : %version:  9 %
    19 
    19 
    20 
    20 
    21 #include <qdebug>
    21 #include <qdebug>
    22 #include <hbmainwindow.h>
    22 #include <hbmainwindow.h>
    23 #include <hbapplication.h>
    23 #include <hbapplication.h>
   427 
   427 
   428     //
   428     //
   429     // video clip, view mode is full-screen
   429     // video clip, view mode is full-screen
   430     //
   430     //
   431     details->mVideoEnabled = true;
   431     details->mVideoEnabled = true;
   432     details->mVideoHeight = 1;
   432     details->mAspectRatioChangeable = true;
   433     details->mVideoWidth = 1;
       
   434     details->mTvOutConnected = false;
   433     details->mTvOutConnected = false;
   435     details->mSeekable = true;
   434     details->mSeekable = true;
   436     details->mPausableStream = true;
   435     details->mPausableStream = true;
   437     mController->mViewMode = EFullScreenView;
   436     mController->mViewMode = EFullScreenView;
   438 
   437 
   446 
   445 
   447     //
   446     //
   448     // video clip has same aspect ratio as display window
   447     // video clip has same aspect ratio as display window
   449     //
   448     //
   450     details->mVideoEnabled = true;
   449     details->mVideoEnabled = true;
   451     details->mVideoHeight = 360;
   450     details->mAspectRatioChangeable = false;
   452     details->mVideoWidth = 640;
       
   453     details->mTvOutConnected = false;
   451     details->mTvOutConnected = false;
   454     mController->mViewMode = EFullScreenView;
   452     mController->mViewMode = EFullScreenView;
   455 
   453 
   456     mVideoToolBar->updateWithFileDetails( details );
   454     mVideoToolBar->updateWithFileDetails( details );
   457 
   455 
   463 
   461 
   464     //
   462     //
   465     // audio-only clip, view mode is full-screen
   463     // audio-only clip, view mode is full-screen
   466     //
   464     //
   467     details->mVideoEnabled = false;
   465     details->mVideoEnabled = false;
   468     details->mVideoHeight = 0;
   466     details->mAspectRatioChangeable = false;
   469     details->mVideoWidth = 1;
       
   470     details->mTvOutConnected = true;
   467     details->mTvOutConnected = true;
   471     details->mSeekable = false;
   468     details->mSeekable = false;
   472     details->mPausableStream = true;
   469     details->mPausableStream = true;
   473 
   470 
   474     mVideoToolBar->updateWithFileDetails( details );
   471     mVideoToolBar->updateWithFileDetails( details );
   481 
   478 
   482     //
   479     //
   483     // local audio-only clip, view mode is audio-only
   480     // local audio-only clip, view mode is audio-only
   484     //
   481     //
   485     details->mVideoEnabled = false;
   482     details->mVideoEnabled = false;
   486     details->mVideoHeight = 0;
   483     details->mAspectRatioChangeable = false;
   487     details->mVideoWidth = 1;
       
   488     details->mTvOutConnected = true;
   484     details->mTvOutConnected = true;
   489     details->mSeekable = true;
   485     details->mSeekable = true;
   490     details->mPausableStream = false;
   486     details->mPausableStream = false;
   491     mController->mState = EPbStatePlaying;
   487     mController->mState = EPbStatePlaying;
   492     mController->mViewMode = EAudioOnlyView;
   488     mController->mViewMode = EAudioOnlyView;
   544 
   540 
   545     //
   541     //
   546     // video clip, view mode is full-screen
   542     // video clip, view mode is full-screen
   547     //
   543     //
   548     details->mVideoEnabled = true;
   544     details->mVideoEnabled = true;
   549     details->mVideoHeight = 1;
   545     details->mAspectRatioChangeable = false;
   550     details->mVideoWidth = 1;
       
   551     details->mTvOutConnected = false;
   546     details->mTvOutConnected = false;
   552     details->mSeekable = true;
   547     details->mSeekable = true;
   553     details->mPausableStream = true;
   548     details->mPausableStream = true;
   554 
   549 
   555     mVideoToolBar->updateWithFileDetails( details );
   550     mVideoToolBar->updateWithFileDetails( details );