QxtDiscoverableService Class Reference
[QxtZeroconf module]
The QxtDiscoverableService class registers a service that can be discovered with Zeroconf, or resolve such a service More...
#include <QxtDiscoverableService>
Inherits QObject.
Public Types
- enum ErrorCode { NoError }
- enum ServiceFlag { MoreComing, Add, Remove, AddDefault, ..., ShareConnection }
- flags ServiceFlags
- enum State { Unknown, Registering, Registered, Found, Resolving, Resolved }
Public Functions
- 29 public functions inherited from QObject
Signals
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot 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 QxtDiscoverableService class registers a service that can be discovered with Zeroconf, or resolve such a service
QxtDiscoverableService represents a service on the local network that can be discovered using Zeroconf. It can function to provide such a service so that other systems on the network can find it, or it can resolve the connection parameters for a service provided by another system on the network. Note that resolving a service requires that you already know the service name in addition to the service type for the remote service; to find all services on the network that offer a given service type, use QxtServiceBrowser.
When registering a service, you may specify a set of service subtypes to indicate what kind of optional capabilities your service offers. Other applications browsing for discoverable services (for instance, using QxtServiceBrowser) can limit their search to only those services that provide a given subtype. Use the properties inherited from QxtDiscoverableServiceName to configure the other service parameters.
For more information about Zeroconf, see the documentation available on www.zeroconf.org.
See also QxtDiscoverableServiceName and QxtServiceBrowser.
Member Type Documentation
enum QxtDiscoverableService::ErrorCode
enum QxtDiscoverableService::ServiceFlag
flags QxtDiscoverableService::ServiceFlags
The ServiceFlags type is a typedef for QFlags<ServiceFlag>. It stores an OR combination of ServiceFlag values.
enum QxtDiscoverableService::State
Member Function Documentation
QxtDiscoverableService::QxtDiscoverableService ( const QString & serviceType, QObject * parent = 0 )
QxtDiscoverableService::QxtDiscoverableService ( const QString & serviceType, const QString & serviceName, QObject * parent = 0 )
QxtDiscoverableService::~QxtDiscoverableService () [virtual]
void QxtDiscoverableService::addServiceSubType ( const QString & subtype )
bool QxtDiscoverableService::hasServiceSubType ( const QString & subtype )
quint16 QxtDiscoverableService::port () const
See also setPort().
void QxtDiscoverableService::registerService ( bool noAutoRename = false )
void QxtDiscoverableService::registered () [signal]
void QxtDiscoverableService::registrationError ( int code ) [signal]
void QxtDiscoverableService::releaseService ()
void QxtDiscoverableService::removeServiceSubType ( const QString & subtype )
void QxtDiscoverableService::resolve ( bool forceMulticast = false )
void QxtDiscoverableService::resolveError ( int code ) [signal]
void QxtDiscoverableService::resolved ( const QByteArray & domainName ) [signal]
QStringList QxtDiscoverableService::serviceSubTypes () const
See also setServiceSubTypes().
void QxtDiscoverableService::setPort ( quint16 port )
See also port().
void QxtDiscoverableService::setServiceSubTypes ( const QStringList & subtypes )
See also serviceSubTypes().
State QxtDiscoverableService::state () const