JID class provides bare() and full() methods

This commit is contained in:
Florent Le Coz committed 2015-12-03 21:15:22 +01:00
1 parent 756b297045
commit 700a6c7bc3
2 files changed
+11 -2

No files matched your search

+9
View File
@@ -15,6 +15,15 @@ public:
std::string local;
std::string resource;
std::string bare() const
{
return this->local + "@" + this->domain;
}
std::string full() const
{
return this->local + "@" + this->domain + "/" + this->resource;
}
private:
Jid(const Jid&) = delete;
Jid(Jid&&) = delete;