summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalService.h')
-rw-r--r--Swiften/LinkLocal/LinkLocalService.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/Swiften/LinkLocal/LinkLocalService.h b/Swiften/LinkLocal/LinkLocalService.h
new file mode 100644
index 0000000..446feb8
--- /dev/null
+++ b/Swiften/LinkLocal/LinkLocalService.h
@@ -0,0 +1,50 @@
+#pragma once
+
+#include "Swiften/Base/String.h"
+#include "Swiften/Network/HostAddress.h"
+#include "Swiften/LinkLocal/LinkLocalServiceInfo.h"
+
+namespace Swift {
+ class LinkLocalService {
+ public:
+ LinkLocalService();
+
+ const String& getName() const {
+ return name;
+ }
+
+ void setName(const String& n) {
+ name = n;
+ }
+
+ const String& getHostname() const {
+ return hostname;
+ }
+
+ void setHostname(const String& h) {
+ hostname = h;
+ }
+
+ const HostAddress& getAddress() const {
+ return address;
+ }
+
+ void setAddress(const HostAddress& a) {
+ address = a;
+ }
+
+ const LinkLocalServiceInfo& getInfo() const {
+ return info;
+ }
+
+ void setInfo(const LinkLocalServiceInfo& i) {
+ info = i;
+ }
+
+ private:
+ String name;
+ String hostname;
+ LinkLocalServiceInfo info;
+ HostAddress address;
+ };
+}