videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackbuttonbar/stub/inc/hbpushbutton.h
equal
deleted
inserted
replaced
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 |
|
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 void pressing(); |
|
49 |
|
50 signals: |
|
51 void pressed(); |
|
52 void released(); |
|
53 void longPress( QPointF ); |
|
54 |
|
55 public: |
|
56 bool mVisible; |
|
57 bool mEnabled; |
|
58 bool mSelected; |
|
59 |
|
60 QGraphicsItem *mBackground; |
|
61 }; |
|
62 |
|
63 #endif /*HBPUSHBUTTON_H*/ |
|
64 |
|