summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/LinkLocal/LinkLocalServiceInfo.h')
m---------Swiften0
-rw-r--r--Swiften/LinkLocal/LinkLocalServiceInfo.h59
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;
- };
-}