<?xml version="1.0" encoding="UTF-8"?> <!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" lang="en_US" xml:lang="en_US"> <head> <title>kio/kio: KServiceGroup Class Reference (kio/kio)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../../.."><img id="nav_header_logo" alt="Home" align="left" src="../../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <div id="nav_header_title" align="left">KDE API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_right" style="text-align: left;"> / <a href="../../..">API Reference</a> / <a href="../../html/index.html">kio</a> / <a href=".">kio</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <a name="content"></a> <!-- Generated by Doxygen 1.4.4 --> <h1>KServiceGroup Class Reference</h1><!-- doxytag: class="KServiceGroup" --><!-- doxytag: inherits="KSycocaEntry" --><code>#include <<a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>></code> <p> <a href="classKServiceGroup-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> KServiceGroup represents a group of service, for example screensavers.Represents a group of services. <p> This class is typically used like this:<p> <div class="fragment"><pre class="fragment"> <span class="comment">// Lookup screensaver group</span> <a class="code" href="classKServiceGroup.html#w0">KServiceGroup::Ptr</a> group = <a class="code" href="classKServiceGroup.html#e0">KServiceGroup::baseGroup</a>(<span class="stringliteral">"screensavers"</span>); <span class="keywordflow">if</span> (!group || !group->isValid()) <span class="keywordflow">return</span>; <a class="code" href="classKServiceGroup.html#w2">KServiceGroup::List</a> list = group->entries(); <span class="comment">// Iterate over all entries in the group</span> <span class="keywordflow">for</span>( KServiceGroup::List::ConstIterator it = list.begin(); it != list.end(); it++) { KSycocaEntry *p = (*it); <span class="keywordflow">if</span> (p->isType(KST_KService)) { <a class="code" href="classKService.html">KService</a> *s = static_cast<KService *>(p); printf(<span class="stringliteral">"Name = %s\n"</span>, s-><a class="code" href="classKService.html#a6">name</a>().<a class="codeRef" doxygen="qt.tag:" href="qstring.html#latin1">latin1</a>()); } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (p->isType(KST_KServiceGroup)) { <a class="code" href="classKServiceGroup.html">KServiceGroup</a> *g = static_cast<KServiceGroup *>(p); <span class="comment">// Sub group ...</span> } } </pre></div> <p> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00067">67</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>.<table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w0"></a><!-- doxytag: member="KServiceGroup::Ptr" ref="w0" args="" --> typedef KSharedPtr< <a class="el" href="classKServiceGroup.html">KServiceGroup</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#w0">Ptr</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w1"></a><!-- doxytag: member="KServiceGroup::SPtr" ref="w1" args="" --> typedef KSharedPtr< KSycocaEntry > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#w1">SPtr</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="w2"></a><!-- doxytag: member="KServiceGroup::List" ref="w2" args="" --> typedef <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">QValueList</a>< <a class="el" href="classKServiceGroup.html#w1">SPtr</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#w2">List</a></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a0">KServiceGroup</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &name)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a1">KServiceGroup</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &_fullpath, const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &_relpath)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2"></a><!-- doxytag: member="KServiceGroup::KServiceGroup" ref="a2" args="(QDataStream &_str, int offset, bool deep)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a2">KServiceGroup</a> (<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &_str, int offset, bool deep)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3"></a><!-- doxytag: member="KServiceGroup::~KServiceGroup" ref="a3" args="()" --> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a3">~KServiceGroup</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a4">isValid</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a5">name</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a6">relPath</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a7">caption</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a8">icon</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a9">comment</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a10">childCount</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a11">noDisplay</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a12">showEmptyMenu</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13"></a><!-- doxytag: member="KServiceGroup::setShowEmptyMenu" ref="a13" args="(bool b)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a13">setShowEmptyMenu</a> (bool b)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a14">showInlineHeader</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15"></a><!-- doxytag: member="KServiceGroup::setShowInlineHeader" ref="a15" args="(bool _b)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a15">setShowInlineHeader</a> (bool _b)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a16">inlineAlias</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a17"></a><!-- doxytag: member="KServiceGroup::setInlineAlias" ref="a17" args="(bool _b)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a17">setInlineAlias</a> (bool _b)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a18">allowInline</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a19"></a><!-- doxytag: member="KServiceGroup::setAllowInline" ref="a19" args="(bool _b)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a19">setAllowInline</a> (bool _b)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a20">inlineValue</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a21"></a><!-- doxytag: member="KServiceGroup::setInlineValue" ref="a21" args="(int _val)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a21">setInlineValue</a> (int _val)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a22">suppressGenericNames</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a23"></a><!-- doxytag: member="KServiceGroup::setLayoutInfo" ref="a23" args="(const QStringList &layout)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a23">setLayoutInfo</a> (const <a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> &layout)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a24"></a><!-- doxytag: member="KServiceGroup::layoutInfo" ref="a24" args="() const " --> <a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a24">layoutInfo</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a25"></a><!-- doxytag: member="KServiceGroup::load" ref="a25" args="(QDataStream &)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a25">load</a> (<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a26"></a><!-- doxytag: member="KServiceGroup::save" ref="a26" args="(QDataStream &)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a26">save</a> (<a class="elRef" doxygen="qt.tag:" href="qdatastream.html">QDataStream</a> &)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">List</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a27">entries</a> (bool sorted, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName=false)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a28"></a><!-- doxytag: member="KServiceGroup::entries" ref="a28" args="(bool sorted, bool excludeNoDisplay)" --> virtual <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">List</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a28">entries</a> (bool sorted, bool excludeNoDisplay)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">List</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a29">entries</a> (bool sorted=false)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a30">baseGroupName</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a31">directoryEntryPath</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#a32">parseAttribute</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &item, bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool &showInlineAlias, int &inlineValue)</td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKServiceGroup.html#w0">Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#e0">baseGroup</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &baseGroupName)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKServiceGroup.html#w0">Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#e1">root</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKServiceGroup.html#w0">Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#e2">group</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &relPath)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classKServiceGroup.html#w0">Ptr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#e3">childGroup</a> (const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> &parent)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b0"></a><!-- doxytag: member="KServiceGroup::addEntry" ref="b0" args="(KSycocaEntry *entry)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#b0">addEntry</a> (KSycocaEntry *entry)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1"></a><!-- doxytag: member="KServiceGroup::virtual_hook" ref="b1" args="(int id, void *data)" --> virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#b1">virtual_hook</a> (int id, void *data)</td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p0"></a><!-- doxytag: member="KServiceGroup::m_strCaption" ref="p0" args="" --> <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p0">m_strCaption</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p1"></a><!-- doxytag: member="KServiceGroup::m_strIcon" ref="p1" args="" --> <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p1">m_strIcon</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p2"></a><!-- doxytag: member="KServiceGroup::m_strComment" ref="p2" args="" --> <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p2">m_strComment</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p3"></a><!-- doxytag: member="KServiceGroup::m_serviceList" ref="p3" args="" --> <a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">List</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p3">m_serviceList</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p4"></a><!-- doxytag: member="KServiceGroup::m_bDeep" ref="p4" args="" --> bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p4">m_bDeep</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p5"></a><!-- doxytag: member="KServiceGroup::m_strBaseGroupName" ref="p5" args="" --> <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p5">m_strBaseGroupName</a></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="p6"></a><!-- doxytag: member="KServiceGroup::m_childCount" ref="p6" args="" --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#p6">m_childCount</a></td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="n0"></a><!-- doxytag: member="KServiceGroup::KBuildServiceGroupFactory" ref="n0" args="" --> class </td><td class="memItemRight" valign="bottom"><a class="el" href="classKServiceGroup.html#n0">KBuildServiceGroupFactory</a></td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="a0"></a><!-- doxytag: member="KServiceGroup::KServiceGroup" ref="a0" args="(const QString &name)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">KServiceGroup::KServiceGroup </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>name</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Construct a dummy servicegroup indexed with <code>name</code>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of the service group </td></tr> </table> </dl> <dl compact><dt><b>Since:</b></dt><dd>3.1</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00046">46</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a1"></a><!-- doxytag: member="KServiceGroup::KServiceGroup" ref="a1" args="(const QString &_fullpath, const QString &_relpath)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">KServiceGroup::KServiceGroup </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname" nowrap> <em>_fullpath</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname" nowrap> <em>_relpath</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Construct a service and take all informations from a config file. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>_fullpath</em> </td><td>full path to the config file </td></tr> <tr><td valign="top"></td><td valign="top"><em>_relpath</em> </td><td>relative path to the config file</td></tr> </table> </dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00054">54</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="a18"></a><!-- doxytag: member="KServiceGroup::allowInline" ref="a18" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::allowInline </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>true if we allow to inline menu. </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.5</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00186">186</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="e0"></a><!-- doxytag: member="KServiceGroup::baseGroup" ref="e0" args="(const QString &baseGroupName)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classKServiceGroup.html#w0">KServiceGroup::Ptr</a> KServiceGroup::baseGroup </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>baseGroupName</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the group for the given baseGroupName. <p> Can return 0L if the directory (or the .directory file) was deleted. <dl compact><dt><b>Returns:</b></dt><dd>the base group with the given name, or 0 if not available.</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00637">637</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a30"></a><!-- doxytag: member="KServiceGroup::baseGroupName" ref="a30" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::baseGroupName </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns a non-empty string if the group is a special base group. <p> By default, "Settings/" is the kcontrol base group ("settings") and "System/Screensavers/" is the screensavers base group ("screensavers"). This allows moving the groups without breaking those apps.<p> The base group is defined by the X-KDE-BaseGroup key in the .directory file. <dl compact><dt><b>Returns:</b></dt><dd>the base group name, or null if no base group</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00251">251</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a7"></a><!-- doxytag: member="KServiceGroup::caption" ref="a7" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::caption </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the caption of this group. <p> <dl compact><dt><b>Returns:</b></dt><dd>the caption of this group</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00121">121</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a10"></a><!-- doxytag: member="KServiceGroup::childCount" ref="a10" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int KServiceGroup::childCount </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the total number of displayable services in this group and any of its subgroups. <p> <dl compact><dt><b>Returns:</b></dt><dd>the number of child services</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00119">119</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="e3"></a><!-- doxytag: member="KServiceGroup::childGroup" ref="e3" args="(const QString &parent)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classKServiceGroup.html#w0">KServiceGroup::Ptr</a> KServiceGroup::childGroup </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>parent</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the group of services that have X-KDE-ParentApp equal to <code>parent</code> (siblings). <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>parent</em> </td><td>the name of the service's parent </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>the services group </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.1</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00656">656</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a9"></a><!-- doxytag: member="KServiceGroup::comment" ref="a9" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::comment </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the comment about this service group. <p> <dl compact><dt><b>Returns:</b></dt><dd>the descriptive comment for the group, if there is one, or QString::null if not set</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00135">135</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a31"></a><!-- doxytag: member="KServiceGroup::directoryEntryPath" ref="a31" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::directoryEntryPath </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns a path to the .directory file describing this service group. <p> The path is either absolute or relative to the "apps" resource. <dl compact><dt><b>Since:</b></dt><dd>3.2</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00662">662</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a29"></a><!-- doxytag: member="KServiceGroup::entries" ref="a29" args="(bool sorted=false)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">KServiceGroup::List</a> KServiceGroup::entries </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>sorted</em> = <code>false</code> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> List of all Services and ServiceGroups within this ServiceGroup. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>sorted</em> </td><td>true to sort items </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>the list of entried</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00293">293</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a27"></a><!-- doxytag: member="KServiceGroup::entries" ref="a27" args="(bool sorted, bool excludeNoDisplay, bool allowSeparators, bool sortByGenericName=false)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qvaluelist.html">KServiceGroup::List</a> KServiceGroup::entries </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname" nowrap> <em>sorted</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>excludeNoDisplay</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>allowSeparators</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>sortByGenericName</em> = <code>false</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> List of all Services and ServiceGroups within this ServiceGroup. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>sorted</em> </td><td>true to sort items </td></tr> <tr><td valign="top"></td><td valign="top"><em>excludeNoDisplay</em> </td><td>true to exclude items marked "NoDisplay" </td></tr> <tr><td valign="top"></td><td valign="top"><em>allowSeparators</em> </td><td>true to allow separator items to be included </td></tr> <tr><td valign="top"></td><td valign="top"><em>sortByGenericName</em> </td><td>true to sort GenericName+Name instead of Name+GenericName </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>the list of entries </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.2</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00313">313</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="e2"></a><!-- doxytag: member="KServiceGroup::group" ref="e2" args="(const QString &relPath)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classKServiceGroup.html#w0">KServiceGroup::Ptr</a> KServiceGroup::group </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>relPath</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the group with the given relative path. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>relPath</em> </td><td>the path of the service group </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>the group with the given relative path name.</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00649">649</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a8"></a><!-- doxytag: member="KServiceGroup::icon" ref="a8" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::icon </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the name of the icon associated with the group. <p> <dl compact><dt><b>Returns:</b></dt><dd>the name of the icon associated with the group, or QString::null if not set</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00128">128</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a16"></a><!-- doxytag: member="KServiceGroup::inlineAlias" ref="a16" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::inlineAlias </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>true to show an inline alias item into menu </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.5</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00156">156</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a20"></a><!-- doxytag: member="KServiceGroup::inlineValue" ref="a20" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int KServiceGroup::inlineValue </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>inline limite value </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.5</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00176">176</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a4"></a><!-- doxytag: member="KServiceGroup::isValid" ref="a4" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::isValid </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Checks whether the entry is valid, returns always true. <p> <dl compact><dt><b>Returns:</b></dt><dd>true</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00103">103</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a5"></a><!-- doxytag: member="KServiceGroup::name" ref="a5" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::name </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Name used for indexing. <p> <dl compact><dt><b>Returns:</b></dt><dd>the service group's name</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00109">109</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="a11"></a><!-- doxytag: member="KServiceGroup::noDisplay" ref="a11" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::noDisplay </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns true if the NoDisplay flag was set, i.e. <p> if this group should be hidden from menus, while still being in ksycoca. <dl compact><dt><b>Returns:</b></dt><dd>true to hide this service group, false to display it </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.1</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00196">196</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a32"></a><!-- doxytag: member="KServiceGroup::parseAttribute" ref="a32" args="(const QString &item, bool &showEmptyMenu, bool &showInline, bool &showInlineHeader, bool &showInlineAlias, int &inlineValue)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void KServiceGroup::parseAttribute </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> & </td> <td class="mdname" nowrap> <em>item</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool & </td> <td class="mdname" nowrap> <em>showEmptyMenu</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool & </td> <td class="mdname" nowrap> <em>showInline</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool & </td> <td class="mdname" nowrap> <em>showInlineHeader</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>bool & </td> <td class="mdname" nowrap> <em>showInlineAlias</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>inlineValue</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> This function parse attributes into menu. <p> <dl compact><dt><b>Since:</b></dt><dd>3.5</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00593">593</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a6"></a><!-- doxytag: member="KServiceGroup::relPath" ref="a6" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">virtual <a class="elRef" doxygen="qt.tag:" href="qstring.html">QString</a> KServiceGroup::relPath </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [inline, virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the relative path of the service group. <p> <dl compact><dt><b>Returns:</b></dt><dd>the service group's relative path</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8h-source.html#l00115">115</a> of file <a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a>. </td> </tr> </table> <a class="anchor" name="e1"></a><!-- doxytag: member="KServiceGroup::root" ref="e1" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="classKServiceGroup.html#w0">KServiceGroup::Ptr</a> KServiceGroup::root </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the root service group. <p> <dl compact><dt><b>Returns:</b></dt><dd>the root service group</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00643">643</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a12"></a><!-- doxytag: member="KServiceGroup::showEmptyMenu" ref="a12" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::showEmptyMenu </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Return true if we want to display empty menu entry. <p> <dl compact><dt><b>Returns:</b></dt><dd>true to show this service group as menu entry is empty, false to hide it </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.4</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00151">151</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a14"></a><!-- doxytag: member="KServiceGroup::showInlineHeader" ref="a14" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool KServiceGroup::showInlineHeader </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> <dl compact><dt><b>Returns:</b></dt><dd>true to show an inline header into menu </dd></dl> <dl compact><dt><b>Since:</b></dt><dd>3.5</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00146">146</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <a class="anchor" name="a22"></a><!-- doxytag: member="KServiceGroup::suppressGenericNames" ref="a22" args="() const " --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="elRef" doxygen="qt.tag:" href="qstringlist.html">QStringList</a> KServiceGroup::suppressGenericNames </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns a list of untranslated generic names that should be be supressed when showing this group. <p> E.g. The group "Games/Arcade" might want to suppress the generic name "Arcade Game" since it's redundant in this particular context. <dl compact><dt><b>Since:</b></dt><dd>3.2</dd></dl> <p> Definition at line <a class="el" href="kservicegroup_8cpp-source.html#l00201">201</a> of file <a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="kservicegroup_8h-source.html">kservicegroup.h</a><li><a class="el" href="kservicegroup_8cpp-source.html">kservicegroup.cpp</a></ul> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>kio/kio</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="modules.html">Modules</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="dirs.html">Directories</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classKACL.html">kacl</option>, <option value="classKAr.html">kar</option>, <option value="classKArchive.html">karchive</option>, <option value="classKArchiveDirectory.html">karchivedirectory</option>, <option value="classKArchiveEntry.html">karchiveentry</option>, <option value="classKArchiveFile.html">karchivefile</option>, <option value="classKAutoMount.html">kautomount</option>, <option value="classKAutoUnmount.html">kautounmount</option>, <option value="classKDataTool.html">kdatatool</option>, <option value="classKDataToolAction.html">kdatatoolaction</option>, <option value="classKDataToolInfo.html">kdatatoolinfo</option>, <option value="classKDCOPServiceStarter.html">kdcopservicestarter</option>, <option value="classKDEDesktopMimeType.html">kdedesktopmimetype</option>, <option value="classKDirLister.html">kdirlister</option>, <option value="classKDirNotify.html">kdirnotify</option>, <option value="classKDirNotify__stub.html">kdirnotify__stub</option>, <option value="classKDirWatch.html">kdirwatch</option>, <option value="classKEMailSettings.html">kemailsettings</option>, <option value="classKExecMimeType.html">kexecmimetype</option>, <option value="classKFileFilter.html">kfilefilter</option>, <option value="classKFileItem.html">kfileitem</option>, <option value="classKFileMetaInfo.html">kfilemetainfo</option>, <option value="classKFileMetaInfoGroup.html">kfilemetainfogroup</option>, <option value="classKFileMetaInfoItem.html">kfilemetainfoitem</option>, <option value="classKFileMetaInfoProvider.html">kfilemetainfoprovider</option>, <option value="classKFileMimeTypeInfo.html">kfilemimetypeinfo</option>, <option value="classKFileMimeTypeInfo_1_1GroupInfo.html">kfilemimetypeinfo::groupinfo</option>, <option value="classKFileMimeTypeInfo_1_1ItemInfo.html">kfilemimetypeinfo::iteminfo</option>, <option value="classKFilePlugin.html">kfileplugin</option>, <option value="classKFileShare.html">kfileshare</option>, <option value="classKFileSharePrivate.html">kfileshareprivate</option>, <option value="classKFilterBase.html">kfilterbase</option>, <option value="classKFilterDev.html">kfilterdev</option>, <option value="classKFolderType.html">kfoldertype</option>, <option value="classKImageIO.html">kimageio</option>, <option value="classKImageIOFactory.html">kimageiofactory</option>, <option value="classKImageIOFormat.html">kimageioformat</option>, <option value="classKImageIOFormatList.html">kimageioformatlist</option>, <option value="classKIO_1_1AuthInfo.html">kio::authinfo</option>, <option value="classKIO_1_1ChmodJob.html">kio::chmodjob</option>, <option value="classKIO_1_1Connection.html">kio::connection</option>, <option value="classKIO_1_1CopyJob.html">kio::copyjob</option>, <option value="classKIO_1_1DataProtocol.html">kio::dataprotocol</option>, <option value="classKIO_1_1DataSlave.html">kio::dataslave</option>, <option value="classKIO_1_1DavJob.html">kio::davjob</option>, <option value="classKIO_1_1DefaultProgress.html">kio::defaultprogress</option>, <option value="classKIO_1_1DeleteJob.html">kio::deletejob</option>, <option value="classKIO_1_1DirectCopyJob.html">kio::directcopyjob</option>, <option value="classKIO_1_1FileCopyJob.html">kio::filecopyjob</option>, <option value="classKIO_1_1ForwardingSlaveBase.html">kio::forwardingslavebase</option>, <option value="classKIO_1_1Job.html">kio::job</option>, <option value="classKIO_1_1ListJob.html">kio::listjob</option>, <option value="classKIO_1_1MetaData.html">kio::metadata</option>, <option value="classKIO_1_1MetaInfoJob.html">kio::metainfojob</option>, <option value="classKIO_1_1MimetypeJob.html">kio::mimetypejob</option>, <option value="classKIO_1_1MkdirJob.html">kio::mkdirjob</option>, <option value="classKIO_1_1MultiGetJob.html">kio::multigetjob</option>, <option value="classKIO_1_1NetAccess.html">kio::netaccess</option>, <option value="classKIO_1_1NetRC.html">kio::netrc</option>, <option value="classKIO_1_1ParseContext.html">kio::parsecontext</option>, <option value="classKIO_1_1ParseTreeAND.html">kio::parsetreeand</option>, <option value="classKIO_1_1ParseTreeBase.html">kio::parsetreebase</option>, <option value="classKIO_1_1ParseTreeBOOL.html">kio::parsetreebool</option>, <option value="classKIO_1_1ParseTreeBRACKETS.html">kio::parsetreebrackets</option>, <option value="classKIO_1_1ParseTreeCALC.html">kio::parsetreecalc</option>, <option value="classKIO_1_1ParseTreeCMP.html">kio::parsetreecmp</option>, <option value="classKIO_1_1ParseTreeDOUBLE.html">kio::parsetreedouble</option>, <option value="classKIO_1_1ParseTreeEXIST.html">kio::parsetreeexist</option>, <option value="classKIO_1_1ParseTreeID.html">kio::parsetreeid</option>, <option value="classKIO_1_1ParseTreeIN.html">kio::parsetreein</option>, <option value="classKIO_1_1ParseTreeMATCH.html">kio::parsetreematch</option>, <option value="classKIO_1_1ParseTreeMAX2.html">kio::parsetreemax2</option>, <option value="classKIO_1_1ParseTreeMIN2.html">kio::parsetreemin2</option>, <option value="classKIO_1_1ParseTreeNOT.html">kio::parsetreenot</option>, <option value="classKIO_1_1ParseTreeNUM.html">kio::parsetreenum</option>, <option value="classKIO_1_1ParseTreeOR.html">kio::parsetreeor</option>, <option value="classKIO_1_1ParseTreeSTRING.html">kio::parsetreestring</option>, <option value="classKIO_1_1PasswordDialog.html">kio::passworddialog</option>, <option value="classKIO_1_1PasteDialog.html">kio::pastedialog</option>, <option value="classKIO_1_1PreviewJob.html">kio::previewjob</option>, <option value="classKIO_1_1ProgressBase.html">kio::progressbase</option>, <option value="classKIO_1_1RenameDlg.html">kio::renamedlg</option>, <option value="classKIO_1_1Scheduler.html">kio::scheduler</option>, <option value="classKIO_1_1SessionData.html">kio::sessiondata</option>, <option value="classKIO_1_1SimpleJob.html">kio::simplejob</option>, <option value="classKIO_1_1SkipDlg.html">kio::skipdlg</option>, <option value="classKIO_1_1Slave.html">kio::slave</option>, <option value="classKIO_1_1SlaveBase.html">kio::slavebase</option>, <option value="classKIO_1_1SlaveConfig.html">kio::slaveconfig</option>, <option value="classKIO_1_1SlaveInterface.html">kio::slaveinterface</option>, <option value="classKIO_1_1StatJob.html">kio::statjob</option>, <option value="classKIO_1_1StatusbarProgress.html">kio::statusbarprogress</option>, <option value="classKIO_1_1StoredTransferJob.html">kio::storedtransferjob</option>, <option value="classKIO_1_1TCPSlaveBase.html">kio::tcpslavebase</option>, <option value="classKIO_1_1TransferJob.html">kio::transferjob</option>, <option value="classKIO_1_1UDSAtom.html">kio::udsatom</option>, <option value="classKLimitedIODevice.html">klimitediodevice</option>, <option value="classKMessageBoxWrapper.html">kmessageboxwrapper</option>, <option value="classKMimeMagic.html">kmimemagic</option>, <option value="classKMimeMagicResult.html">kmimemagicresult</option>, <option value="classKMimeType.html">kmimetype</option>, <option value="classKMimeTypeChooser.html">kmimetypechooser</option>, <option value="classKMimeTypeChooserDialog.html">kmimetypechooserdialog</option>, <option value="classKMimeTypeResolver.html">kmimetyperesolver</option>, <option value="classKMimeTypeResolverBase.html">kmimetyperesolverbase</option>, <option value="classKMimeTypeResolverHelper.html">kmimetyperesolverhelper</option>, <option value="classKNFSShare.html">knfsshare</option>, <option value="classKOCRDialog.html">kocrdialog</option>, <option value="classKOCRDialogFactory.html">kocrdialogfactory</option>, <option value="classKOpenWithHandler.html">kopenwithhandler</option>, <option value="classKProcessRunner.html">kprocessrunner</option>, <option value="classKProtocolInfo.html">kprotocolinfo</option>, <option value="classKProtocolManager.html">kprotocolmanager</option>, <option value="classKRemoteEncoding.html">kremoteencoding</option>, <option value="classKRun.html">krun</option>, <option value="classKSambaShare.html">ksambashare</option>, <option value="classKScanDialog.html">kscandialog</option>, <option value="classKScanDialogFactory.html">kscandialogfactory</option>, <option value="classKService.html">kservice</option>, <option value="classKServiceFactory.html">kservicefactory</option>, <option value="classKServiceGroup.html">kservicegroup</option>, <option value="classKServiceGroupFactory.html">kservicegroupfactory</option>, <option value="classKServiceOffer.html">kserviceoffer</option>, <option value="classKServiceSeparator.html">kserviceseparator</option>, <option value="classKServiceType.html">kservicetype</option>, <option value="classKServiceTypeFactory.html">kservicetypefactory</option>, <option value="classKServiceTypeProfile.html">kservicetypeprofile</option>, <option value="classKShellCompletion.html">kshellcompletion</option>, <option value="classKShred.html">kshred</option>, <option value="classKSimpleFileFilter.html">ksimplefilefilter</option>, <option value="classKTar.html">ktar</option>, <option value="classKTrader.html">ktrader</option>, <option value="classKURIFilter.html">kurifilter</option>, <option value="classKURIFilterData.html">kurifilterdata</option>, <option value="classKURIFilterPlugin.html">kurifilterplugin</option>, <option value="classKURIFilterPluginList.html">kurifilterpluginlist</option>, <option value="classKURLCompletion.html">kurlcompletion</option>, <option value="classKURLPixmapProvider.html">kurlpixmapprovider</option>, <option value="classKZip.html">kzip</option>, <option value="classKZipFileEntry.html">kzipfileentry</option>, <option value="classObserver.html">observer</option>, <option value="classObserver__stub.html">observer__stub</option>, <option value="classRenameDlgPlugin.html">renamedlgplugin</option>, <option value="classThumbCreator.html">thumbcreator</option>, <option value="classUIServer__stub.html">uiserver__stub</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../../arts/html/index.html">arts</a></li><li><a href="../../../dcop/html/index.html">dcop</a></li><li><a href="../../../dnssd/html/index.html">dnssd</a></li><li><a href="../../../interfaces/html/index.html">interfaces</a></li><li> <a href="../../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li> <a href="../../../interfaces/kimproxy/library/html/index.html">library</a></li><li> <a href="../../../interfaces/kspeech/html/index.html">kspeech</a></li><li> <a href="../../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../../kabc/html/index.html">kabc</a></li><li><a href="../../../kate/html/index.html">kate</a></li><li><a href="../../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../../kdecore/html/index.html">kdecore</a></li><li><a href="../../../kded/html/index.html">kded</a></li><li><a href="../../../kdefx/html/index.html">kdefx</a></li><li><a href="../../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../../kdesu/html/index.html">kdesu</a></li><li><a href="../../../kdeui/html/index.html">kdeui</a></li><li><a href="../../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../../khtml/html/index.html">khtml</a></li><li><a href="../../../kimgio/html/index.html">kimgio</a></li><li><a href="../../../kinit/html/index.html">kinit</a></li><li><a href="../../../kio/html/index.html">kio</a></li><li> <a href="../../../kio/bookmarks/html/index.html">bookmarks</a></li><li> <a href="../../../kio/httpfilter/html/index.html">httpfilter</a></li><li> <a href="../../../kio/kfile/html/index.html">kfile</a></li><li> <a href="../../../kio/kio/html/index.html">kio</a></li><li> <a href="../../../kio/kioexec/html/index.html">kioexec</a></li><li> <a href="../../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li> <a href="../../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../../kioslave/http/html/index.html">http</a></li><li><a href="../../../kjs/html/index.html">kjs</a></li><li><a href="../../../kmdi/html/index.html">kmdi</a></li><li> <a href="../../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../../kparts/html/index.html">kparts</a></li><li><a href="../../../kresources/html/index.html">kresources</a></li><li><a href="../../../kspell2/html/index.html">kspell2</a></li><li><a href="../../../kunittest/html/index.html">kunittest</a></li><li><a href="../../../kutils/html/index.html">kutils</a></li><li><a href="../../../kwallet/html/index.html">kwallet</a></li><li><a href="../../../libkmid/html/index.html">libkmid</a></li><li><a href="../../../libkscreensaver/html/index.html">libkscreensaver</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>