/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#ifndef HBACTIVITYPLUGIN_H
#define HBACTIVITYPLUGIN_H
#include <QObject>
#include "hbactivityplugininterface_p.h"
class HbActivityPlugin : public QObject, public HbActivityPluginInterface
{
Q_OBJECT
Q_INTERFACES(HbActivityPluginInterface)
public:
HbActivityPlugin(QObject *parent = 0);
~HbActivityPlugin();
public:
virtual bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
virtual bool removeActivity(const QString &activityId);
virtual bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters);
virtual QList<QVariantHash> activities();
virtual QVariant activityData(const QString &activityId);
virtual bool waitActivity();
virtual QVariantHash parseCommandLine(const QStringList &commandLineParams);
signals:
void activityRequested(const QString &activityId);
private:
QObject *mActivityClient;
};
#endif //HBACTIVITYPLUGIN_H