<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Soprano: /builddir/build/BUILD/soprano-2.5.2/soprano/pluginmanager.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <script type="text/javascript"> function hasClass(ele,cls) { return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)')); } function addClass(ele,cls) { if (!this.hasClass(ele,cls)) ele.className += " "+cls; } function removeClass(ele,cls) { if (hasClass(ele,cls)) { var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)'); ele.className=ele.className.replace(reg,' '); } } function toggleVisibility(linkObj) { var base = linkObj.getAttribute('id'); var summary = document.getElementById(base + '-summary'); var content = document.getElementById(base + '-content'); var trigger = document.getElementById(base + '-trigger'); if ( hasClass(linkObj,'closed') ) { summary.style.display = 'none'; content.style.display = 'block'; trigger.src = 'open.png'; removeClass(linkObj,'closed'); addClass(linkObj,'opened'); } else if ( hasClass(linkObj,'opened') ) { summary.style.display = 'block'; content.style.display = 'none'; trigger.src = 'closed.png'; removeClass(linkObj,'opened'); addClass(linkObj,'closed'); } return false; } </script> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <div class="header"> <div class="headertitle"> <h1>/builddir/build/BUILD/soprano-2.5.2/soprano/pluginmanager.h</h1> </div> </div> <div class="contents"> <a href="pluginmanager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> <a name="l00002"></a>00002 <span class="comment"> * This file is part of Soprano Project.</span> <a name="l00003"></a>00003 <span class="comment"> *</span> <a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2007-2009 Sebastian Trueg <trueg@kde.org></span> <a name="l00005"></a>00005 <span class="comment"> *</span> <a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span> <a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the GNU Library General Public</span> <a name="l00008"></a>00008 <span class="comment"> * License as published by the Free Software Foundation; either</span> <a name="l00009"></a>00009 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span> <a name="l00010"></a>00010 <span class="comment"> *</span> <a name="l00011"></a>00011 <span class="comment"> * This library is distributed in the hope that it will be useful,</span> <a name="l00012"></a>00012 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00013"></a>00013 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> <a name="l00014"></a>00014 <span class="comment"> * Library General Public License for more details.</span> <a name="l00015"></a>00015 <span class="comment"> *</span> <a name="l00016"></a>00016 <span class="comment"> * You should have received a copy of the GNU Library General Public License</span> <a name="l00017"></a>00017 <span class="comment"> * along with this library; see the file COPYING.LIB. If not, write to</span> <a name="l00018"></a>00018 <span class="comment"> * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span> <a name="l00019"></a>00019 <span class="comment"> * Boston, MA 02110-1301, USA.</span> <a name="l00020"></a>00020 <span class="comment"> */</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="preprocessor">#ifndef _SOPRANO_PLUGIN_MANAGER_H_</span> <a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _SOPRANO_PLUGIN_MANAGER_H_</span> <a name="l00024"></a>00024 <span class="preprocessor"></span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="sopranotypes_8h.html">sopranotypes.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="soprano__export_8h.html">soprano_export.h</a>"</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#include <QtCore/QObject></span> <a name="l00029"></a>00029 <span class="preprocessor">#include <QtCore/QStringList></span> <a name="l00030"></a>00030 <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="keyword">namespace </span>Soprano <a name="l00033"></a>00033 { <a name="l00034"></a>00034 <span class="keyword">class </span>Backend; <a name="l00035"></a>00035 <span class="keyword">class </span>Parser; <a name="l00036"></a>00036 <span class="keyword">class </span>Serializer; <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="keyword">namespace </span>Query { <a name="l00039"></a>00039 <span class="keyword">class </span>Parser; <a name="l00040"></a>00040 <span class="keyword">class </span>Serializer; <a name="l00041"></a>00041 } <a name="l00042"></a>00042 <a name="l00055"></a><a class="code" href="classSoprano_1_1PluginManager.html">00055</a> <span class="keyword">class </span><a class="code" href="soprano__export_8h.html#a4f040b77f4fdd45fda0c3d6ced1e3776">SOPRANO_EXPORT</a> <a class="code" href="classSoprano_1_1PluginManager.html" title="The PluginManager loads and maintains all Soprano plugins.">PluginManager</a> : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a> <a name="l00056"></a>00056 { <a name="l00057"></a>00057 Q_OBJECT <a name="l00058"></a>00058 <a name="l00059"></a>00059 <span class="keyword">public</span>: <a name="l00060"></a>00060 ~<a class="code" href="classSoprano_1_1PluginManager.html" title="The PluginManager loads and maintains all Soprano plugins.">PluginManager</a>(); <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00075"></a>00075 <span class="keywordtype">void</span> setPluginSearchPath( <span class="keyword">const</span> <a class="codeRef" href="qstringlist.html">QStringList</a>& path, <span class="keywordtype">bool</span> useDefaults = <span class="keyword">true</span> ); <a name="l00076"></a>00076 <a name="l00091"></a>00091 <span class="keywordtype">bool</span> loadCustomPlugin( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00092"></a>00092 <a name="l00106"></a>00106 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Backend</a>* loadCustomBackend( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00107"></a>00107 <a name="l00121"></a>00121 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a>* loadCustomParser( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00122"></a>00122 <a name="l00136"></a>00136 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Serializer.html" title="Soprano::Serializer defines the interface for a Soprano RDF serializer plugin.">Serializer</a>* loadCustomSerializer( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00138"></a>00138 <a name="l00140"></a>00140 <a name="l00146"></a>00146 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Backend</a>* <a class="code" href="namespaceSoprano.html#aeed48e726dae9828430ed9b397310481">discoverBackendByName</a>( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& <a class="code" href="namespaceSoprano_1_1Vocabulary_1_1Xesam.html#a29e3031b7b2f544dc0a4fd9ce8af362f">name</a> ); <a name="l00147"></a>00147 <a name="l00156"></a>00156 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Backend.html" title="Soprano::Backend defines the interface for a Soprano backend plugin.">Backend</a>* <a class="code" href="namespaceSoprano.html#adbc93c1a226f1a837fb780d52f1dfe40">discoverBackendByFeatures</a>( BackendFeatures features, <span class="keyword">const</span> <a class="codeRef" href="qstringlist.html">QStringList</a>& userFeatures = <a class="codeRef" href="qstringlist.html">QStringList</a>() ); <a name="l00157"></a>00157 <a name="l00158"></a>00158 <a class="codeRef" href="qlist.html">QList<const Backend*></a> allBackends(); <a name="l00160"></a>00160 <a name="l00162"></a>00162 <a name="l00168"></a>00168 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a>* discoverParserByName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& name ); <a name="l00169"></a>00169 <a name="l00182"></a>00182 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Parser.html" title="Soprano::Parser defines the interface for a Soprano RDF parser plugin.">Parser</a>* discoverParserForSerialization( <a class="code" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> serialization, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& userSerialization = <a class="codeRef" href="qstring.html">QString</a>() ); <a name="l00183"></a>00183 <a name="l00184"></a>00184 <a class="codeRef" href="qlist.html">QList<const Parser*></a> allParsers(); <a name="l00186"></a>00186 <a name="l00188"></a>00188 <a name="l00194"></a>00194 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Serializer.html" title="Soprano::Serializer defines the interface for a Soprano RDF serializer plugin.">Serializer</a>* discoverSerializerByName( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& name ); <a name="l00195"></a>00195 <a name="l00208"></a>00208 <span class="keyword">const</span> <a class="code" href="classSoprano_1_1Serializer.html" title="Soprano::Serializer defines the interface for a Soprano RDF serializer plugin.">Serializer</a>* discoverSerializerForSerialization( <a class="code" href="namespaceSoprano.html#a870b14710c2cc2b825b4b287f01a35e0">RdfSerialization</a> serialization, <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& userSerialization = <a class="codeRef" href="qstring.html">QString</a>() ); <a name="l00209"></a>00209 <a name="l00210"></a>00210 <a class="codeRef" href="qlist.html">QList<const Serializer*></a> allSerializers(); <a name="l00212"></a>00212 <a name="l00222"></a>00222 <span class="comment">// const Query::Parser* discoverQueryParserByName( const QString& name );</span> <a name="l00223"></a>00223 <a name="l00234"></a>00234 <span class="comment">// const Query::Parser* discoverQueryParserForQueryLanguage( Query::QueryLanguage lang, const QString& userQueryLanguage = QString() );</span> <a name="l00235"></a>00235 <a name="l00236"></a>00236 <span class="comment">// QList<const Query::Parser*> allQueryParsers();</span> <a name="l00238"></a>00238 <span class="comment"></span> <a name="l00240"></a>00240 <a name="l00246"></a>00246 <span class="comment">// const Query::Serializer* discoverQuerySerializerByName( const QString& name );</span> <a name="l00247"></a>00247 <a name="l00258"></a>00258 <span class="comment">// const Query::Serializer* discoverQuerySerializerForQueryLanguage( Query::QueryLanguage lang, const QString& userQueryLanguage = QString() );</span> <a name="l00259"></a>00259 <a name="l00260"></a>00260 <span class="comment">// QList<const Query::Serializer*> allQuerySerializers();</span> <a name="l00262"></a>00262 <span class="comment"></span> <a name="l00268"></a>00268 <span class="keyword">static</span> <a class="code" href="classSoprano_1_1PluginManager.html" title="The PluginManager loads and maintains all Soprano plugins.">PluginManager</a>* instance(); <a name="l00269"></a>00269 <a name="l00270"></a>00270 <span class="keyword">private</span>: <a name="l00271"></a>00271 <a class="code" href="classSoprano_1_1PluginManager.html" title="The PluginManager loads and maintains all Soprano plugins.">PluginManager</a>( <a class="codeRef" href="qobject.html">QObject</a>* parent = 0 ); <a name="l00272"></a>00272 <span class="keywordtype">void</span> loadAllPlugins(); <a name="l00273"></a>00273 <span class="keywordtype">void</span> loadPlugin( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00274"></a>00274 <span class="keywordtype">void</span> loadPlugins( <span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>& path ); <a name="l00275"></a>00275 <a name="l00276"></a>00276 <span class="keyword">class </span>Private; <a name="l00277"></a>00277 Private* <span class="keyword">const</span> d; <a name="l00278"></a>00278 <a name="l00279"></a><a class="code" href="classSoprano_1_1PluginManager.html#a8f6a27433e044db766b9d547b7e18d1c">00279</a> <span class="keyword">friend</span> <span class="keyword">class </span>PluginManagerFactory; <a name="l00280"></a>00280 }; <a name="l00281"></a>00281 } <a name="l00282"></a>00282 <a name="l00283"></a>00283 <span class="preprocessor">#endif</span> </pre></div></div> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Oct 21 2010 for Soprano by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>