/** * Constructs a QxtServiceBrowser that will search for services with the specified type * and socket type. */ QxtServiceBrowser::QxtServiceBrowser(const QString& serviceType, QAbstractSocket::SocketType socketType, QObject* parent) : QObject(parent), QxtDiscoverableServiceName(QString(), serviceType, QString(), socketType) { QXT_INIT_PRIVATE(QxtServiceBrowser); qxt_zeroconf_parse_subtypes(&qxt_d(), serviceType.toUtf8()); }
/*! * Constructs a QxtDiscoverableService object using the specified service type. * * The service type may be a plain type name or it may be provided in the standard format * specified by the Zeroconf specification. * * The service name will be automatically generated based on the system's hostname. */ QxtDiscoverableService::QxtDiscoverableService(const QString& serviceType, QObject* parent) : QObject(parent), QxtDiscoverableServiceName(QString(), serviceType, QString()) { QXT_INIT_PRIVATE(QxtDiscoverableService); qxt_zeroconf_parse_subtypes(&qxt_d(), serviceType.toUtf8()); }