Plasma5Support::PluginLoader

Search for usage in LXR

Plasma5Support::PluginLoader Class Reference

Static Public Member Functions

static QList< KPluginMetaDatalistDataEngineMetaData (const QString &parentApp=QString())
 
static ServiceloadService (const QString &name, QObject *parent=nullptr)
 

Detailed Description

This is an abstract base class which defines an interface to which Plasma's DataEngine and Service Loading logic can communicate with a parent application.

This is deprecated api in KF6, use C++ based QML imports instead

Definition at line 28 of file pluginloader.h.

Member Function Documentation

◆ listDataEngineMetaData()

QList< KPluginMetaData > Plasma5Support::PluginLoader::listDataEngineMetaData ( const QString & parentApp = QString())
static

Returns a list of all known dataengines.

Parameters
parentAppthe application to filter dataengines on. Uses the X-KDE-ParentApp entry (if any) in the plugin info. The default value of QString() will result in a list of all dataengines
Returns
list of dataengines

Definition at line 53 of file pluginloader.cpp.

◆ loadService()

Service * Plasma5Support::PluginLoader::loadService ( const QString & name,
QObject * parent = nullptr )
static

Load a Service plugin.

Parameters
namethe plugin name of the service to load
argsa list of arguments to supply to the service plugin when loading it
parentthe parent object, if any, for the service
Returns
a Service object, unlike Plasma5Support::Service::loadService, this can return null.

Definition at line 25 of file pluginloader.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.