videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/videoplaybackwrapper.cpp
author hgs
Fri, 06 Aug 2010 09:43:48 +0300
changeset 50 21fe8338c6bf
parent 49 824471cb468a
child 58 d2b028fd1f7d
permissions -rw-r--r--
201031
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Stub-implementation of VideoPlaybackWrapper
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
50
hgs
parents: 49
diff changeset
    18
// Version : %version:  da1mmcf#10 %
44
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include "videoplaybackwrapper.h"
hgs
parents:
diff changeset
    22
#include "mpxvideo_debug.h"
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
int mCount = 0;
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
VideoPlaybackWrapper::VideoPlaybackWrapper()
hgs
parents:
diff changeset
    27
{
hgs
parents:
diff changeset
    28
    MPX_DEBUG(_L("VideoPlaybackWrapper::VideoPlaybackWrapper()"));    
hgs
parents:
diff changeset
    29
    VideoPlaybackWrapper::Increment();
hgs
parents:
diff changeset
    30
}
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
VideoPlaybackWrapper::~VideoPlaybackWrapper()
hgs
parents:
diff changeset
    33
{
hgs
parents:
diff changeset
    34
    MPX_DEBUG(_L("VideoPlaybackWrapper::~VideoPlaybackWrapper()"));
hgs
parents:
diff changeset
    35
    VideoPlaybackWrapper::Decrement();
hgs
parents:
diff changeset
    36
}
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
void VideoPlaybackWrapper::openPlaybackView()
hgs
parents:
diff changeset
    39
{
hgs
parents:
diff changeset
    40
    MPX_DEBUG(_L("VideoPlaybackWrapper::openPlaybackView()"));    
hgs
parents:
diff changeset
    41
    emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView );
hgs
parents:
diff changeset
    42
}
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
void VideoPlaybackWrapper::Increment()
hgs
parents:
diff changeset
    45
{
hgs
parents:
diff changeset
    46
    MPX_DEBUG(_L("VideoPlaybackWrapper::Increment()"));    
hgs
parents:
diff changeset
    47
    ++mCount;
hgs
parents:
diff changeset
    48
}
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
void VideoPlaybackWrapper::Decrement()
hgs
parents:
diff changeset
    51
{
hgs
parents:
diff changeset
    52
    MPX_DEBUG(_L("VideoPlaybackWrapper::Decrement()"));
hgs
parents:
diff changeset
    53
    
hgs
parents:
diff changeset
    54
    if ( mCount > 0 )
hgs
parents:
diff changeset
    55
    {   
hgs
parents:
diff changeset
    56
        --mCount;
hgs
parents:
diff changeset
    57
    }
hgs
parents:
diff changeset
    58
}
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
int VideoPlaybackWrapper::GetInstanceCount()
hgs
parents:
diff changeset
    61
{
hgs
parents:
diff changeset
    62
    MPX_DEBUG(_L("VideoPlaybackWrapper::GetInstanceCount()"));    
hgs
parents:
diff changeset
    63
    return mCount;
hgs
parents:
diff changeset
    64
}
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
int VideoPlaybackWrapper::playMedia( QString aFileName )
hgs
parents:
diff changeset
    67
{
hgs
parents:
diff changeset
    68
    MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFileName )"));
hgs
parents:
diff changeset
    69
    
hgs
parents:
diff changeset
    70
    Q_UNUSED( aFileName );    
hgs
parents:
diff changeset
    71
    return 0;
hgs
parents:
diff changeset
    72
}
hgs
parents:
diff changeset
    73
49
hgs
parents: 44
diff changeset
    74
int VideoPlaybackWrapper::replayMedia( QString aFileName )
hgs
parents: 44
diff changeset
    75
{
hgs
parents: 44
diff changeset
    76
    MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::replayMedia"));   
hgs
parents: 44
diff changeset
    77
    
hgs
parents: 44
diff changeset
    78
    Q_UNUSED( aFileName ); 
hgs
parents: 44
diff changeset
    79
    return 0;
hgs
parents: 44
diff changeset
    80
}
hgs
parents: 44
diff changeset
    81
hgs
parents: 44
diff changeset
    82
44
hgs
parents:
diff changeset
    83
int VideoPlaybackWrapper::playMedia( RFile aFile )
hgs
parents:
diff changeset
    84
{
hgs
parents:
diff changeset
    85
    MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFile )"));
hgs
parents:
diff changeset
    86
    
hgs
parents:
diff changeset
    87
    Q_UNUSED( aFile );    
hgs
parents:
diff changeset
    88
    return 0;
hgs
parents:
diff changeset
    89
}
hgs
parents:
diff changeset
    90
hgs
parents:
diff changeset
    91
void VideoPlaybackWrapper::lateInit()
hgs
parents:
diff changeset
    92
{
hgs
parents:
diff changeset
    93
    MPX_DEBUG(_L("VideoPlaybackWrapper::lateInit()"));    
hgs
parents:
diff changeset
    94
}
hgs
parents:
diff changeset
    95
50
hgs
parents: 49
diff changeset
    96
const QString VideoPlaybackWrapper::resloveErrorString( int errorCode ) 
hgs
parents: 49
diff changeset
    97
{ 
hgs
parents: 49
diff changeset
    98
    MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::resloveErrorString()")); 
hgs
parents: 49
diff changeset
    99
    
hgs
parents: 49
diff changeset
   100
    Q_UNUSED( errorCode );
hgs
parents: 49
diff changeset
   101
    
hgs
parents: 49
diff changeset
   102
    const QString string("No Supported");
hgs
parents: 49
diff changeset
   103
    
hgs
parents: 49
diff changeset
   104
    return string;
hgs
parents: 49
diff changeset
   105
 
hgs
parents: 49
diff changeset
   106
} 
hgs
parents: 49
diff changeset
   107
hgs
parents: 49
diff changeset
   108
int VideoPlaybackWrapper::playURI( QString aUri )
hgs
parents: 49
diff changeset
   109
{
hgs
parents: 49
diff changeset
   110
    MPX_ENTER_EXIT(_L("QMpxVideoPlaybackWrapper::playURI"));   
hgs
parents: 49
diff changeset
   111
    
hgs
parents: 49
diff changeset
   112
    Q_UNUSED( aUri );  
hgs
parents: 49
diff changeset
   113
    
hgs
parents: 49
diff changeset
   114
    return 0;
hgs
parents: 49
diff changeset
   115
}
hgs
parents: 49
diff changeset
   116
44
hgs
parents:
diff changeset
   117
// End of File