screensaver/screensaverplugins/snsrbigclockscreensaverplugin/snsrswipewidget/inc/snsrswipewidget.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: Swipe widget. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SNSRSWIPEWIDGET_H |
|
19 #define SNSRSWIPEWIDGET_H |
|
20 |
|
21 #include <QGesture> |
|
22 |
|
23 #include <hbwidget.h> |
|
24 #include <hblabel.h> |
|
25 #include <hbeffect.h> |
|
26 #include "snsrtest_global.h" |
|
27 |
|
28 // TODO: SCREENSAVER_TEST_CLASS |
|
29 SCREENSAVER_TEST_CLASS(T_SnsrSwipeWidgets) |
|
30 |
|
31 class HbAction; |
|
32 class HbPushButton; |
|
33 class HbLabel; |
|
34 |
|
35 class SnsrSwipeWidget : public HbWidget |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 |
|
41 explicit SnsrSwipeWidget(QGraphicsItem *parent = 0); |
|
42 virtual ~SnsrSwipeWidget(); |
|
43 |
|
44 public slots: |
|
45 |
|
46 void start(); |
|
47 |
|
48 protected: |
|
49 |
|
50 void reset(); |
|
51 |
|
52 private slots: |
|
53 |
|
54 void animationComplete(const HbEffect::EffectStatus &status); |
|
55 void createPrimitives(); |
|
56 |
|
57 protected: // from base classes |
|
58 |
|
59 virtual void gestureEvent(QGestureEvent *event); |
|
60 |
|
61 signals: |
|
62 void swipeDownDetected(); |
|
63 |
|
64 private: // data |
|
65 |
|
66 HbLabel *mSlideLabel; |
|
67 HbLabel *mSlideIcon; |
|
68 |
|
69 Q_DISABLE_COPY(SnsrSwipeWidget) |
|
70 |
|
71 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrSwipeWidgets) |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // SNSRSWIPEWIDGET_H |
|
76 |
|
77 // EOF |
|