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 TSTASKPOPUPHANDLER_H |
|
18 #define TSTASKPOPUPHANDLER_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QPointF> |
|
22 #include <QAbstractItemModel> |
|
23 |
|
24 class HbAbstractViewItem; |
|
25 class T_TsTaskPopupHandler; |
|
26 |
|
27 class TsTaskPopupHandler : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 explicit TsTaskPopupHandler(QObject *parent = 0); |
|
33 |
|
34 signals: |
|
35 void closeTask(const QModelIndex &index); |
|
36 void closeAllTasks(); |
|
37 |
|
38 public slots: |
|
39 void showTaskPopup(HbAbstractViewItem *item, const QPointF &coords); |
|
40 |
|
41 private: |
|
42 bool isClosable(const QModelIndex &index) const; |
|
43 bool containsClosableItems(const QAbstractItemModel &model) const; |
|
44 |
|
45 friend class T_TsTaskPopupHandler; |
|
46 |
|
47 }; |
|
48 |
|
49 #endif // TSTASKPOPUPHANDLER_H |