<HTML> <HEAD> <TITLE>class KServiceFactory</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KServiceFactory</h1> </TD> <TD valign="top" align="right" colspan="1"> <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH colspan="2">Internal Use Only</TH></TR><TR><TH>Definition</TH><TD><code>#include <<A HREF="kservicefactory_h.html">kservicefactory.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="../kdecore/KSycocaFactory.html">KSycocaFactory</A> <small>(kdecore)</small> <small>[public ]</small></TD></TR> <TR><TH><A HREF="full-list-KServiceFactory.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">KServiceFactory</A></b> () </LI> <LI>virtual <b><A HREF="#ref2">~KServiceFactory</A></b> () </LI> <LI>virtual <A HREF="../kdecore/KSycocaEntry.html">KSycocaEntry</A> * <b><A HREF="#ref3">createEntry</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &, const char *) </LI> <LI><A HREF="KService.html">KService</A> * <b><A HREF="#ref4">findServiceByName</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) </LI> <LI><A HREF="KService.html">KService</A> * <b><A HREF="#ref5">findServiceByDesktopName</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) </LI> <LI><A HREF="KService.html">KService</A> * <b><A HREF="#ref6">findServiceByDesktopPath</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) </LI> <LI><A HREF="KService.html#List">KService::List</A> <b><A HREF="#ref7">offers</A></b> ( int serviceTypeOffset ) </LI> <LI><A HREF="KService.html#List">KService::List</A> <b><A HREF="#ref8">allServices</A></b> () </LI> <LI><A HREF="KService.html#List">KService::List</A> <b><A HREF="#ref9">allInitServices</A></b> () </LI> </ul><h4>Public Static Methods</h4><ul><LI>static <A HREF="KServiceFactory.html">KServiceFactory</A> * <b><A HREF="#ref10">self</A></b> () </LI> </ul><h4>Protected Methods</h4><ul><LI>virtual <A HREF="KService.html">KService</A> * <b><A HREF="#ref11">createEntry</A></b> (int offset) </LI> </ul><h4>Protected Members</h4><ul><LI>int <b><A HREF="#ref12">m_offerListOffset</A></b></LI> <LI>int <b><A HREF="#ref13">m_initListOffset</A></b></LI> <LI>KSycocaDict *<b><A HREF="#ref14">m_nameDict</A></b></LI> <LI>int <b><A HREF="#ref15">m_nameDictOffset</A></b></LI> <LI>KSycocaDict *<b><A HREF="#ref16">m_relNameDict</A></b></LI> <LI>int <b><A HREF="#ref17">m_relNameDictOffset</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> A sycoca factory for services (e.g. applications) It loads the services from parsing directories (e.g. applnk/) but can also create service from data streams or single config files </p> <A NAME="KServiceFactory"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KServiceFactory</strong> () <br></td><td align="right"><h3><strong>KServiceFactory</strong></h3></td></tr></table><p></p><p> Create factory </p> <A NAME="~KServiceFactory"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KServiceFactory</strong> () <br></td><td align="right"><h3><strong>~KServiceFactory</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="createEntry"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="../kdecore/KSycocaEntry.html">KSycocaEntry</A> * <strong>createEntry</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &, const char *) <br></td><td align="right"><h3><strong>createEntry</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Construct a KService from a config file. </p> <p>Reimplemented from <A HREF="../kdecore/KSycocaFactory.html#createEntry">KSycocaFactory</A>.</p> <A NAME="findServiceByName"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html">KService</A> * <strong>findServiceByName</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) <br></td><td align="right"><h3><strong>findServiceByName</strong></h3></td></tr></table><p></p><p> Find a service (by name, e.g. "Terminal") </p> <A NAME="findServiceByDesktopName"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html">KService</A> * <strong>findServiceByDesktopName</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) <br></td><td align="right"><h3><strong>findServiceByDesktopName</strong></h3></td></tr></table><p></p><p> Find a service (by desktop file name, e.g. "konsole") </p> <A NAME="findServiceByDesktopPath"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html">KService</A> * <strong>findServiceByDesktopPath</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &_name ) <br></td><td align="right"><h3><strong>findServiceByDesktopPath</strong></h3></td></tr></table><p></p><p> Find a service ( by desktop path, e.g. "System/konsole.desktop") </p> <A NAME="offers"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html#List">KService::List</A> <strong>offers</strong> ( int serviceTypeOffset ) <br></td><td align="right"><h3><strong>offers</strong></h3></td></tr></table><p></p><p> </p> <p><b>Returns</b>: the services supporting the given service type </p> <A NAME="allServices"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html#List">KService::List</A> <strong>allServices</strong> () <br></td><td align="right"><h3><strong>allServices</strong></h3></td></tr></table><p></p><p> </p> <p><b>Returns</b>: all services. Very memory consuming, avoid using. </p> <A NAME="allInitServices"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KService.html#List">KService::List</A> <strong>allInitServices</strong> () <br></td><td align="right"><h3><strong>allInitServices</strong></h3></td></tr></table><p></p><p> </p> <p><b>Returns</b>: all services which have a "X-KDE-Init" line. </p> <A NAME="self"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KServiceFactory.html">KServiceFactory</A> * <strong>self</strong> () <br></td><td align="right"><h3><strong>self</strong></h3></td></tr></table><p> <small>[static]</small></p><p> </p> <p><b>Returns</b>: the unique service factory, creating it if necessary </p> <A NAME="createEntry"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KService.html">KService</A> * <strong>createEntry</strong> (int offset) <br></td><td align="right"><h3><strong>createEntry</strong></h3></td></tr></table><p> <small>[protected virtual]</small></p><p>Reimplemented from <A HREF="../kdecore/KSycocaFactory.html#createEntry">KSycocaFactory</A>.</p> <A NAME="m_offerListOffset"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>m_offerListOffset</strong> </td><td align="right"><h3><strong>m_offerListOffset</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="m_initListOffset"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>m_initListOffset</strong> </td><td align="right"><h3><strong>m_initListOffset</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="m_nameDict"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../kdecore/KSycocaDict.html">KSycocaDict</A> * <strong>m_nameDict</strong> </td><td align="right"><h3><strong>m_nameDict</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="m_nameDictOffset"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>m_nameDictOffset</strong> </td><td align="right"><h3><strong>m_nameDictOffset</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="m_relNameDict"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../kdecore/KSycocaDict.html">KSycocaDict</A> * <strong>m_relNameDict</strong> </td><td align="right"><h3><strong>m_relNameDict</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="m_relNameDictOffset"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>m_relNameDictOffset</strong> </td><td align="right"><h3><strong>m_relNameDictOffset</strong></h3></td></tr></table><p> <small>[protected]</small></p><HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:14 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>