akregator
#include <pluginmanager.h>
Static Public Member Functions | |
static Akregator::Plugin * | createFromQuery (const QString &constraint=QString()) |
static Akregator::Plugin * | createFromService (const KService::Ptr service, QObject *parent=0) |
static void | dump (const KService::Ptr service) |
static KService::Ptr | getService (const Akregator::Plugin *plugin) |
static KService::List | query (const QString &constraint=QString()) |
static void | showAbout (const QString &constraint) |
static void | unload (Akregator::Plugin *plugin) |
Detailed Description
Definition at line 29 of file pluginmanager.h.
Member Function Documentation
Load and instantiate plugin from query.
- Parameters
-
constraint A constraint to limit the choices returned, QString() to get all services of the given servicetype
- Returns
- Pointer to Plugin, or NULL if error
Definition at line 59 of file pluginmanager.cpp.
|
static |
Load and instantiate plugin from service.
- Parameters
-
service Pointer to KService
- Returns
- Pointer to Plugin, or NULL if error
Definition at line 81 of file pluginmanager.cpp.
|
static |
Dump properties from a service to stdout for debugging.
- Parameters
-
service Pointer to KService
Definition at line 178 of file pluginmanager.cpp.
|
static |
Look up service for loaded plugin from store.
- Parameters
-
pointer Pointer to plugin
- Returns
- KService, or 0 if not found
Definition at line 131 of file pluginmanager.cpp.
It will return a list of services that match your specifications.
The only required parameter is the service type. This is something like 'text/plain' or 'text/html'. The constraint parameter is used to limit the possible choices returned based on the constraints you give it.
The constraint
language is rather full. The most common keywords are AND, OR, NOT, IN, and EXIST, all used in an almost spoken-word form. An example is:
The keys used in the query (Type, ServiceType, Exec) are all fields found in the .desktop files.
- Parameters
-
constraint A constraint to limit the choices returned, QString() to get all services of the given servicetype
- Returns
- A list of services that satisfy the query
Definition at line 41 of file pluginmanager.cpp.
|
static |
Show modal info dialog about plugin.
- Parameters
-
constraint A constraint to limit the choices returned
Definition at line 151 of file pluginmanager.cpp.
|
static |
Remove library and delete plugin.
- Parameters
-
plugin Pointer to plugin
Definition at line 106 of file pluginmanager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.