diff options
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalService.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/LinkLocal/LinkLocalService.h | 46 |
2 files changed, 0 insertions, 46 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/LinkLocal/LinkLocalService.h b/Swiften/LinkLocal/LinkLocalService.h deleted file mode 100644 index 8ae593c..0000000 --- a/Swiften/LinkLocal/LinkLocalService.h +++ /dev/null @@ -1,46 +0,0 @@ -#pragma once - -#include "Swiften/Base/String.h" -#include "Swiften/JID/JID.h" -#include "Swiften/LinkLocal/DNSSD/DNSSDServiceID.h" -#include "Swiften/LinkLocal/DNSSD/DNSSDResolveServiceQuery.h" -#include "Swiften/LinkLocal/LinkLocalServiceInfo.h" - -namespace Swift { - class LinkLocalService { - public: - LinkLocalService( - const DNSSDServiceID& id, - const DNSSDResolveServiceQuery::Result& info) : - id(id), - info(info) {} - - const DNSSDServiceID& getID() const { - return id; - } - - const String& getName() const { - return id.getName(); - } - - int getPort() const { - return info.port; - } - - const String& getHostname() const { - return info.host; - } - - LinkLocalServiceInfo getInfo() const { - return LinkLocalServiceInfo::createFromTXTRecord(info.info); - } - - String getDescription() const; - - JID getJID() const; - - private: - DNSSDServiceID id; - DNSSDResolveServiceQuery::Result info; - }; -} |