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 ACTIVITYTSMODEL_H |
|
19 #define ACTIVITYTSMODEL_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariantHash> |
|
23 |
|
24 #include "activitytsentry.h" |
|
25 |
|
26 class ActivityTsModel : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 ActivityTsModel(QObject *parent = 0); |
|
32 virtual ~ActivityTsModel(); |
|
33 |
|
34 public slots: |
|
35 QList<QVariantHash> taskList() const; |
|
36 QList<QVariantHash> taskList(int limit) const; |
|
37 |
|
38 bool openTask(const QVariant &id); |
|
39 bool closeTask(const QVariant &id); |
|
40 |
|
41 signals: |
|
42 void dataChanged(); |
|
43 |
|
44 private slots: |
|
45 void getActivities(); |
|
46 |
|
47 public slots: |
|
48 void convertScreenshotToThumbnail(const QPixmap &thumbnail, void *userData); |
|
49 void thumbnailCreated(const QPixmap &thumbnail, const void *userData); |
|
50 |
|
51 signals: |
|
52 void createThumbnail(const QPixmap &source, int angle, const void *userData); |
|
53 |
|
54 private: |
|
55 QObject *mAfManager; |
|
56 int mMaxItems; |
|
57 |
|
58 QList<ActivityTsEntry*> mData; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif // ACTIVITYTSMODEL_H |