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 #ifndef LUNCWIDGET_H_ |
|
18 #define LUNCWIDGET_H_ |
|
19 |
|
20 #include <hbwidget.h> |
|
21 #include <QGraphicsLinearLayout> |
|
22 #include <QGraphicsGridLayout> |
|
23 #include <QTimer> |
|
24 #include <HbPushButton> |
|
25 #include <hblabel.h> |
|
26 |
|
27 class lunchwidget: public HbWidget |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 lunchwidget(QGraphicsItem *parent = 0); |
|
32 ~lunchwidget(); |
|
33 |
|
34 private: |
|
35 |
|
36 QGraphicsGridLayout *mGridLayout; |
|
37 HbPushButton *mLunchButton; |
|
38 HbLabel* mResultLabel; |
|
39 QObject *mActivityManager; |
|
40 |
|
41 private slots: |
|
42 void lunchApp(); |
|
43 |
|
44 void setTitleCompleted(const QVariant& data); |
|
45 void serviceRequestError(int err,const QString& msg); |
|
46 void timeout(); |
|
47 |
|
48 private: |
|
49 QTimer* mTimer; |
|
50 QString mTitle; |
|
51 }; |
|
52 |
|
53 #endif /* LUNCWIDGET_H_*/ |