JID class provides bare() and full() methods

This commit is contained in:
Florent Le Coz
2015-12-03 21:15:22 +01:00
parent 756b297045
commit 700a6c7bc3
2 changed files with 11 additions and 2 deletions
+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;