9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #ifndef ACTIVITYLAUNCHERVIEW_H |
17 #ifndef ACTIVITYLAUNCHERVIEW_H |
18 #define ACTIVITYLAUNCHERVIEW_H |
18 #define ACTIVITYLAUNCHERVIEW_H |
19 |
19 |
20 #include <hbview.h> |
20 #include <hbview.h> |
21 #include <QVariant> |
21 #include <QVariant> |
22 |
22 |
23 class HbLabel; |
23 class HbLabel; |
24 class QStandardItemModel; |
24 class QStandardItemModel; |
25 |
25 |
26 class ActivityLauncherView : public HbView |
26 class ActivityLauncherView : public HbView |
27 { |
27 { |
28 Q_OBJECT |
28 Q_OBJECT |
29 |
29 |
30 public: |
30 public: |
31 ActivityLauncherView(QGraphicsItem *parent = 0); |
31 ActivityLauncherView(QGraphicsItem *parent = 0); |
32 ~ActivityLauncherView(); |
32 ~ActivityLauncherView(); |
33 |
33 |
34 private slots: |
34 private slots: |
35 void itemPressed(const QModelIndex& index); |
35 void itemPressed(const QModelIndex &index); |
36 |
36 |
37 protected: |
37 protected: |
38 bool eventFilter(QObject* obj, QEvent* event); |
38 bool eventFilter(QObject *obj, QEvent *event); |
39 |
39 |
40 private: |
40 private: |
41 void getActivitiesList(); |
41 void getActivitiesList(); |
42 |
42 |
43 private: |
43 private: |
44 QStandardItemModel* mModel; |
44 QStandardItemModel *mModel; |
45 QList<QVariantHash> mCurrentActivities; |
45 QList<QVariantHash> mCurrentActivities; |
46 HbLabel* mStatusLabel; |
46 HbLabel *mStatusLabel; |
47 |
47 |
48 QObject* mActivityManager; |
48 QObject *mActivityManager; |
49 }; |
49 }; |
50 |
50 |
51 #endif // ACTIVITYLAUNCHERVIEW_H |
51 #endif // ACTIVITYLAUNCHERVIEW_H |