# HG changeset patch # User hgs # Date 1274723446 -10800 # Node ID c739008478ccc3a5f4f2a3debd6e6cba9fd95939 # Parent dbb8300717f767a51f6bef91c64b884b92ce211f 201019_02 diff -r dbb8300717f7 -r c739008478cc activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.cpp --- a/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.cpp Fri May 14 17:24:44 2010 +0300 +++ b/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.cpp Mon May 24 20:50:46 2010 +0300 @@ -15,14 +15,13 @@ * */ -#include "hbactivityplugininterface.h" #include "hbactivityplugin.h" #include QTM_USE_NAMESPACE -HbActivityPlugin::HbActivityPlugin(QObject *parent) : HbActivityPluginInterface(parent), mActivityClient(0) +HbActivityPlugin::HbActivityPlugin(QObject *parent) : QObject(parent), mActivityClient(0) { QServiceManager serviceManager; diff -r dbb8300717f7 -r c739008478cc activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.h --- a/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.h Fri May 14 17:24:44 2010 +0300 +++ b/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.h Mon May 24 20:50:46 2010 +0300 @@ -18,9 +18,10 @@ #ifndef HBACTIVITYPLUGIN_H #define HBACTIVITYPLUGIN_H -#include "hbactivityplugininterface.h" +#include +#include "hbactivityplugininterface_p.h" -class HbActivityPlugin : public HbActivityPluginInterface +class HbActivityPlugin : public QObject, public HbActivityPluginInterface { Q_OBJECT Q_INTERFACES(HbActivityPluginInterface) @@ -38,6 +39,9 @@ virtual bool waitActivity(); virtual QVariantHash parseCommandLine(const QStringList &commandLineParams); +signals: + void activityRequested(const QString &activityId); + private: QObject *mActivityClient; diff -r dbb8300717f7 -r c739008478cc activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.pro --- a/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.pro Fri May 14 17:24:44 2010 +0300 +++ b/activityfw/orbitintegration/hbactivityplugin/hbactivityplugin.pro Mon May 24 20:50:46 2010 +0300 @@ -22,7 +22,7 @@ CONFIG += mobility MOBILITY = serviceframework -HEADERS += hbactivityplugininterface.h \ +HEADERS += hbactivityplugininterface_p.h \ hbactivityplugin.h \ SOURCES += hbactivityplugin.cpp \ diff -r dbb8300717f7 -r c739008478cc activityfw/orbitintegration/hbactivityplugin/hbactivityplugininterface.h --- a/activityfw/orbitintegration/hbactivityplugin/hbactivityplugininterface.h Fri May 14 17:24:44 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,51 +0,0 @@ -/* -* 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 HBACTIVITYPLUGININTERFACE_H -#define HBACTIVITYPLUGININTERFACE_H - -#include -#include -#include -#include -#include -#include - -class HbActivityPluginInterface : public QObject -{ - Q_OBJECT - -public: - HbActivityPluginInterface(QObject *parent = 0) : QObject(parent) {} - -public: - virtual bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) = 0; - virtual bool removeActivity(const QString &activityId) = 0; - virtual bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) = 0; - virtual QList activities() = 0; - virtual QVariant activityData(const QString &activityId) = 0; - virtual bool waitActivity() = 0; - virtual QVariantHash parseCommandLine(const QStringList &commandLineParams) = 0; - -signals: - void activityRequested(const QString &activityId); - -}; - -Q_DECLARE_INTERFACE(HbActivityPluginInterface, "HbActivityPluginInterface/1.0") - -#endif // HBACTIVITYPLUGININTERFACE_H diff -r dbb8300717f7 -r c739008478cc activityfw/orbitintegration/hbactivityplugin/hbactivityplugininterface_p.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/activityfw/orbitintegration/hbactivityplugin/hbactivityplugininterface_p.h Mon May 24 20:50:46 2010 +0300 @@ -0,0 +1,48 @@ +/* +* 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 HBACTIVITYPLUGININTERFACE_P_H +#define HBACTIVITYPLUGININTERFACE_P_H + +#include +#include +#include +#include +#include + +class HbActivityPluginInterface +{ +public: + virtual ~HbActivityPluginInterface() {} + +public: + virtual bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) = 0; + virtual bool removeActivity(const QString &activityId) = 0; + virtual bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash ¶meters) = 0; + virtual QList activities() = 0; + virtual QVariant activityData(const QString &activityId) = 0; + virtual bool waitActivity() = 0; + virtual QVariantHash parseCommandLine(const QStringList &commandLineParams) = 0; + +signals: + // signal must be re-declared in the plugin implementation + void activityRequested(const QString &activityId); +}; + +Q_DECLARE_INTERFACE(HbActivityPluginInterface, "HbActivityPluginInterface/1.0") + +#endif // HBACTIVITYPLUGININTERFACE_P_H