add ctor with a KPluginInfo
This commit is contained in:
parent
5af5da2687
commit
037a86530d
@ -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()))))
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user