equal
deleted
inserted
replaced
26 #ifdef Q_OS_SYMBIAN |
26 #ifdef Q_OS_SYMBIAN |
27 #include <apgcli.h> |
27 #include <apgcli.h> |
28 #endif |
28 #endif |
29 |
29 |
30 class TsTaskMonitor; |
30 class TsTaskMonitor; |
31 class ActivityManager; |
|
32 class CaNotifier; |
31 class CaNotifier; |
33 class TsModelItem; |
32 class TsModelItem; |
34 |
33 |
35 class TsModel : public QAbstractListModel |
34 class TsModel : public QAbstractListModel |
36 { |
35 { |
37 Q_OBJECT |
36 Q_OBJECT |
38 |
37 |
39 public: |
38 public: |
40 explicit TsModel(TsTaskMonitor &applicationSrv, |
39 TsModel(TsTaskMonitor &applicationSrv, |
41 QObject &activitySrv, |
40 QObject &activitySrv, |
42 QObject *parent = 0); |
41 QObject *parent = 0); |
43 ~TsModel(); |
42 ~TsModel(); |
44 |
43 |
45 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
44 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
46 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |
45 QVariant data(const QModelIndex &index, |
|
46 int role = Qt::DisplayRole) const; |
47 int maxRowCount()const; |
47 int maxRowCount()const; |
48 |
48 |
49 public slots: |
49 public slots: |
50 void openApplication(const QModelIndex &index); |
50 void openApplication(const QModelIndex &index); |
51 void closeApplication(const QModelIndex &index); |
51 void closeApplication(const QModelIndex &index); |
74 #ifdef Q_OS_SYMBIAN |
74 #ifdef Q_OS_SYMBIAN |
75 RApaLsSession iAppArcSession; |
75 RApaLsSession iAppArcSession; |
76 #endif |
76 #endif |
77 |
77 |
78 /* |
78 /* |
79 * Icon size in model |
|
80 */ |
|
81 QSize mSize; |
|
82 |
|
83 /* |
|
84 * Maximum number of items (only for running apps + activities) |
79 * Maximum number of items (only for running apps + activities) |
85 */ |
80 */ |
86 int mMaxItems; |
81 int mMaxItems; |
|
82 |
|
83 Q_DISABLE_COPY(TsModel) |
87 }; |
84 }; |
88 |
85 |
89 #endif // TSMODEL_H |
86 #endif // TSMODEL_H |