videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybacktoolbar/stub/src/hbtoolbutton.cpp
author hgs
Fri, 30 Apr 2010 09:52:11 +0300
changeset 37 4eb2df7f7cbe
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 HbToolButton
*
*/

// Version : %version:  1 %



#include <qgraphicswidget>

#include <hbaction.h>
#include <hbframedrawer.h>

#include "mpxvideo_debug.h"
#include "hbtoolbutton.h"

// -------------------------------------------------------------------------------------------------
// HbToolButton::HbToolButton
// -------------------------------------------------------------------------------------------------
//
HbToolButton::HbToolButton( HbAction *action )
{
    MPX_ENTER_EXIT(_L("HbToolButton::HbToolButton()"));

    mAction = action;
}

// -------------------------------------------------------------------------------------------------
// HbToolButton::~HbToolButton
// -------------------------------------------------------------------------------------------------
//
HbToolButton::~HbToolButton()
{
    MPX_DEBUG(_L("HbToolButton::HbToolButton") );
}

// -------------------------------------------------------------------------------------------------
// HbToolButton::isEnabled
// -------------------------------------------------------------------------------------------------
//
bool HbToolButton::isEnabled()
{
    MPX_DEBUG(_L("HbToolButton::isEnabled") );

    return mAction->isEnabled();
}

// -------------------------------------------------------------------------------------------------
// HbToolButton::press
// -------------------------------------------------------------------------------------------------
//
void HbToolButton::press()
{
    MPX_DEBUG(_L("HbToolButton::press") );

    emit pressed();
}

// -------------------------------------------------------------------------------------------------
// HbToolButton::release
// -------------------------------------------------------------------------------------------------
//
void HbToolButton::release()
{
    MPX_DEBUG(_L("HbToolButton::release") );

    emit released();
}

// End of file