Soprano
2.7.6
|
The PluginManager loads and maintains all Soprano plugins. More...
#include <Soprano/PluginManager>
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.
Definition at line 55 of file pluginmanager.h.
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.
path | The folders that PluginManager should search for plugin description files. |
useDefaults | If true PluginManager will also search the default plugin paths |
bool Soprano::PluginManager::loadCustomPlugin | ( | const QString & | path | ) |
Load a custom plugin from a library at the specified path.
path | The path to the library file that contains the plugin. Be aware that plugins loaded via this method do not need a desktop file as described |
PluginManager uses the name the plugin provides (Plugin::pluginName) to manage the plugin.
true
if the plugin could be loaded successfully, false
if no suported plugin could be found at path.const Backend* Soprano::PluginManager::loadCustomBackend | ( | const QString & | path | ) |
Load a custom Backend plugin from a library at the specified path.
path | The path to the library file that contains the plugin. |
PluginManager uses the name the plugin provides (Plugin::pluginName) to manage the plugin.
const Parser* Soprano::PluginManager::loadCustomParser | ( | const QString & | path | ) |
Load a custom Parser plugin from a library at the specified path.
path | The path to the library file that contains the plugin. |
PluginManager uses the name the plugin provides (Plugin::pluginName) to manage the plugin.
const Serializer* Soprano::PluginManager::loadCustomSerializer | ( | const QString & | path | ) |
Load a custom Serializer plugin from a library at the specified path.
path | The path to the library file that contains the plugin. |
PluginManager uses the name the plugin provides (Plugin::pluginName) to manage the plugin.
const Backend* Soprano::PluginManager::discoverBackendByName | ( | const QString & | name | ) |
Find a backend plugin by its name.
const Backend* Soprano::PluginManager::discoverBackendByFeatures | ( | BackendFeatures | features, |
const QStringList & | userFeatures = QStringList() |
||
) |
Find a backend plugin by its features.
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. |
QList<const Backend*> Soprano::PluginManager::allBackends | ( | ) |
Find a backend plugin by its name.
const Parser* Soprano::PluginManager::discoverParserByName | ( | const QString & | name | ) |
Find a parser plugin by its name.
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.
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. |
QList<const Parser*> Soprano::PluginManager::allParsers | ( | ) |
Find a parser plugin by its name.
const Serializer* Soprano::PluginManager::discoverSerializerByName | ( | const QString & | name | ) |
Find a serializer plugin by its name.
const Serializer* Soprano::PluginManager::discoverSerializerForSerialization | ( | RdfSerialization | serialization, |
const QString & | userSerialization = QString() |
||
) |
Find a Serializer instance that is able to encode RDF data using serialization.
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. |
QList<const Serializer*> Soprano::PluginManager::allSerializers | ( | ) |
Find a serializer plugin by its name.
static PluginManager* Soprano::PluginManager::instance | ( | ) | [static] |
query_api_disabled Get the singleton instance of the PluginManager
SOPRANO_EXPORT const Backend * discoverBackendByName | ( | const QString & | name | ) | [related] |
Find a backend plugin by its name.
SOPRANO_EXPORT const Backend * discoverBackendByFeatures | ( | BackendFeatures | features, |
const QStringList & | userFeatures = QStringList() |
||
) | [related] |
Find a backend plugin by its features.
features | The features that are requested. |
userFeatures | If features contain Soprano::BackendFeatureUser this paramter states the additionally requested user features. |
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.