diff options
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalRoster.h')
-rw-r--r-- | Swiften/LinkLocal/LinkLocalRoster.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Swiften/LinkLocal/LinkLocalRoster.h b/Swiften/LinkLocal/LinkLocalRoster.h index 3cc8d55..321bd96 100644 --- a/Swiften/LinkLocal/LinkLocalRoster.h +++ b/Swiften/LinkLocal/LinkLocalRoster.h @@ -1,20 +1,24 @@ #pragma once #include <boost/shared_ptr.hpp> +#include <boost/optional.hpp> #include "Swiften/LinkLocal/DNSSDService.h" namespace Swift { + class HostAddress; + class LinkLocalRoster { public: LinkLocalRoster(boost::shared_ptr<DNSSDService> service); private: + void handleStopped(bool); + void handleServiceRegistered(const DNSSDService::Service& service); void handleServiceAdded(const DNSSDService::Service&); void handleServiceRemoved(const DNSSDService::Service&); void handleServiceResolved(const DNSSDService::Service& service, const DNSSDService::ResolveResult& result); - void handleDNSSDError(); - void handleServiceRegistered(const DNSSDService::Service& service); + void handleHostnameResolved(const String& hostname, const boost::optional<HostAddress>& address); private: boost::shared_ptr<DNSSDService> dnsSDService; |