videoplayback/hbvideoplaybackview/tsrc/testdetailsplaybackwindow/stub/inc/hbpushbutton.h
changeset 52 e3cecb93e76a
parent 47 45e72b57a2fd
child 59 a76e86df7ccd
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
     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 HbPushButton
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  2 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef HBPUSHBUTTON_H_
       
    23 #define HBPUSHBUTTON_H
       
    24 
       
    25 #include <hbwidget.h>
       
    26 #include <hbstyle.h>
       
    27 
       
    28 class QGraphicsItem;
       
    29 class HbFrameDrawer;
       
    30 
       
    31 class HbPushButton : public HbWidget
       
    32 {
       
    33     Q_OBJECT
       
    34 
       
    35     public:
       
    36         HbPushButton();
       
    37         virtual ~HbPushButton();
       
    38 
       
    39     public:
       
    40         void setEnabled( bool enabled );
       
    41         void setVisible( bool visible );
       
    42         void setSelected( bool selected );
       
    43         bool isEnabled();
       
    44         bool isVisible();
       
    45         bool isSelected();
       
    46         QGraphicsItem* primitive( HbStyle::Primitive primitive ) const;
       
    47         void press();
       
    48         void release();
       
    49         HbFrameDrawer* frameBackground();
       
    50         void setFrameBackground( HbFrameDrawer *drawer );
       
    51 
       
    52     signals:
       
    53         void pressed();
       
    54         void released();
       
    55 
       
    56     public:
       
    57         bool mVisible;
       
    58         bool mEnabled;
       
    59         bool mSelected;
       
    60 
       
    61         QGraphicsItem *mBackground;
       
    62         HbFrameDrawer *mFrameDrawer;
       
    63 };
       
    64 
       
    65 #endif /*HBPUSHBUTTON_H*/
       
    66