diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-22 21:36:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-22 21:40:21 (GMT) |
commit | 0a7336577f9609c70bb4d846c668e7853746cb52 (patch) | |
tree | 5a4b57f400da14190c12336db1333788183ad35c /Swiften/LinkLocal/LinkLocalService.h | |
parent | 15103cc6eb3dd62c0e84c68bb08995247c653094 (diff) | |
download | swift-contrib-0a7336577f9609c70bb4d846c668e7853746cb52.zip swift-contrib-0a7336577f9609c70bb4d846c668e7853746cb52.tar.bz2 |
Started LinkLocalServiceBrowser.
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalService.h')
-rw-r--r-- | Swiften/LinkLocal/LinkLocalService.h | 50 |
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; + }; +} |