videoplayback/hbvideoplaybackview/tsrc/testdetailsplaybackwindow/stub/inc/hbpushbutton.h
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
equal deleted inserted replaced
36:8aed59de29f9 37:4eb2df7f7cbe
    13 *
    13 *
    14 * Description:  Implementation of HbPushButton
    14 * Description:  Implementation of HbPushButton
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  1 %
    18 // Version : %version:  2 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #ifndef HBPUSHBUTTON_H_
    22 #ifndef HBPUSHBUTTON_H_
    23 #define HBPUSHBUTTON_H
    23 #define HBPUSHBUTTON_H
    24 
    24 
    25 #include <hbwidget.h>
    25 #include <hbwidget.h>
    26 #include <hbstyle.h>
    26 #include <hbstyle.h>
    27 
    27 
    28 class QGraphicsItem;
    28 class QGraphicsItem;
       
    29 class HbFrameDrawer;
    29 
    30 
    30 class HbPushButton : public HbWidget
    31 class HbPushButton : public HbWidget
    31 {
    32 {
    32     Q_OBJECT
    33     Q_OBJECT
    33 
    34 
    43         bool isVisible();
    44         bool isVisible();
    44         bool isSelected();
    45         bool isSelected();
    45         QGraphicsItem* primitive( HbStyle::Primitive primitive ) const;
    46         QGraphicsItem* primitive( HbStyle::Primitive primitive ) const;
    46         void press();
    47         void press();
    47         void release();
    48         void release();
       
    49         HbFrameDrawer* frameBackground();
       
    50         void setFrameBackground( HbFrameDrawer *drawer );
    48 
    51 
    49     signals:
    52     signals:
    50         void pressed();
    53         void pressed();
    51         void released();
    54         void released();
    52 
    55 
    54         bool mVisible;
    57         bool mVisible;
    55         bool mEnabled;
    58         bool mEnabled;
    56         bool mSelected;
    59         bool mSelected;
    57 
    60 
    58         QGraphicsItem *mBackground;
    61         QGraphicsItem *mBackground;
       
    62         HbFrameDrawer *mFrameDrawer;
    59 };
    63 };
    60 
    64 
    61 #endif /*HBPUSHBUTTON_H*/
    65 #endif /*HBPUSHBUTTON_H*/
    62 
    66