videoplayerapp/videoplayerengine/tsrc/testvideoappuiengine/stub/src/videoplaybackwrapper.cpp
changeset 44 518105d52e45
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 VideoPlaybackWrapper
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  2 %
       
    19 
       
    20 
       
    21 #include "videoplaybackwrapper.h"
       
    22 #include "mpxvideo_debug.h"
       
    23 
       
    24 int mCount = 0;
       
    25 
       
    26 // -------------------------------------------------------------------------------------------------
       
    27 // VideoPlaybackWrapper::VideoPlaybackWrapper()
       
    28 // -------------------------------------------------------------------------------------------------
       
    29 //
       
    30 VideoPlaybackWrapper::VideoPlaybackWrapper()
       
    31 {
       
    32     MPX_DEBUG(_L("VideoPlaybackWrapper::VideoPlaybackWrapper()"));
       
    33     
       
    34     VideoPlaybackWrapper::Increment();
       
    35 }
       
    36 
       
    37 // -------------------------------------------------------------------------------------------------
       
    38 // VideoPlaybackWrapper::~VideoPlaybackWrapper()
       
    39 // -------------------------------------------------------------------------------------------------
       
    40 //
       
    41 VideoPlaybackWrapper::~VideoPlaybackWrapper()
       
    42 {
       
    43     MPX_DEBUG(_L("VideoPlaybackWrapper::~VideoPlaybackWrapper()"));
       
    44     
       
    45     VideoPlaybackWrapper::Decrement();
       
    46 }
       
    47 
       
    48 // -------------------------------------------------------------------------------------------------
       
    49 // VideoPlaybackWrapper::openPlaybackView()
       
    50 // -------------------------------------------------------------------------------------------------
       
    51 //
       
    52 void VideoPlaybackWrapper::openPlaybackView()
       
    53 {
       
    54     MPX_DEBUG(_L("VideoPlaybackWrapper::openPlaybackView()"));
       
    55     
       
    56     emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView );
       
    57 }
       
    58 
       
    59 // -------------------------------------------------------------------------------------------------
       
    60 // VideoPlaybackWrapper::Increment()
       
    61 // -------------------------------------------------------------------------------------------------
       
    62 //
       
    63 void VideoPlaybackWrapper::Increment()
       
    64 {
       
    65     MPX_DEBUG(_L("VideoPlaybackWrapper::Increment()"));
       
    66     
       
    67     ++mCount;
       
    68 }
       
    69 
       
    70 // -------------------------------------------------------------------------------------------------
       
    71 // VideoPlaybackWrapper::Decrement()
       
    72 // -------------------------------------------------------------------------------------------------
       
    73 //
       
    74 void VideoPlaybackWrapper::Decrement()
       
    75 {
       
    76     MPX_DEBUG(_L("VideoPlaybackWrapper::Decrement()"));
       
    77     
       
    78     if ( mCount > 0 )
       
    79     {   
       
    80         --mCount;
       
    81     }
       
    82 }
       
    83 
       
    84 // -------------------------------------------------------------------------------------------------
       
    85 // VideoPlaybackWrapper::GetInstanceCount()
       
    86 // -------------------------------------------------------------------------------------------------
       
    87 //
       
    88 int VideoPlaybackWrapper::GetInstanceCount()
       
    89 {
       
    90     MPX_DEBUG(_L("VideoPlaybackWrapper::GetInstanceCount()"));
       
    91     
       
    92     return mCount;
       
    93 }
       
    94 
       
    95 // -------------------------------------------------------------------------------------------------
       
    96 // VideoPlaybackWrapper::playMedia()
       
    97 // -------------------------------------------------------------------------------------------------
       
    98 //
       
    99 int VideoPlaybackWrapper::playMedia( QString aFileName )
       
   100 {
       
   101     MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia()"));
       
   102     
       
   103     Q_UNUSED( aFileName );
       
   104     return 0;
       
   105 }
       
   106 
       
   107 // -------------------------------------------------------------------------------------------------
       
   108 // VideoPlaybackWrapper::lateInit()
       
   109 // -------------------------------------------------------------------------------------------------
       
   110 //
       
   111 void VideoPlaybackWrapper::lateInit()
       
   112 {
       
   113     MPX_DEBUG(_L("VideoPlaybackWrapper::lateInit()"));
       
   114 }
       
   115 
       
   116 // End of File