|
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 qDebug("[JCH] activity client creation started"); |
|
24 d_ptr = new ActivityClientPrivate(this); |
|
25 qDebug("[JCH] activity client creation stopped"); |
|
26 } |
|
27 |
|
28 ActivityClient::~ActivityClient() |
|
29 { |
|
30 } |
|
31 |
|
32 bool ActivityClient::addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) |
|
33 { |
|
34 return d_ptr->addActivity(activityId, data, parameters); |
|
35 } |
|
36 |
|
37 bool ActivityClient::removeActivity(const QString &activityId) |
|
38 { |
|
39 return d_ptr->removeActivity(activityId); |
|
40 } |
|
41 |
|
42 bool ActivityClient::updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) |
|
43 { |
|
44 return d_ptr->updateActivity(activityId, data, parameters); |
|
45 } |
|
46 |
|
47 QList<QVariantHash> ActivityClient::activities() const |
|
48 { |
|
49 return d_ptr->activities(); |
|
50 } |
|
51 |
|
52 QVariant ActivityClient::activityData(const QString &activityId) const |
|
53 { |
|
54 return d_ptr->activityData(activityId); |
|
55 } |
|
56 |
|
57 QVariantHash ActivityClient::parseCommandLine(const QStringList &commandLineParams) const |
|
58 { |
|
59 return d_ptr->parseCommandLine(commandLineParams); |
|
60 } |