diff --git a/src/plasma/dataengine.cpp b/src/plasma/dataengine.cpp index f5ef4d19b..be6fb54e8 100644 --- a/src/plasma/dataengine.cpp +++ b/src/plasma/dataengine.cpp @@ -54,6 +54,12 @@ DataEngine::DataEngine(QObject *parent, KService::Ptr service) { } +DataEngine::DataEngine(QObject *parent, const KPluginInfo &plugin) + : QObject(parent), + d(new DataEnginePrivate(this, plugin)) +{ +} + DataEngine::DataEngine(QObject *parent, const QVariantList &args) : QObject(parent), d(new DataEnginePrivate(this, KPluginInfo(KService::serviceByStorageId(args.count() > 0 ? args[0].toString() : QString())))) diff --git a/src/plasma/dataengine.h b/src/plasma/dataengine.h index 99f4564fa..b332f2c40 100644 --- a/src/plasma/dataengine.h +++ b/src/plasma/dataengine.h @@ -72,6 +72,16 @@ class PLASMA_EXPORT DataEngine : public QObject * @param service pointer to the service that describes the engine **/ explicit DataEngine(QObject *parent = 0, KService::Ptr service = KService::Ptr(0)); + + /** + * Constructor. + * + * @param parent The parent object. + * @param plugin plugin info that describes the engine + * TODO: default parameters when the other ctors are removed + **/ + explicit DataEngine(QObject *parent, const KPluginInfo &plugin); + DataEngine(QObject *parent, const QVariantList &args); ~DataEngine();