videoplayback/hbvideoplaybackview/tsrc/testdetailsplaybackwindow/stub/inc/hbpushbutton.h
changeset 36 8aed59de29f9
child 20 b9e04db066d4
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
       
     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:  1 %
       
    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 
       
    30 class HbPushButton : public HbWidget
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34     public:
       
    35         HbPushButton();
       
    36         virtual ~HbPushButton();
       
    37 
       
    38     public:
       
    39         void setEnabled( bool enabled );
       
    40         void setVisible( bool visible );
       
    41         void setSelected( bool selected );
       
    42         bool isEnabled();
       
    43         bool isVisible();
       
    44         bool isSelected();
       
    45         QGraphicsItem* primitive( HbStyle::Primitive primitive ) const;
       
    46         void press();
       
    47         void release();
       
    48 
       
    49     signals:
       
    50         void pressed();
       
    51         void released();
       
    52 
       
    53     public:
       
    54         bool mVisible;
       
    55         bool mEnabled;
       
    56         bool mSelected;
       
    57 
       
    58         QGraphicsItem *mBackground;
       
    59 };
       
    60 
       
    61 #endif /*HBPUSHBUTTON_H*/
       
    62