Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d2229253b8f3127ab89b179a82cc8466 > files > 580

libqxt-devel-0.6.1-2.fc15.i686.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /builddir/build/BUILD/libqxt/src/zeroconf/qxtservicebrowser.cpp -->
<head>
  <title>QxtServiceBrowser Class Reference</title>
  <link href="stylesheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://libqxt.org"><img src="images/qxt-logo.png" width="50" height="40" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">Classes</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">Namespaces</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QxtServiceBrowser Class Reference<br /><span class="small-subtitle">[<a href="qxtzeroconf.html">QxtZeroconf</a> module]</span>
</h1>
<p>The QxtServiceBrowser class locates Zeroconf-enabled services on the network <a href="#details">More...</a></p>
<pre>    #include &lt;QxtServiceBrowser&gt;</pre><p>Inherits <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a>.</p>
<ul>
<li><a href="qxtservicebrowser-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"></div><b><a href="qxtservicebrowser.html#QxtServiceBrowser">QxtServiceBrowser</a></b> ( const QString &amp; <i>serviceType</i>, QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div><b><a href="qxtservicebrowser.html#QxtServiceBrowser-2">QxtServiceBrowser</a></b> ( const QString &amp; <i>serviceType</i>, QAbstractSocket::SocketType <i>socketType</i>, QObject * <i>parent</i> = 0 )</li>
<li><div class="fn"></div>virtual <b><a href="qxtservicebrowser.html#dtor.QxtServiceBrowser">~QxtServiceBrowser</a></b> ()</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#addServiceSubType">addServiceSubType</a></b> ( const QString &amp; <i>subtype</i> )</li>
<li><div class="fn"></div>bool <b><a href="qxtservicebrowser.html#hasServiceSubType">hasServiceSubType</a></b> ( const QString &amp; <i>subtype</i> )</li>
<li><div class="fn"></div>bool <b><a href="qxtservicebrowser.html#isBrowsing">isBrowsing</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#removeServiceSubType">removeServiceSubType</a></b> ( const QString &amp; <i>subtype</i> )</li>
<li><div class="fn"></div>QStringList <b><a href="qxtservicebrowser.html#serviceSubTypes">serviceSubTypes</a></b> () const</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#setServiceSubTypes">setServiceSubTypes</a></b> ( const QStringList &amp; <i>subtypes</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>29 public functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="public-slots"></a>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#browse">browse</a></b> ()</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#stopBrowsing">stopBrowsing</a></b> ()</li>
</ul>
<ul>
<li><div class="fn"></div>1 public slot inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h3>Signals</h3>
<ul>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#browsingFailed">browsingFailed</a></b> ( int <i>errorCode</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#serviceAdded">serviceAdded</a></b> ( const QString &amp; <i>serviceName</i>, const QString &amp; <i>domain</i> )</li>
<li><div class="fn"></div>void <b><a href="qxtservicebrowser.html#serviceRemoved">serviceRemoved</a></b> ( const QString &amp; <i>serviceName</i>, const QString &amp; <i>domain</i> )</li>
</ul>
<ul>
<li><div class="fn"></div>1 signal inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#signals">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 property inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#properties">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://doc.qtsoftware.com/4.5/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QxtServiceBrowser class locates Zeroconf-enabled services on the network</p>
<p>QxtServiceBrowser is a tool for locating Zeroconf-enabled services on the local network. When starting to browse, all existing services reachable on the local network matching the specified search parameters will be announced with the <a href="qxtservicebrowser.html#serviceAdded">serviceAdded</a>() signal. Afterward, while browsing, new services apearing on the network will be announced with the same signal, and services that are closed will be announced with the <a href="qxtservicebrowser.html#serviceRemoved">serviceRemoved</a>() signal.</p>
<p>Services on the network are identified by a service type and may be further disambiguated by service subtypes. If any service subtypes are added to the QxtServiceBrowser, only services offering the specified subtypes will be found. Use the properties inherited from QxtDiscoverableServiceName to configure the search parameters.</p>
<p>For more information about Zeroconf, see the documentation available on www.zeroconf.org.</p>
<p>See also <a href="qxtdiscoverableservice.html">QxtDiscoverableService</a> and QxtDiscoverableServiceName.</p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QxtServiceBrowser"></a>QxtServiceBrowser::QxtServiceBrowser ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>serviceType</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qxtservicebrowser.html">QxtServiceBrowser</a> that will search for services with the specified type. The service type may be a plain type name, which will default to searching for a UDP service, or it may be provided in the standard format specified by the Zeroconf specification.</p>
<h3 class="fn"><a name="QxtServiceBrowser-2"></a>QxtServiceBrowser::QxtServiceBrowser ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>serviceType</i>, <a href="http://doc.qtsoftware.com/4.5/qabstractsocket.html#SocketType-enum">QAbstractSocket::SocketType</a> <i>socketType</i>, <a href="http://doc.qtsoftware.com/4.5/qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qxtservicebrowser.html">QxtServiceBrowser</a> that will search for services with the specified type and socket type.</p>
<h3 class="fn"><a name="dtor.QxtServiceBrowser"></a>QxtServiceBrowser::~QxtServiceBrowser ()&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<h3 class="fn"><a name="addServiceSubType"></a>void QxtServiceBrowser::addServiceSubType ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>subtype</i> )</h3>
<h3 class="fn"><a name="browse"></a>void QxtServiceBrowser::browse ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<h3 class="fn"><a name="browsingFailed"></a>void QxtServiceBrowser::browsingFailed ( int <i>errorCode</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<h3 class="fn"><a name="hasServiceSubType"></a>bool QxtServiceBrowser::hasServiceSubType ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>subtype</i> )</h3>
<h3 class="fn"><a name="isBrowsing"></a>bool QxtServiceBrowser::isBrowsing () const</h3>
<h3 class="fn"><a name="removeServiceSubType"></a>void QxtServiceBrowser::removeServiceSubType ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>subtype</i> )</h3>
<h3 class="fn"><a name="serviceAdded"></a>void QxtServiceBrowser::serviceAdded ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>serviceName</i>, const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>domain</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<h3 class="fn"><a name="serviceRemoved"></a>void QxtServiceBrowser::serviceRemoved ( const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>serviceName</i>, const <a href="http://doc.qtsoftware.com/4.5/qstring.html">QString</a> &amp; <i>domain</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<h3 class="fn"><a name="serviceSubTypes"></a><a href="http://doc.qtsoftware.com/4.5/qstringlist.html">QStringList</a> QxtServiceBrowser::serviceSubTypes () const</h3>
<p>See also <a href="qxtservicebrowser.html#setServiceSubTypes">setServiceSubTypes</a>().</p>
<h3 class="fn"><a name="setServiceSubTypes"></a>void QxtServiceBrowser::setServiceSubTypes ( const <a href="http://doc.qtsoftware.com/4.5/qstringlist.html">QStringList</a> &amp; <i>subtypes</i> )</h3>
<p>See also <a href="qxtservicebrowser.html#serviceSubTypes">serviceSubTypes</a>().</p>
<h3 class="fn"><a name="stopBrowsing"></a>void QxtServiceBrowser::stopBrowsing ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td align="left">Copyright &copy; 2007-2010
<a href="mailto:foundation@libqxt.org">Qxt Foundation</a></td>
<td align="right"><div align="right">
<a href="http://libqxt.org">Qxt</a> 0.6.1</div></td>
</tr></table></div></address></body>
</html>