videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/videoservices.cpp
changeset 44 518105d52e45
parent 37 4eb2df7f7cbe
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
    13 *
    13 *
    14 * Description:   Implementation of VideoServices Stub
    14 * Description:   Implementation of VideoServices Stub
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: da1mmcf#4 %
    18 // Version : %version: da1mmcf#5 %
    19 
    19 
    20 #include "videoplayerengine.h"
    20 #include "videoplayerengine.h"
    21 #include "videoservices.h"
    21 #include "videoservices.h"
    22 #include "videoserviceurifetch.h"
    22 #include "videoserviceurifetch.h"
    23 #include "videoserviceplay.h"
    23 #include "videoserviceplay.h"
    30 
    30 
    31 // -----------------------------------------------------------------------------
    31 // -----------------------------------------------------------------------------
    32 // VideoServices::instance()
    32 // VideoServices::instance()
    33 // -----------------------------------------------------------------------------
    33 // -----------------------------------------------------------------------------
    34 //
    34 //
    35 VideoServices* VideoServices::instance(QVideoPlayerEngine* engine)
    35 VideoServices* VideoServices::instance( VideoPlayerEngine* engine )
    36 {
    36 {
    37     MPX_ENTER_EXIT(_L("VideoServices::instance()"));
    37     MPX_ENTER_EXIT(_L("VideoServices::instance()"));
    38     
    38     
    39     if ( ! mInstance )
    39     if ( ! mInstance )
    40     {
    40     {
    65 
    65 
    66 // ----------------------------------------------------------------------------
    66 // ----------------------------------------------------------------------------
    67 // VideoServices()
    67 // VideoServices()
    68 // ----------------------------------------------------------------------------
    68 // ----------------------------------------------------------------------------
    69 //
    69 //
    70 VideoServices::VideoServices(QVideoPlayerEngine* engine) 
    70 VideoServices::VideoServices( VideoPlayerEngine* engine ) 
    71     : mCurrentService(VideoServices::ENoService)
    71     : mCurrentService(VideoServices::ENoService)
    72     , mFetchSelected( false )
    72     , mFetchSelected( false )
    73 {
    73 {
    74     MPX_ENTER_EXIT(_L("VideoServices::VideoServices()"));
    74     MPX_ENTER_EXIT(_L("VideoServices::VideoServices()"));
    75     
    75     
    76     mServiceUriFetch = new VideoServiceUriFetch(this);
    76     mServiceUriFetch = new VideoServiceUriFetch( this );
    77     mServicePlay     = new VideoServicePlay(this, engine);
    77     mServicePlay     = new VideoServicePlay( this, engine );
    78     mServiceView     = new VideoServiceView(this, engine);
    78     mServiceView     = new VideoServiceView( this, engine );
    79 }
    79 }
    80 
    80 
    81 // ----------------------------------------------------------------------------
    81 // ----------------------------------------------------------------------------
    82 // ~VideoServices()
    82 // ~VideoServices()
    83 // ----------------------------------------------------------------------------
    83 // ----------------------------------------------------------------------------
    84 //
    84 //
    85 VideoServices::~VideoServices()
    85 VideoServices::~VideoServices()
    86 {
    86 {
    87     MPX_ENTER_EXIT(_L("VideoServices::~VideoServices()"));
    87     MPX_ENTER_EXIT(_L("VideoServices::~VideoServices()"));
    88     
    88     
    89 	delete mServiceUriFetch;
    89     delete mServiceUriFetch;
    90 	delete mServicePlay;
    90     delete mServicePlay;
    91 	delete mServiceView;
    91     delete mServiceView;
    92 }
    92 }
    93 
    93 
    94 
    94 
    95 // ----------------------------------------------------------------------------
    95 // ----------------------------------------------------------------------------
    96 // currentService()
    96 // currentService()
    97 // ----------------------------------------------------------------------------
    97 // ----------------------------------------------------------------------------
    98 //
    98 //
    99 VideoServices::TVideoService VideoServices::currentService()
    99 VideoServices::TVideoService VideoServices::currentService()
   100 {
   100 {
   101     MPX_DEBUG(_L("VideoServices::currentService() ret %d"), mCurrentService);
   101     MPX_DEBUG(_L("VideoServices::currentService() ret %d"), mCurrentService);
   102 	return mCurrentService;
   102     return mCurrentService;
   103 }
   103 }
   104 
   104 
   105 
   105 
   106 // ----------------------------------------------------------------------------
   106 // ----------------------------------------------------------------------------
   107 // setCurrentService()
   107 // setCurrentService()
   108 // ----------------------------------------------------------------------------
   108 // ----------------------------------------------------------------------------
   109 //
   109 //
   110 void VideoServices::setCurrentService( VideoServices::TVideoService service )
   110 void VideoServices::setCurrentService( VideoServices::TVideoService service )
   111 {
   111 {
   112     MPX_DEBUG(_L("VideoServices::setCurrentService(%d)"), service);
   112     MPX_DEBUG(_L("VideoServices::setCurrentService(%d)"), service);
   113 	mCurrentService = service;
   113     mCurrentService = service;
   114 }
   114 }
   115 
   115