first primitive vcard in graphic interface

This commit is contained in:
Blue 2019-10-22 18:13:56 +03:00
parent c4d22c9c14
commit 2a37f36b83
13 changed files with 208 additions and 75 deletions

View file

@ -241,3 +241,12 @@ void Models::Account::setAvatarPath(const QString& path)
changed(8); //it's uncoditional because the path doesn't change when one avatar of the same type replaces another, sha1 sums checks are on the backend
}
QString Models::Account::getBareJid() const
{
return login + "@" + server;
}
QString Models::Account::getFullJid() const
{
return getBareJid() + "/" + resource;
}

View file

@ -64,6 +64,9 @@ namespace Models {
void update(const QString& field, const QVariant& value);
QString getBareJid() const;
QString getFullJid() const;
private:
QString login;
QString password;