Soprano
2.7.6
|
The PluginManager loads and maintains all Soprano plugins. More...
#include <Soprano/PluginManager>
Public Member Functions | |
~PluginManager () | |
void | setPluginSearchPath (const QStringList &path, bool useDefaults=true) |
bool | loadCustomPlugin (const QString &path) |
const Backend * | loadCustomBackend (const QString &path) |
const Parser * | loadCustomParser (const QString &path) |
const Serializer * | loadCustomSerializer (const QString &path) |
const Backend * | discoverBackendByName (const QString &name) |
const Backend * | discoverBackendByFeatures (BackendFeatures features, const QStringList &userFeatures=QStringList()) |
QList< const Backend * > | allBackends () |
const Parser * | discoverParserByName (const QString &name) |
const Parser * | discoverParserForSerialization (RdfSerialization serialization, const QString &userSerialization=QString()) |
QList< const Parser * > | allParsers () |
const Serializer * | discoverSerializerByName (const QString &name) |
const Serializer * | discoverSerializerForSerialization (RdfSerialization serialization, const QString &userSerialization=QString()) |
QList< const Serializer * > | allSerializers () |
![]() | |
QObject (QObject *parent=0) | |
blockSignals (bool block) | |
childEvent (QChildEvent *event) | |
children () | |
connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoCompatConnection) | |
connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type=Qt::AutoCompatConnection) | |
connectNotify (const char *signal) | |
customEvent (QEvent *event) | |
deleteLater () | |
destroyed (QObject *obj=0) | |
disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) | |
disconnect (const char *signal=0, const QObject *receiver=0, const char *method=0) | |
disconnect (const QObject *receiver, const char *method=0) | |
disconnectNotify (const char *signal) | |
dumpObjectInfo () | |
dumpObjectTree () | |
dynamicPropertyNames () | |
event (QEvent *e) | |
eventFilter (QObject *watched, QEvent *event) | |
findChild (const QString &name=QString() | |
findChildren (const QString &name=QString() | |
findChildren (const QRegExp ®Exp) | |
inherits (const char *className) | |
installEventFilter (QObject *filterObj) | |
isWidgetType () | |
killTimer (int id) | |
metaObject () | |
moveToThread (QThread *targetThread) | |
parent () | |
property (const char *name) | |
receivers (const char *signal) | |
removeEventFilter (QObject *obj) | |
sender () | |
setParent (QObject *parent) | |
setProperty (const char *name, const QVariant &value) | |
signalsBlocked () | |
startTimer (int interval) | |
thread () | |
timerEvent (QTimerEvent *event) | |
tr (const char *sourceText, const char *comment=0, int n=-1) | |
trUtf8 (const char *sourceText, const char *comment=0, int n=-1) | |
staticMetaObject | |
QObject (QObject *parent, const char *name) | |
checkConnectArgs (const char *signal, const QObject *object, const char *method) | |
child (const char *objName, const char *inheritsClass=0, bool recursiveSearch=true) | |
className () | |
insertChild (QObject *object) | |
isA (const char *className) | |
name () | |
name (const char *defaultName) | |
normalizeSignalSlot (const char *signalSlot) | |
removeChild (QObject *object) | |
setName (const char *name) |
Static Public Member Functions | |
static PluginManager * | instance () |
Related Functions | |
(Note that these are not member functions.) | |
SOPRANO_EXPORT const Backend * | discoverBackendByName (const QString &name) |
SOPRANO_EXPORT const Backend * | discoverBackendByFeatures (BackendFeatures features, const QStringList &userFeatures=QStringList()) |
SOPRANO_EXPORT void | setUsedBackend (const Backend *) |
SOPRANO_EXPORT const Backend * | usedBackend () |
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.
Soprano::PluginManager::~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.
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.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.
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.
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. |
Find a backend plugin by its 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. |
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 |
query_api_disabled Get the singleton instance of the PluginManager
|
related |
Find a backend plugin by its name.
|
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. |
|
related |
Set the Backend to globally use in createModel.
By default and if available backend "redland" is used.
|
related |
Retrieve the Backend to globally use in createModel.
Can be set via setUsedBackend.