diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-03-28 13:40:14 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-03-28 13:40:43 (GMT) |
commit | b61486fefe602e0d18fa5279021006f87b965307 (patch) | |
tree | 437585cbef1179e1ec31f79789591d5610200c29 /Swiften/LinkLocal/LinkLocalServiceInfo.h | |
parent | dae28dd45e43fc6e6ef2ec4c6c65d5d736ed86f8 (diff) | |
download | swift-b61486fefe602e0d18fa5279021006f87b965307.zip swift-b61486fefe602e0d18fa5279021006f87b965307.tar.bz2 |
Moved Swiften to a separate module.
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalServiceInfo.h')
m--------- | Swiften | 0 | ||||
-rw-r--r-- | Swiften/LinkLocal/LinkLocalServiceInfo.h | 59 |
2 files changed, 0 insertions, 59 deletions
diff --git a/Swiften b/Swiften new file mode 160000 +Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c diff --git a/Swiften/LinkLocal/LinkLocalServiceInfo.h b/Swiften/LinkLocal/LinkLocalServiceInfo.h deleted file mode 100644 index d78b70c..0000000 --- a/Swiften/LinkLocal/LinkLocalServiceInfo.h +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once - -#include <boost/optional.hpp> - -#include "Swiften/Base/ByteArray.h" -#include "Swiften/Base/String.h" -#include "Swiften/JID/JID.h" - -namespace Swift { - - class LinkLocalServiceInfo { - public: - enum Status { Available, Away, DND }; - - LinkLocalServiceInfo() : status(Available) {} - - const String& getFirstName() const { return firstName; } - void setFirstName(const String& f) { firstName = f; } - - const String& getLastName() const { return lastName; } - void setLastName(const String& l) { lastName = l; } - - const String& getEMail() const { return email; } - void setEMail(const String& e) { email = e; } - - const JID& getJID() const { return jid; } - void setJID(const JID& j) { jid = j; } - - const String& getMessage() const { return message; } - void setMessage(const String& m) { message = m; } - - const String& getNick() const { return nick; } - void setNick(const String& n) { nick = n; } - - Status getStatus() const { return status; } - void setStatus(Status s) { status = s; } - - boost::optional<int> getPort() const { return port; } - void setPort(int p) { port = p; } - - ByteArray toTXTRecord() const; - - static LinkLocalServiceInfo createFromTXTRecord(const ByteArray& record); - - private: - static ByteArray getEncoded(const String&); - static std::pair<String,String> readEntry(const ByteArray&, size_t*); - - private: - String firstName; - String lastName; - String email; - JID jid; - String message; - String nick; - Status status; - boost::optional<int> port; - }; -} |