89
|
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 |
*
|
92
|
14 |
* Description:
|
89
|
15 |
*
|
|
16 |
*/
|
|
17 |
#ifndef ACTIVITYCLIENT_H
|
|
18 |
#define ACTIVITYCLIENT_H
|
|
19 |
|
|
20 |
#include <QObject>
|
|
21 |
#include <QVariant>
|
|
22 |
#include <QString>
|
|
23 |
|
|
24 |
class ActivityClientPrivate;
|
|
25 |
|
|
26 |
class ActivityClient : public QObject
|
|
27 |
{
|
|
28 |
|
92
|
29 |
Q_OBJECT
|
89
|
30 |
|
|
31 |
public:
|
|
32 |
ActivityClient(QObject *parent = 0);
|
|
33 |
~ActivityClient();
|
|
34 |
|
|
35 |
public slots:
|
|
36 |
bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
|
|
37 |
bool removeActivity(const QString &activityId);
|
|
38 |
bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
|
|
39 |
QList<QVariantHash> activities() const;
|
|
40 |
QVariant activityData(const QString &activityId) const;
|
|
41 |
bool waitActivity();
|
92
|
42 |
QVariantHash parseCommandLine(const QStringList &commandLineParams) const;
|
89
|
43 |
|
|
44 |
signals:
|
|
45 |
void activityRequested(const QString &activityId);
|
92
|
46 |
|
89
|
47 |
private:
|
|
48 |
ActivityClientPrivate *d_ptr;
|
|
49 |
friend class ActivityClientPrivate;
|
92
|
50 |
|
89
|
51 |
};
|
|
52 |
|
|
53 |
#endif // ACTIVITYCLIENT_H
|