videoplayerapp/videoplayerengine/tsrc/testvideoservices/stub/src/videoplayerengine.cpp
changeset 36 8aed59de29f9
parent 30 4f111d64a341
child 44 518105d52e45
child 52 e3cecb93e76a
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    13 *
    13 *
    14 * Description:  Implementation of VideoPlayerEngine
    14 * Description:  Implementation of VideoPlayerEngine
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 1 %
    18 // Version : %version: da1mmcf#3 %
    19 
    19 
    20 
    20 
    21 #include <qapplication>
    21 #include <qapplication>
    22 
    22 
    23 #include <hbinstance.h>
    23 #include <hbinstance.h>
    25 #include <xqplugininfo.h>
    25 #include <xqplugininfo.h>
    26 #include <xqserviceutil.h>
    26 #include <xqserviceutil.h>
    27 
    27 
    28 #include "videoplayerengine.h"
    28 #include "videoplayerengine.h"
    29 #include "mpxvideoplaybackwrapper.h"
    29 #include "mpxvideoplaybackwrapper.h"
       
    30 #include "mpxvideo_debug.h"
    30 
    31 
    31 // -------------------------------------------------------------------------------------------------
    32 // -------------------------------------------------------------------------------------------------
    32 // QVideoPlayerEngine()
    33 // QVideoPlayerEngine()
    33 // -------------------------------------------------------------------------------------------------
    34 // -------------------------------------------------------------------------------------------------
    34 //
    35 //
    35 QVideoPlayerEngine::QVideoPlayerEngine(bool isService)
    36 QVideoPlayerEngine::QVideoPlayerEngine(bool isService)
    36     : mIsService( isService )
    37     : mIsService( isService )
    37     , mEmbedded(false)
    38     , mEmbedded( false )
    38 {
    39 {
       
    40     MPX_DEBUG(_L("QVideoPlayerEngine::QVideoPlayerEngine()"));
    39 }
    41 }
    40 
    42 
    41 // -------------------------------------------------------------------------------------------------
    43 // -------------------------------------------------------------------------------------------------
    42 // ~QVideoPlayerEngine()
    44 // ~QVideoPlayerEngine()
    43 // -------------------------------------------------------------------------------------------------
    45 // -------------------------------------------------------------------------------------------------
    44 //
    46 //
    45 QVideoPlayerEngine::~QVideoPlayerEngine()
    47 QVideoPlayerEngine::~QVideoPlayerEngine()
    46 {
    48 {
       
    49     MPX_DEBUG(_L("QVideoPlayerEngine::~QVideoPlayerEngine()"));
    47 }
    50 }
    48 
    51 
    49 // -------------------------------------------------------------------------------------------------
    52 // -------------------------------------------------------------------------------------------------
    50 // initialize()
    53 // initialize()
    51 // -------------------------------------------------------------------------------------------------
    54 // -------------------------------------------------------------------------------------------------
    52 //
    55 //
    53 void QVideoPlayerEngine::initialize()
    56 void QVideoPlayerEngine::initialize()
    54 {
    57 {
       
    58     MPX_DEBUG(_L("QVideoPlayerEngine::initialize()"));
    55 }
    59 }
    56 
    60 
    57 // -------------------------------------------------------------------------------------------------
    61 // -------------------------------------------------------------------------------------------------
    58 // handleCommand()
    62 // handleCommand()
    59 // -------------------------------------------------------------------------------------------------
    63 // -------------------------------------------------------------------------------------------------
    60 //
    64 //
    61 void QVideoPlayerEngine::handleCommand( int commandCode )
    65 void QVideoPlayerEngine::handleCommand( int commandCode )
    62 {
    66 {
       
    67     MPX_DEBUG(_L("QVideoPlayerEngine::initialize()"));
       
    68     Q_UNUSED( commandCode );
    63 }
    69 }
    64 
    70 
    65 
    71 
    66 // -------------------------------------------------------------------------------------------------
    72 // -------------------------------------------------------------------------------------------------
    67 // handleQuit()
    73 // handleQuit()
    68 // -------------------------------------------------------------------------------------------------
    74 // -------------------------------------------------------------------------------------------------
    69 //
    75 //
    70 void QVideoPlayerEngine::handleQuit()
    76 void QVideoPlayerEngine::handleQuit()
    71 {
    77 {
       
    78     MPX_DEBUG(_L("QVideoPlayerEngine::handleQuit()"));
    72     delete this;
    79     delete this;
    73 }
    80 }
    74 
    81 
    75 
    82 
    76 // -------------------------------------------------------------------------------------------------
    83 // -------------------------------------------------------------------------------------------------
    77 // playMedia()
    84 // playMedia()
    78 // -------------------------------------------------------------------------------------------------
    85 // -------------------------------------------------------------------------------------------------
    79 //
    86 //
    80 void QVideoPlayerEngine::playMedia( QString filePath )
    87 void QVideoPlayerEngine::playMedia( QString filePath )
    81 {
    88 {
       
    89     MPX_DEBUG(_L("QVideoPlayerEngine::playMedia()"));
       
    90     Q_UNUSED( filePath );
    82 }
    91 }
    83 
    92 
    84 // -------------------------------------------------------------------------------------------------
    93 // -------------------------------------------------------------------------------------------------
    85 // setEmbedded()
    94 // setEmbedded()
    86 // -------------------------------------------------------------------------------------------------
    95 // -------------------------------------------------------------------------------------------------
    87 //
    96 //
    88 void QVideoPlayerEngine::setEmbedded()
    97 void QVideoPlayerEngine::setEmbedded()
    89 {
    98 {
       
    99     MPX_DEBUG(_L("QVideoPlayerEngine::setEmbedded()"));
    90     mEmbedded = true;
   100     mEmbedded = true;
    91 }
   101 }
    92 
   102 
       
   103 // -------------------------------------------------------------------------------------------------
       
   104 // playMedia()
       
   105 // -------------------------------------------------------------------------------------------------
       
   106 //
       
   107 void QVideoPlayerEngine::playMedia( RFile file )
       
   108 {    
       
   109     MPX_DEBUG(_L("QVideoPlayerEngine::playMedia( file )"));
       
   110     Q_UNUSED( file );
       
   111 }
       
   112 
    93 // End of file
   113 // End of file