videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/src/hbeffect.cpp
changeset 41 229f037ce963
parent 40 13331705e488
child 42 17f382c040b1
equal deleted inserted replaced
40:13331705e488 41:229f037ce963
     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 HbEffect
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:   3 %
       
    19 
       
    20 
       
    21 
       
    22 #include "mpxvideo_debug.h"
       
    23 #include "hbeffect.h"
       
    24 
       
    25 
       
    26 // -------------------------------------------------------------------------------------------------
       
    27 // HbEffect::add
       
    28 // -------------------------------------------------------------------------------------------------
       
    29 //
       
    30 bool HbEffect::add( QGraphicsItem *item, const QString &filePath, const QString &effectEvent )
       
    31 {
       
    32     MPX_DEBUG(_L("HbEffect::add") );
       
    33 
       
    34     Q_UNUSED( item );
       
    35     Q_UNUSED( filePath );
       
    36     Q_UNUSED( effectEvent );
       
    37 
       
    38     return true;
       
    39 }
       
    40 
       
    41 // -------------------------------------------------------------------------------------------------
       
    42 // HbEffect::remove
       
    43 // -------------------------------------------------------------------------------------------------
       
    44 //
       
    45 bool HbEffect::remove( QGraphicsItem *item, const QString &filePath, const QString &effectEvent )
       
    46 {
       
    47     MPX_DEBUG(_L("HbEffect::remove") );
       
    48 
       
    49     Q_UNUSED( item );
       
    50     Q_UNUSED( filePath );
       
    51     Q_UNUSED( effectEvent );
       
    52 
       
    53     return true;
       
    54 }
       
    55 
       
    56 // -------------------------------------------------------------------------------------------------
       
    57 // HbEffect::start
       
    58 // -------------------------------------------------------------------------------------------------
       
    59 //
       
    60 bool HbEffect::start( 
       
    61     QGraphicsItem *item, const QString &effectEvent, QObject *receiver, const char *member )
       
    62 {
       
    63     MPX_DEBUG(_L("HbEffect::start") );
       
    64 
       
    65     Q_UNUSED( item );
       
    66     Q_UNUSED( effectEvent );
       
    67 
       
    68     HbEffect::EffectStatus status;
       
    69     status.reason = Hb::EffectFinished;
       
    70 
       
    71     QMetaObject::invokeMethod(
       
    72         receiver,
       
    73         member,
       
    74         Qt::AutoConnection, 
       
    75         QGenericReturnArgument(),
       
    76         Q_ARG( HbEffect::EffectStatus, status ) );
       
    77 
       
    78     return true;
       
    79 }
       
    80 
       
    81 // -------------------------------------------------------------------------------------------------
       
    82 // HbEffect::cancel
       
    83 // -------------------------------------------------------------------------------------------------
       
    84 //
       
    85 bool HbEffect::cancel( QGraphicsItem *item )
       
    86 {
       
    87     MPX_DEBUG(_L("HbEffect::cancel"));
       
    88 
       
    89     Q_UNUSED( item );
       
    90 
       
    91     return true;
       
    92 }
       
    93 
       
    94 // -------------------------------------------------------------------------------------------------
       
    95 // HbEffect::effectRunning
       
    96 // -------------------------------------------------------------------------------------------------
       
    97 //
       
    98 bool HbEffect::effectRunning( QGraphicsItem *item, const QString &effectEvent )
       
    99 {
       
   100     MPX_DEBUG(_L("HbEffect::effectRunning"));
       
   101 
       
   102     Q_UNUSED( item );
       
   103     Q_UNUSED( effectEvent );
       
   104 
       
   105     return false;
       
   106 }
       
   107 
       
   108 // End of file