Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 1856

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class KServiceTypeProfile</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 KServiceTypeProfile</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">
 This class holds the offers for a service type
 (e. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="kuserprofile_h.html">kuserprofile.h</A>&gt;</code></TD></TR>
<TR><TH><A HREF="full-list-KServiceTypeProfile.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 Types</h4><ul><LI>typedef QValueList<KServiceOffer>  <A HREF="#ref1">OfferList</A>
</LI>
</ul><h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref2">~KServiceTypeProfile</A></b> () 
</LI>
<LI>int &nbsp;<b><A HREF="#ref3">preference</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service )  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref4">allowAsDefault</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service )  const
</LI>
<LI>OfferList &nbsp;<b><A HREF="#ref5">offers</A></b> ()  const
</LI>
<LI><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<b><A HREF="#ref6">serviceType</A></b> ()  const
</LI>
</ul><h4>Public Static Methods</h4><ul><LI>static  <A HREF="KService.html#Ptr">KService::Ptr</A> &nbsp;<b><A HREF="#ref7">preferredService</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & serviceType, bool needApp ) 
</LI>
<LI>static  <A HREF="KService.html#Ptr">KService::Ptr</A> &nbsp;<b><A HREF="#ref8">preferredService</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & serviceType, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & genericServiceType ) 
</LI>
<LI>static  <A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>* &nbsp;<b><A HREF="#ref9">serviceTypeProfile</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype ) 
</LI>
<LI>static  <A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>* &nbsp;<b><A HREF="#ref10">serviceTypeProfile</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & genericServiceType ) 
</LI>
<LI>static  OfferList &nbsp;<b><A HREF="#ref11">offers</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype ) 
</LI>
<LI>static  OfferList &nbsp;<b><A HREF="#ref12">offers</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& genericServiceType ) 
</LI>
<LI>static  const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlist.html">QList</A><<A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>>& &nbsp;<b><A HREF="#ref13">serviceTypeProfiles</A></b> () 
</LI>
<LI>static  void &nbsp;<b><A HREF="#ref14">clear</A></b> () 
</LI>
<LI>static  void &nbsp;<b><A HREF="#ref15">setConfigurationMode</A></b> () 
</LI>
<LI>static  bool &nbsp;<b><A HREF="#ref16">configurationMode</A></b> () 
</LI>
</ul><h4>Protected Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref17">KServiceTypeProfile</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _genericServiceType = QString::null ) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref18">addService</A></b> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service, int _preference = 1, bool _allow_as_default = TRUE ) 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 This class holds the offers for a service type
 (e.g. in old terms "the bindings for a mimetype")
 </p>
<A NAME="OfferList"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td>typedef <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qvaluelist.html">QValueList</A><<A HREF="KServiceOffer.html">KServiceOffer</A>>  <strong>OfferList</strong></td><td align="right"><h3><strong>OfferList</strong></h3></td></tr></table><p></p><A NAME="~KServiceTypeProfile"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>~KServiceTypeProfile</strong> ()
<br></td><td align="right"><h3><strong>~KServiceTypeProfile</strong></h3></td></tr></table><p></p><A NAME="preference"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int &nbsp;<strong>preference</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service )
<br></td><td align="right"><h3><strong>preference</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
</p>
<p><b>Returns</b>: the users preference of this special service or 0 if
         the service is unknown.
   </p>
<A NAME="allowAsDefault"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>allowAsDefault</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service )
<br></td><td align="right"><h3><strong>allowAsDefault</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="offers"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>OfferList &nbsp;<strong>offers</strong> ()
<br></td><td align="right"><h3><strong>offers</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="serviceType"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> &nbsp;<strong>serviceType</strong> ()
<br></td><td align="right"><h3><strong>serviceType</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
   </p>
<p><b>Returns</b>: the service type_s_ for which this profile is responsible.
</p>
<A NAME="preferredService"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KService.html#Ptr">KService::Ptr</A> &nbsp;<strong>preferredService</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & serviceType, bool needApp )
<br></td><td align="right"><h3><strong>preferredService</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
   </p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>needApp</i></TD><TD align="left" valign="top">if we need an service of type Application
 (as opposed to any service, including non-app services)
