videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/mpxvideoplaybackwrapper.cpp
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Stub-implementation of QMpxVideoPlaybackWrapper
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  da1mmcf#6 %
       
    19 
       
    20 
       
    21 #include "mpxvideoplaybackwrapper.h"
       
    22 #include "mpxvideo_debug.h"
       
    23 
       
    24 int mCount = 0;
       
    25 
       
    26 QMpxVideoPlaybackWrapper::QMpxVideoPlaybackWrapper()
       
    27 {
       
    28     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::QMpxVideoPlaybackWrapper()"));    
       
    29     QMpxVideoPlaybackWrapper::Increment();
       
    30 }
       
    31 
       
    32 QMpxVideoPlaybackWrapper::~QMpxVideoPlaybackWrapper()
       
    33 {
       
    34     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::~QMpxVideoPlaybackWrapper()"));
       
    35     QMpxVideoPlaybackWrapper::Decrement();
       
    36 }
       
    37 
       
    38 void QMpxVideoPlaybackWrapper::openPlaybackView()
       
    39 {
       
    40     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::openPlaybackView()"));    
       
    41     emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView );
       
    42 }
       
    43 
       
    44 void QMpxVideoPlaybackWrapper::Increment()
       
    45 {
       
    46     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::Increment()"));    
       
    47     ++mCount;
       
    48 }
       
    49 
       
    50 void QMpxVideoPlaybackWrapper::Decrement()
       
    51 {
       
    52     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::Decrement()"));
       
    53     
       
    54     if ( mCount > 0 )
       
    55     {   
       
    56         --mCount;
       
    57     }
       
    58 }
       
    59 
       
    60 int QMpxVideoPlaybackWrapper::GetInstanceCount()
       
    61 {
       
    62     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::GetInstanceCount()"));    
       
    63     return mCount;
       
    64 }
       
    65 
       
    66 int QMpxVideoPlaybackWrapper::playMedia( QString aFileName )
       
    67 {
       
    68     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::playMedia( aFileName )"));
       
    69     
       
    70     Q_UNUSED( aFileName );    
       
    71     return 0;
       
    72 }
       
    73 
       
    74 int QMpxVideoPlaybackWrapper::playMedia( RFile aFile )
       
    75 {
       
    76     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::playMedia( aFile )"));
       
    77     
       
    78     Q_UNUSED( aFile );    
       
    79     return 0;
       
    80 }
       
    81 
       
    82 void QMpxVideoPlaybackWrapper::lateInit()
       
    83 {
       
    84     MPX_DEBUG(_L("QMpxVideoPlaybackWrapper::lateInit()"));    
       
    85 }
       
    86 
       
    87 // End of File