29 #ifndef BONJOURSERVICEBROWSER_H 30 #define BONJOURSERVICEBROWSER_H 32 #include <QtCore/QObject> 33 #ifndef PLATFORM_AMLOGIC 36 #include <avahi-compat-libdns_sd/dns_sd.h> 38 #include "bonjour/bonjourrecord.h" 41 class QSocketNotifier;
48 void browseForServiceType(
const QString &serviceType);
49 inline QList<BonjourRecord> currentRecords()
const {
return bonjourRecords; }
50 inline QString serviceType()
const {
return browsingType; }
53 void currentBonjourRecordsChanged(
const QList<BonjourRecord> &list);
54 void error(DNSServiceErrorType err);
57 void bonjourSocketReadyRead();
60 static void DNSSD_API bonjourBrowseReply(DNSServiceRef , DNSServiceFlags flags, quint32,
61 DNSServiceErrorType errorCode,
const char *serviceName,
62 const char *regType,
const char *replyDomain,
void *context);
63 DNSServiceRef dnssref;
64 QSocketNotifier *bonjourSocket;
65 QList<BonjourRecord> bonjourRecords;
69 #endif // BONJOURSERVICEBROWSER_H Definition: bonjourservicebrowser.h:42