diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-18 10:17:45 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-18 11:54:02 (GMT) |
commit | 7388443bda19877980e368a0654b55097db0bda7 (patch) | |
tree | c9ccbedfa94cecf4a6e2188e1cdb5420e3e97c3a /Swiften/LinkLocal/LinkLocalRoster.h | |
parent | 633c82407e47ec2ba7a92cef9c5b30a24a93fc68 (diff) | |
download | swift-contrib-7388443bda19877980e368a0654b55097db0bda7.zip swift-contrib-7388443bda19877980e368a0654b55097db0bda7.tar.bz2 |
Add DNS-SD hostname resolving.
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; |