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 #include "afmanager.h" |
|
19 #include <QPixmap> |
|
20 |
|
21 const char myName [] = "TestActivityManager"; |
|
22 |
|
23 AfManager::AfManager(QObject *parent) : QObject(parent) |
|
24 { |
|
25 setObjectName(myName); |
|
26 mData = QList<QVariantHash>(); |
|
27 } |
|
28 |
|
29 AfManager::~AfManager() |
|
30 { |
|
31 } |
|
32 |
|
33 QList<QVariantHash> AfManager::activitiesList() |
|
34 { |
|
35 return mData; |
|
36 } |
|
37 |
|
38 void AfManager::setActivitiesList(const QList<QVariantHash>& activities) |
|
39 { |
|
40 mData = activities; |
|
41 } |
|
42 |
|
43 void AfManager::launchActivity(const QString &uri) |
|
44 { |
|
45 Q_UNUSED(uri); |
|
46 } |
|
47 |
|
48 void AfManager::launchActivity(int applicationId, const QString &activityId) |
|
49 { |
|
50 Q_UNUSED(applicationId); |
|
51 Q_UNUSED(activityId); |
|
52 } |
|
53 |
|
54 void AfManager::getThumbnail(QSize resolution, const QString &thumbnailId, void *userData) |
|
55 { |
|
56 Q_UNUSED(thumbnailId); |
|
57 Q_UNUSED(resolution); |
|
58 emit thumbnailReady(QPixmap(), userData); |
|
59 } |
|
60 |
|
61 void AfManager::emitDataChanged() |
|
62 { |
|
63 emit dataChanged(); |
|
64 } |
|
65 |
|
66 void AfManager::clearActivities() |
|
67 { |
|
68 mData.clear(); |
|
69 } |