#include <kdevplugincontroller.h>
Inherits TQObject.
|
static TDETrader::OfferList | query (const TQString &serviceType, const TQString &constraint) |
|
static TDETrader::OfferList | queryPlugins (const TQString &constraint) |
|
The base class for TDevelop plugin controller.
Plugin controller is responsible for quering, loading and unloading available plugins.
Definition at line 39 of file kdevplugincontroller.h.
◆ KDevPluginController()
KDevPluginController::KDevPluginController |
( |
| ) |
|
|
protected |
◆ engine()
virtual ProfileEngine& KDevPluginController::engine |
( |
| ) |
|
|
pure virtual |
- Returns
- The current Profile Engine
◆ extension()
virtual KDevPlugin* KDevPluginController::extension |
( |
const TQString & |
serviceType, |
|
|
const TQString & |
constraint = "" |
|
) |
| |
|
pure virtual |
Queries for the plugin which supports given service type.
All already loaded plugins will be queried and the first one to support the service type will be returned. Any plugin can be an extension, only "X-TDE-ServiceTypes=..." entry is required in .desktop file for that plugin.
- Parameters
-
serviceType | The service type of an extension (like "TDevelop/SourceFormatter") |
constraint | The constraint which is applied when quering for the service. This constraint is a usual TDETrader constraint statement (like "[X-TDevelop-Foo]=='MyFoo'"). |
- Returns
- A KDevelop extension plugin for given service type or 0 if no plugin supports it
◆ loadedPlugins()
virtual const TQValueList<KDevPlugin*> KDevPluginController::loadedPlugins |
( |
| ) |
|
|
pure virtual |
- Returns
- The list of currently loaded plugins.
◆ loadPlugin()
virtual KDevPlugin* KDevPluginController::loadPlugin |
( |
const TQString & |
serviceType, |
|
|
const TQString & |
constraint |
|
) |
| |
|
pure virtual |
Returns a uniquely specified plugin.
If it isn't already loaded, it will be. Use with caution! See extension for parameter details.
◆ profileChanged
void KDevPluginController::profileChanged |
( |
| ) |
|
|
signal |
Emitted when a plugin profile was changed (reloaded, other profile opened, etc.).
Should work only on shells with plugin profiles support.
◆ profileResources()
KURL::List KDevPluginController::profileResources |
( |
const TQString & |
nameFilter | ) |
|
|
virtual |
Reimplement this function only if your shell supports plugin profiles.
- Returns
- The list of URLs to the profile resources (files) with given
extension
.
- Parameters
-
nameFilter | Name filter for files. |
- See also
- TQDir::setNameFilter documentation for name filters syntax.
Definition at line 39 of file kdevplugincontroller.cpp.
◆ profileResourcesRecursive()
KURL::List KDevPluginController::profileResourcesRecursive |
( |
const TQString & |
nameFilter | ) |
|
|
virtual |
Reimplement this function only if your shell supports plugin profiles.
- Returns
- The list of URLs to the resources (files) with given
extension
. This list is obtained by a recursive search that process given profile and all it's subprofiles.
- Parameters
-
nameFilter | Name filter for files. |
- See also
- TQDir::setNameFilter documentation for name filters syntax.
Definition at line 44 of file kdevplugincontroller.cpp.
◆ query()
TDETrader::OfferList KDevPluginController::query |
( |
const TQString & |
serviceType, |
|
|
const TQString & |
constraint |
|
) |
| |
|
static |
Queries KDevelop services.
Version is checked automatically by adding proper X-TDevelop-Version=N statement into the query.
- Parameters
-
serviceType | The service type to query, for example "TDevelop/Plugin" or "TDevelop/SourceFormatter." |
constraint | A constraint for the service. Do not include plugin version number - it is done automatically. |
- Returns
- The list of plugin offers.
Definition at line 27 of file kdevplugincontroller.cpp.
◆ queryPlugins()
TDETrader::OfferList KDevPluginController::queryPlugins |
( |
const TQString & |
constraint | ) |
|
|
static |
Queries TDevelop plugins.
Works like KDevPluginController::query with serviceType set to "TDevelop/Plugin".
- Parameters
-
constraint | A constraint for the service. Do not include plugin version number - it is done automatically. |
- Returns
- The list of plugin offers.
Definition at line 34 of file kdevplugincontroller.cpp.
◆ unloadPlugin()
virtual void KDevPluginController::unloadPlugin |
( |
const TQString & |
plugin | ) |
|
|
pure virtual |
Unloads the plugin specified by plugin
.
- Parameters
-
plugin | The plugin desktopEntryName of the plugin to unload |
◆ unloadPlugins()
virtual void KDevPluginController::unloadPlugins |
( |
TQStringList const & |
list | ) |
|
|
pure virtual |
Unloads plugins specified by list
.
- Parameters
-
list | The list of plugin names to unload. plugin name corresponds to the "Name" property in plugin .desktop file. |
The documentation for this class was generated from the following files: