Home · Modules · Classes · Namespaces · Functions

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

Public Functions

Signals

Additional Inherited Members


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


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.0