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 "activityclient.h" |
|
19 #include "activityclient_p.h" |
|
20 |
|
21 ActivityClient::ActivityClient(QObject *parent) : QObject(parent) |
|
22 { |
|
23 d_ptr = new ActivityClientPrivate(this); |
|
24 } |
|
25 |
|
26 ActivityClient::~ActivityClient() |
|
27 { |
|
28 } |
|
29 |
|
30 bool ActivityClient::addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) |
|
31 { |
|
32 return d_ptr->addActivity(activityId, data, parameters); |
|
33 } |
|
34 |
|
35 bool ActivityClient::removeActivity(const QString &activityId) |
|
36 { |
|
37 return d_ptr->removeActivity(activityId); |
|
38 } |
|
39 |
|
40 bool ActivityClient::updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) |
|
41 { |
|
42 return d_ptr->updateActivity(activityId, data, parameters); |
|
43 } |
|
44 |
|
45 QList<QVariantHash> ActivityClient::activities() const |
|
46 { |
|
47 return d_ptr->activities(); |
|
48 } |
|
49 |
|
50 QVariant ActivityClient::activityData(const QString &activityId) const |
|
51 { |
|
52 return d_ptr->activityData(activityId); |
|
53 } |
|
54 |
|
55 QVariantHash ActivityClient::parseCommandLine(const QStringList &commandLineParams) const |
|
56 { |
|
57 return d_ptr->parseCommandLine(commandLineParams); |
|
58 } |
|