</TD></TR>
</TABLE></P>
<p><b>Returns</b>: the preferred service (convenience method)
</p>
<A NAME="preferredService"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KService.html#Ptr">KService::Ptr</A> &nbsp;<strong>preferredService</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & serviceType, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & genericServiceType )
<br></td><td align="right"><h3><strong>preferredService</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>
<p> preferredService(m,true) is equivalent to preferredService(m,"Application")
 preferredService(m,false) is equivalent to preferredService(m,QString::null)
 This call allows e.g. preferredService(m,"KParts/ReadOnlyPart").
   </p>
<p><b>Returns</b>: the preferred service (convenience method)
 for _serviceType and _genericServiceType (Application, type of component, or empty).
</p>
<A NAME="serviceTypeProfile"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>* &nbsp;<strong>serviceTypeProfile</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype )
<br></td><td align="right"><h3><strong>serviceTypeProfile</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>
<p><b>Returns</b>: the profile for the requested service type.
   </p>
<A NAME="serviceTypeProfile"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>* &nbsp;<strong>serviceTypeProfile</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A> & genericServiceType )
<br></td><td align="right"><h3><strong>serviceTypeProfile</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>
<p><b>Returns</b>: the profile for the requested service type.
   </p>
<A NAME="offers"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td> OfferList &nbsp;<strong>offers</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype )
<br></td><td align="right"><h3><strong>offers</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>
<p><b>Returns</b>: the offers associated with a given servicetype, sorted by preference
 This is what KTrader uses to get the list of offers, before applying the
 constraints and preferences.
   </p>
<A NAME="offers"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td> OfferList &nbsp;<strong>offers</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& genericServiceType )
<br></td><td align="right"><h3><strong>offers</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
</p>
<p><b>Returns</b>: the offers associated with the combination of two service types
 This is almost like an "blah in ServiceTypes" constraint in the Trader,
 but the difference is that to order the offers, we will look at entries
 specifically for those two service types. Typically, this is used for
 getting the list of embeddable components that can handle a given mimetype.
 In that case, <code>servicetype</code> is the mimetype and <code>genericServiceType</code> is "KParts/ReadOnlyPart".
   </p>
<A NAME="serviceTypeProfiles"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td> const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlist.html">QList</A><<A HREF="KServiceTypeProfile.html">KServiceTypeProfile</A>>& &nbsp;<strong>serviceTypeProfiles</strong> ()
<br></td><td align="right"><h3><strong>serviceTypeProfiles</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="clear"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>clear</strong> ()
<br></td><td align="right"><h3><strong>clear</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 Clear all cached information
   </p>
<A NAME="setConfigurationMode"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void &nbsp;<strong>setConfigurationMode</strong> ()
<br></td><td align="right"><h3><strong>setConfigurationMode</strong></h3></td></tr></table><p> <small>[static]</small></p><p>
 This method activates a special mode of KServiceTypeProfile, in which all/all
 and all/allfiles are excluded from the results of the queries.
 It is meant for the configuration module _only_. @internal.
   </p>
<A NAME="configurationMode"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool &nbsp;<strong>configurationMode</strong> ()
<br></td><td align="right"><h3><strong>configurationMode</strong></h3></td></tr></table><p> <small>[static]</small></p><A NAME="KServiceTypeProfile"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KServiceTypeProfile</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _servicetype, const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _genericServiceType = QString::null )
<br></td><td align="right"><h3><strong>KServiceTypeProfile</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>
 Constructor is called when the user profile is read for the
 first time.
   </p>
<A NAME="addService"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>addService</strong> ( const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& _service, int _preference = 1, bool _allow_as_default = TRUE )
<br></td><td align="right"><h3><strong>addService</strong></h3></td></tr></table><p> <small>[protected]</small></p><p>
 Add a service to this profile.
   </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>