videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/videoplaybackwrapper.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:30:05 +0300
changeset 62 0e1e938beb1a
parent 52 e3cecb93e76a
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Stub-implementation of VideoPlaybackWrapper
*
*/

// Version : %version:  da1mmcf#11 %


#include "videoplaybackwrapper.h"
#include "mpxvideo_debug.h"

int mCount = 0;

VideoPlaybackWrapper::VideoPlaybackWrapper()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::VideoPlaybackWrapper()"));    
    VideoPlaybackWrapper::Increment();
}

VideoPlaybackWrapper::~VideoPlaybackWrapper()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::~VideoPlaybackWrapper()"));
    VideoPlaybackWrapper::Decrement();
}

void VideoPlaybackWrapper::openPlaybackView()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::openPlaybackView()"));    
    emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView );
}

void VideoPlaybackWrapper::Increment()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::Increment()"));    
    ++mCount;
}

void VideoPlaybackWrapper::Decrement()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::Decrement()"));
    
    if ( mCount > 0 )
    {   
        --mCount;
    }
}

int VideoPlaybackWrapper::GetInstanceCount()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::GetInstanceCount()"));    
    return mCount;
}

int VideoPlaybackWrapper::playMedia( QString aFileName )
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFileName )"));
    
    Q_UNUSED( aFileName );    
    return 0;
}

int VideoPlaybackWrapper::replayMedia( QString aFileName )
{
    MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::replayMedia"));   
    
    Q_UNUSED( aFileName );
    
    emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView ); 
        
    return 0;
}


int VideoPlaybackWrapper::playMedia( RFile aFile )
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFile )"));
    
    Q_UNUSED( aFile );    
    return 0;
}

void VideoPlaybackWrapper::lateInit()
{
    MPX_DEBUG(_L("VideoPlaybackWrapper::lateInit()"));    
}

const QString VideoPlaybackWrapper::resloveErrorString( int errorCode ) 
{ 
    MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::resloveErrorString()")); 
    
    Q_UNUSED( errorCode );
    
    const QString string("No Supported");
    
    return string;
 
} 

int VideoPlaybackWrapper::playURI( QString aUri )
{
    MPX_ENTER_EXIT(_L("QMpxVideoPlaybackWrapper::playURI"));   
    
    Q_UNUSED( aUri );  
    
    return 0;
}

// End of File