videoplayerapp/videoplayerengine/src/videoserviceplay.cpp
changeset 36 8aed59de29f9
parent 30 4f111d64a341
child 24 7d93ee07fb27
--- a/videoplayerapp/videoplayerengine/src/videoserviceplay.cpp	Thu Apr 01 23:32:44 2010 +0300
+++ b/videoplayerapp/videoplayerengine/src/videoserviceplay.cpp	Fri Apr 16 18:13:14 2010 +0300
@@ -15,43 +15,79 @@
 *
 */
 
+// Version : %version: %
 
-#include <videoservices.h>
+#include "videoservices.h"
 #include "videoserviceplay.h"
 #include "videoplayerengine.h"
+#include "mpxvideo_debug.h"
 
 
+// -------------------------------------------------------------------------------------------------
+// VideoServicePlay()
+// -------------------------------------------------------------------------------------------------
+// 
 VideoServicePlay::VideoServicePlay( VideoServices* parent, QVideoPlayerEngine* engine )
-: XQServiceProvider(QLatin1String("com.nokia.Videos.IVideoView"), parent),
-  mEngine(engine),
-  mServiceApp(parent)
+    : XQServiceProvider( QLatin1String("com.nokia.Videos.IVideoView"), parent )
+    , mEngine( engine )
+    , mServiceApp( parent )
 {
+    MPX_ENTER_EXIT(_L("VideoServicePlay::VideoServicePlay()"));
     publishAll();
 }
 
+// -------------------------------------------------------------------------------------------------
+// ~VideoServicePlay()
+// -------------------------------------------------------------------------------------------------
+// 
 VideoServicePlay::~VideoServicePlay()
 {
+    MPX_DEBUG(_L("VideoServicePlay::~VideoServicePlay()"));
 }
 
+// -------------------------------------------------------------------------------------------------
+// setEngine()
+// -------------------------------------------------------------------------------------------------
+// 
 void VideoServicePlay::setEngine( QVideoPlayerEngine* engine )
 {
-	mEngine = engine;
+    MPX_DEBUG(_L("VideoServicePlay::setEngine()"));
+    mEngine = engine;
 }
 
+// -------------------------------------------------------------------------------------------------
+// playMedia()
+// -------------------------------------------------------------------------------------------------
+// 
 void VideoServicePlay::playMedia( QString filePath )
 {
-    if(mEngine)
+    MPX_ENTER_EXIT(_L("VideoServicePlay::playMedia()"),
+                   _L("filePath = %s"), filePath.data() );  
+                     
+    if ( mEngine )
     {
-    	mServiceApp->setCurrentService(VideoServices::EPlayback);
+    	mServiceApp->setCurrentService( VideoServices::EPlayback );
     	mEngine->playMedia( filePath );
     }
 }
 
+// -------------------------------------------------------------------------------------------------
+// playPDLMedia()
+// -------------------------------------------------------------------------------------------------
+// 
 void VideoServicePlay::playPDLMedia( QString filePath, int downloadID  )
 {
+    MPX_DEBUG(_L("VideoServicePlay::playPDLMedia()"));
+    Q_UNUSED( filePath );
+    Q_UNUSED( downloadID );
 }
 
+// -------------------------------------------------------------------------------------------------
+// closePlayer()
+// -------------------------------------------------------------------------------------------------
+// 
 void VideoServicePlay::closePlayer()
 {
+    MPX_DEBUG(_L("VideoServicePlay::closePlayer()"));
 }