videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackcontrolbar/stub/src/hbeffect.cpp
author hgs
Fri, 30 Apr 2010 09:52:11 +0300
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 24 7d93ee07fb27
permissions -rw-r--r--
201017

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of HbEffect
*
*/

// Version : %version:   2 %



#include "mpxvideo_debug.h"
#include "hbeffect.h"


// -------------------------------------------------------------------------------------------------
// HbEffect::add
// -------------------------------------------------------------------------------------------------
//
bool HbEffect::add( QGraphicsItem *item, const QString &filePath, const QString &effectEvent )
{
    MPX_DEBUG(_L("HbEffect::add") );

    Q_UNUSED( item );
    Q_UNUSED( filePath );
    Q_UNUSED( effectEvent );

    return true;
}

// -------------------------------------------------------------------------------------------------
// HbEffect::remove
// -------------------------------------------------------------------------------------------------
//
bool HbEffect::remove( QGraphicsItem *item, const QString &filePath, const QString &effectEvent )
{
    MPX_DEBUG(_L("HbEffect::remove") );

    Q_UNUSED( item );
    Q_UNUSED( filePath );
    Q_UNUSED( effectEvent );

    return true;
}

// -------------------------------------------------------------------------------------------------
// HbEffect::start
// -------------------------------------------------------------------------------------------------
//
bool HbEffect::start( 
    QGraphicsItem *item, const QString &effectEvent, QObject *receiver, const char *member )
{
    MPX_DEBUG(_L("HbEffect::start") );

    Q_UNUSED( item );
    Q_UNUSED( effectEvent );

    HbEffect::EffectStatus status;
    status.reason = Hb::EffectFinished;

    QMetaObject::invokeMethod(
        receiver,
        member,
        Qt::AutoConnection, 
        QGenericReturnArgument(),
        Q_ARG( HbEffect::EffectStatus, status ) );

    return true;
}

// -------------------------------------------------------------------------------------------------
// HbEffect::cancel
// -------------------------------------------------------------------------------------------------
//
bool HbEffect::cancel( QGraphicsItem *item )
{
    MPX_DEBUG(_L("HbEffect::cancel"));

    Q_UNUSED( item );

    return true;
}

// -------------------------------------------------------------------------------------------------
// HbEffect::effectRunning
// -------------------------------------------------------------------------------------------------
//
bool HbEffect::effectRunning( QGraphicsItem *item, const QString &effectEvent )
{
    MPX_DEBUG(_L("HbEffect::effectRunning"));

    Q_UNUSED( item );

    return false;
}

// End of file