equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSDIALERWIDGET_H |
|
19 #define HSDIALERWIDGET_H |
|
20 |
|
21 #include <HbWidget> |
|
22 |
|
23 #ifndef HOMESCREEN_TEST |
|
24 #define HOMESCREEN_TEST_CLASS(aClassName) |
|
25 #define HOMESCREEN_TEST_FRIEND_CLASS(aClassName) |
|
26 #else |
|
27 #define HOMESCREEN_TEST_CLASS(aClassName) class aClassName; |
|
28 #define HOMESCREEN_TEST_FRIEND_CLASS(aClassName) friend class aClassName; |
|
29 #endif //HOMESCREEN_TEST |
|
30 |
|
31 HOMESCREEN_TEST_CLASS(TestDialerWidgetPlugin) |
|
32 |
|
33 class XQSettingsManager; |
|
34 |
|
35 class HsDialerWidget : public HbWidget |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 HsDialerWidget(QGraphicsItem* parent = 0, Qt::WindowFlags flags = 0); |
|
41 ~HsDialerWidget(); |
|
42 |
|
43 public slots: |
|
44 void startDialer(); |
|
45 |
|
46 void onShow(); |
|
47 void onHide(); |
|
48 |
|
49 protected: |
|
50 void mousePressEvent(QGraphicsSceneMouseEvent *event) { Q_UNUSED(event) } |
|
51 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event); |
|
52 |
|
53 private: |
|
54 XQSettingsManager *mSetManager; |
|
55 HOMESCREEN_TEST_FRIEND_CLASS(TestDialerWidgetPlugin) |
|
56 }; |
|
57 |
|
58 #endif |