21 #ifndef DNSSDSERVICEBROWSER_H
22 #define DNSSDSERVICEBROWSER_H
26 #include <dnssd/remoteservice.h>
33 class ServiceBrowserPrivate;
75 enum State { Working, Stopped, Unsupported };
111 ServiceBrowser(
const TQString& type,
const TQString& domain,
int flags);
116 ServiceBrowser(
const TQString& type,
const TQString& domain,
bool autoResolve=
false);
123 const TQValueList<RemoteService::Ptr>& services()
const;
129 virtual void startBrowse();
172 static const State isAvailable();
202 void removeDomain(
const TQString& domain);
207 void addDomain(
const TQString& domain);
210 virtual void virtual_hook(
int,
void*);
212 ServiceBrowserPrivate *d;
216 TQValueList<RemoteService::Ptr>::Iterator findDuplicate(RemoteService::Ptr src);
218 void serviceResolved(
bool success);
219 void gotNewService(DNSSD::RemoteService::Ptr);
220 void gotRemoveService(DNSSD::RemoteService::Ptr);
221 void queryFinished();
Class used to provide current list of domains for browsing.
Most important class for applications that want to discover specific services on network.
void serviceAdded(DNSSD::RemoteService::Ptr)
Emitted when new service is discovered (or resolved if autoresolve is set.
void finished()
Emitted when all services has been reported.
void serviceRemoved(DNSSD::RemoteService::Ptr)
Emitted when service is no longer announced.
static const TQString AllServices
Special service type to search for all available service types.
State
Availability of DNS-SD services.