soprano
Soprano::PluginManager Class Reference
The PluginManager loads and maintains all Soprano plugins. More...
#include <Soprano/PluginManager>

Public Member Functions | |
| ~PluginManager () | |
| QList< const Backend * > | allBackends () |
| QList< const Parser * > | allParsers () |
| QList< const Serializer * > | allSerializers () |
| const Backend * | discoverBackendByFeatures (BackendFeatures features, const QStringList &userFeatures=QStringList()) |
| const Backend * | discoverBackendByName (const QString &name) |
| const Parser * | discoverParserByName (const QString &name) |
| const Parser * | discoverParserForSerialization (RdfSerialization serialization, const QString &userSerialization=QString()) |
| const Serializer * | discoverSerializerByName (const QString &name) |
| const Serializer * | discoverSerializerForSerialization (RdfSerialization serialization, const QString &userSerialization=QString()) |
| void | setPluginSearchPath (const QStringList &path, bool useDefaults=true) |
Static Public Member Functions | |
| static PluginManager * | instance () |
Related Functions | |
(Note that these are not member functions.) | |
| SOPRANO_EXPORT void | setUsedBackend (const Backend *) |
| SOPRANO_EXPORT const Backend * | usedBackend () |
Detailed Description
The PluginManager loads and maintains all Soprano plugins.
Normally there is no need to use this class as all important methods have global counterparts in the Soprano namespace.
- See also:
- Writing Soprano Plugins
Definition at line 55 of file pluginmanager.h.
Constructor & Destructor Documentation
| Soprano::PluginManager::~PluginManager | ( | ) |
Member Function Documentation
| QList<const Serializer*> Soprano::PluginManager::allSerializers | ( | ) |
| SOPRANO_EXPORT const Backend * discoverBackendByFeatures | ( | BackendFeatures | features, | |
| const QStringList & | userFeatures = QStringList() | |||
| ) |
Find a backend plugin by its features.
- Parameters:
-
features The features that are requested, a combination of Soprano::BackendFeature flags. userFeatures If features contain Backend::BackendFeatureUser this paramter states the additionally requested user features.
- Returns:
- a Backend that supports the features defined in features.
- Parameters:
-
features The features that are requested. userFeatures If features contain Soprano::BackendFeatureUser this paramter states the additionally requested user features.
- Returns:
- a backend that supports the features defined in features.
Find a backend plugin by its name.
- Returns:
- the backend specified by name or null if could not be found.
- the backend specified by name or null if could not be found.
Find a parser plugin by its name.
- Returns:
- the parser specified by name or null if could not be found.
| const Parser* Soprano::PluginManager::discoverParserForSerialization | ( | RdfSerialization | serialization, | |
| const QString & | userSerialization = QString() | |||
| ) |
Find a Parser instance that is able to parse RDF data serialized as serialization.
- Parameters:
-
serialization The requested serialization. userSerialization If serialization is set to Soprano::SerializationUser this parameter specifies the serialization to use. It allows the extension of the Soprano Parser interface with new RDF serializations that are not officially supported by Soprano.
- Returns:
- A Parser plugin that can parse RDF data encoded in the requested serialization or 0 if no such plugin could be found.
| const Serializer* Soprano::PluginManager::discoverSerializerByName | ( | const QString & | name | ) |
Find a serializer plugin by its name.
- Returns:
- the serializer specified by name or null if could not be found.
| const Serializer* Soprano::PluginManager::discoverSerializerForSerialization | ( | RdfSerialization | serialization, | |
| const QString & | userSerialization = QString() | |||
| ) |
Find a Serializer instance that is able to encode RDF data using serialization.
- Parameters:
-
serialization The requested serialization. userSerialization If serialization is set to Soprano::SerializationUser this parameter specifies the serialization to use. It allows the extension of the Soprano Serializer interface with new RDF serializations that are not officially supported by Soprano.
- Returns:
- A Serializer plugin that can serialize RDF data encoded in the requested serialization or 0 if no such plugin could be found.
| static PluginManager* Soprano::PluginManager::instance | ( | ) | [static] |
query_api_disabled
Get the singleton instance of the PluginManager
| void Soprano::PluginManager::setPluginSearchPath | ( | const QStringList & | path, | |
| bool | useDefaults = true | |||
| ) |
Set the plugin search path.
The PluginManager searches a set of folders for installed plugins. Here a plugin consists of a desktop file describing it and the actual plugin library file. For loading custom plugins manually see loadCustomPlugin.
- Parameters:
-
path The folders that PluginManager should search for plugin description files. useDefaults If true PluginManager will also search the default plugin paths
- See also:
- Writing Soprano Plugins
- Since:
- 2.3
Friends And Related Function Documentation
| SOPRANO_EXPORT void setUsedBackend | ( | const Backend * | ) | [related] |
Set the Backend to globally use in createModel.
By default and if available backend "redland" is used.
| SOPRANO_EXPORT const Backend * usedBackend | ( | ) | [related] |
Retrieve the Backend to globally use in createModel.
Can be set via setUsedBackend.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference