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 |
|
|
18 |
#ifndef HBACTIVITYPLUGIN_H
|
|
19 |
#define HBACTIVITYPLUGIN_H
|
|
20 |
|
95
|
21 |
#include <QObject>
|
|
22 |
#include "hbactivityplugininterface_p.h"
|
89
|
23 |
|
95
|
24 |
class HbActivityPlugin : public QObject, public HbActivityPluginInterface
|
89
|
25 |
{
|
|
26 |
Q_OBJECT
|
|
27 |
Q_INTERFACES(HbActivityPluginInterface)
|
92
|
28 |
|
89
|
29 |
public:
|
|
30 |
HbActivityPlugin(QObject *parent = 0);
|
|
31 |
~HbActivityPlugin();
|
92
|
32 |
|
89
|
33 |
public:
|
|
34 |
virtual bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
|
|
35 |
virtual bool removeActivity(const QString &activityId);
|
|
36 |
virtual bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
|
|
37 |
virtual QList<QVariantHash> activities();
|
|
38 |
virtual QVariant activityData(const QString &activityId);
|
|
39 |
virtual bool waitActivity();
|
92
|
40 |
virtual QVariantHash parseCommandLine(const QStringList &commandLineParams);
|
89
|
41 |
|
95
|
42 |
signals:
|
|
43 |
void activityRequested(const QString &activityId);
|
|
44 |
|
89
|
45 |
private:
|
|
46 |
QObject *mActivityClient;
|
92
|
47 |
|
89
|
48 |
};
|
|
49 |
|
|
50 |
#endif //HBACTIVITYPLUGIN_H
|