summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-22 19:28:48 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-22 21:40:20 (GMT)
commit15103cc6eb3dd62c0e84c68bb08995247c653094 (patch)
tree2948d38f076874c10dbb029c8ad1328b9afdffd3 /Swiften/LinkLocal/LinkLocalRoster.h
parentc4660f404c9a0dbf1c00a20baacfc738d93eaff5 (diff)
downloadswift-15103cc6eb3dd62c0e84c68bb08995247c653094.zip
swift-15103cc6eb3dd62c0e84c68bb08995247c653094.tar.bz2
Introduce LinkLocalServiceID to identify Link-Local services.
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalRoster.h')
-rw-r--r--Swiften/LinkLocal/LinkLocalRoster.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/Swiften/LinkLocal/LinkLocalRoster.h b/Swiften/LinkLocal/LinkLocalRoster.h
index c18d8fc..128e39d 100644
--- a/Swiften/LinkLocal/LinkLocalRoster.h
+++ b/Swiften/LinkLocal/LinkLocalRoster.h
@@ -28,21 +28,21 @@ namespace Swift {
int getPort(const JID&) const;
private:
- RosterItemPayload getRosterItem(const DNSSDService::Service& service, const DNSSDService::ResolveResult& info) const;
- String getRosterName(const DNSSDService::Service& service, const DNSSDService::ResolveResult& info) const;
- JID getJIDForService(const DNSSDService::Service& service) const;
- boost::shared_ptr<Presence> getPresence(const DNSSDService::Service& service, const DNSSDService::ResolveResult& info) const;
+ RosterItemPayload getRosterItem(const LinkLocalServiceID& service, const DNSSDService::ResolveResult& info) const;
+ String getRosterName(const LinkLocalServiceID& service, const DNSSDService::ResolveResult& info) const;
+ JID getJIDForService(const LinkLocalServiceID& service) const;
+ boost::shared_ptr<Presence> getPresence(const LinkLocalServiceID& service, const DNSSDService::ResolveResult& info) const;
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 handleServiceRegistered(const LinkLocalServiceID& service);
+ void handleServiceAdded(const LinkLocalServiceID&);
+ void handleServiceRemoved(const LinkLocalServiceID&);
+ void handleServiceResolved(const LinkLocalServiceID& service, const DNSSDService::ResolveResult& result);
private:
boost::shared_ptr<DNSSDService> dnsSDService;
- boost::optional<DNSSDService::Service> selfService;
- typedef std::map<DNSSDService::Service, DNSSDService::ResolveResult> ServiceMap;
+ boost::optional<LinkLocalServiceID> selfService;
+ typedef std::map<LinkLocalServiceID, DNSSDService::ResolveResult> ServiceMap;
ServiceMap services;
};
}