videoplayback/videoplaybackview/tsrc/testtoolbar/stub/inc/hbtoolbutton.h
changeset 44 518105d52e45
parent 37 4eb2df7f7cbe
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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 HbToolButton
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:   1 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef HbTOOLBUTTON_H_
       
    23 #define HbTOOLBUTTON_H_
       
    24 
       
    25 #include <hbwidget.h>
       
    26 
       
    27 class HbAction;
       
    28 
       
    29 class HbToolButton : public HbWidget
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33     public:
       
    34         HbToolButton( HbAction *action );
       
    35         virtual ~HbToolButton();
       
    36 
       
    37     public:
       
    38         void press();
       
    39         void release();
       
    40         bool isEnabled();
       
    41 
       
    42     signals:
       
    43         void pressed();
       
    44         void released();
       
    45 
       
    46     private:
       
    47         bool mEnabled;
       
    48         HbAction *mAction;
       
    49 };
       
    50 
       
    51 #endif /*HbTOOLBUTTON_H_*/
       
    52