QxtServiceBrowser Class Reference
[QxtZeroconf module]
The QxtServiceBrowser class locates Zeroconf-enabled services on the network More...
#include <QxtServiceBrowser>
Inherits QObject.
Public Functions
- 29 public functions inherited from QObject
Public Slots
- 1 public slot inherited from QObject
Signals
Additional Inherited Members
- 1 property inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QObject
- 7 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QxtServiceBrowser class locates Zeroconf-enabled services on the network
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 serviceAdded() 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 serviceRemoved() signal.
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.
For more information about Zeroconf, see the documentation available on www.zeroconf.org.
See also QxtDiscoverableService and QxtDiscoverableServiceName.
Member Function Documentation
QxtServiceBrowser::QxtServiceBrowser ( const QString & serviceType, QObject * parent = 0 )
QxtServiceBrowser::QxtServiceBrowser ( const QString & serviceType, QAbstractSocket::SocketType socketType, QObject * parent = 0 )
QxtServiceBrowser::~QxtServiceBrowser () [virtual]
void QxtServiceBrowser::addServiceSubType ( const QString & subtype )
void QxtServiceBrowser::browse () [slot]
void QxtServiceBrowser::browsingFailed ( int errorCode ) [signal]
bool QxtServiceBrowser::hasServiceSubType ( const QString & subtype )
bool QxtServiceBrowser::isBrowsing () const
void QxtServiceBrowser::removeServiceSubType ( const QString & subtype )
void QxtServiceBrowser::serviceAdded ( const QString & serviceName, const QString & domain ) [signal]
void QxtServiceBrowser::serviceRemoved ( const QString & serviceName, const QString & domain ) [signal]
QStringList QxtServiceBrowser::serviceSubTypes () const
See also setServiceSubTypes().
void QxtServiceBrowser::setServiceSubTypes ( const QStringList & subtypes )
See also serviceSubTypes().
void QxtServiceBrowser::stopBrowsing () [slot]