videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/src/mpxvideoviewwrapper.cpp
changeset 15 cf5481c2bc0b
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     1 /*
       
     2 * Copyright (c) 2010 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:   Implementation of Video wrapper
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 //  Include Files
       
    23 
       
    24 #include "mpxvideo_debug.h"
       
    25 #include "mpxvideoviewwrapper.h"
       
    26 #include "hbvideobaseplaybackview.h"
       
    27 #include "mpxvideoplaybackviewfiledetails.h"
       
    28 #include "mpxcommonvideoplaybackview.hrh"
       
    29 
       
    30 //  Member Functions
       
    31 
       
    32 // -------------------------------------------------------------------------------------------------
       
    33 // CMPXVideoViewWrapper::CMPXVideoViewWrapper()
       
    34 // -------------------------------------------------------------------------------------------------
       
    35 //
       
    36 CMPXVideoViewWrapper::CMPXVideoViewWrapper( HbVideoBasePlaybackView* aView )
       
    37     : mView( aView )    
       
    38 {
       
    39 }
       
    40 
       
    41 // -------------------------------------------------------------------------------------------------
       
    42 // CMPXVideoViewWrapper::NewL()
       
    43 // -------------------------------------------------------------------------------------------------
       
    44 //
       
    45 CMPXVideoViewWrapper* CMPXVideoViewWrapper::NewL( HbVideoBasePlaybackView* aView )
       
    46 {
       
    47     MPX_ENTER_EXIT(_L("CMPXVideoViewWrapper::CMPXVideoViewWrapper()"));
       
    48     CMPXVideoViewWrapper* self = new (ELeave) CMPXVideoViewWrapper( aView );
       
    49 
       
    50     CleanupStack::PushL( self );
       
    51     self->ConstructL();
       
    52     CleanupStack::Pop();
       
    53 
       
    54     return self;
       
    55 }
       
    56 
       
    57 // -------------------------------------------------------------------------------------------------
       
    58 //   CMPXVideoViewWrapper::ConstructL()
       
    59 // -------------------------------------------------------------------------------------------------
       
    60 //
       
    61 void CMPXVideoViewWrapper::ConstructL()
       
    62 {
       
    63     mMediaRequested = EFalse;       
       
    64 }
       
    65 
       
    66 // -------------------------------------------------------------------------------------------------
       
    67 // CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
       
    68 // -------------------------------------------------------------------------------------------------
       
    69 //
       
    70 CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
       
    71 {
       
    72     MPX_DEBUG(_L("CMPXVideoViewWrapper::~CMPXVideoViewWrapper"));
       
    73 }
       
    74 
       
    75 
       
    76 // -------------------------------------------------------------------------------------------------
       
    77 //   CMPXVideoViewWrapper::HandleCommandL()
       
    78 // -------------------------------------------------------------------------------------------------
       
    79 //
       
    80 void CMPXVideoViewWrapper::HandleCommandL( TInt aCommand )
       
    81 {
       
    82     mCommandId = aCommand;
       
    83 }
       
    84 
       
    85 // -------------------------------------------------------------------------------------------------
       
    86 //   CMPXVideoViewWrapper::SetPropertyL()
       
    87 // -------------------------------------------------------------------------------------------------
       
    88 //
       
    89 void CMPXVideoViewWrapper::SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue )
       
    90 {
       
    91     mProperty = aProperty;
       
    92     Q_UNUSED( aValue );    
       
    93 }
       
    94 
       
    95 // -------------------------------------------------------------------------------------------------
       
    96 //   CMPXVideoViewWrapper::UpdateVideoRect()
       
    97 // -------------------------------------------------------------------------------------------------
       
    98 //
       
    99 void CMPXVideoViewWrapper::UpdateVideoRect( 
       
   100         TInt aX, TInt aY, TInt aWidth, TInt aHeight, TBool transitionEffect )
       
   101 {
       
   102     Q_UNUSED( aX );
       
   103     Q_UNUSED( aY );
       
   104     Q_UNUSED( aWidth );    
       
   105     Q_UNUSED( aHeight );
       
   106     Q_UNUSED( transitionEffect );    
       
   107 }
       
   108 
       
   109 
       
   110 // EOF