first primitive vcard in graphic interface
This commit is contained in:
parent
c4d22c9c14
commit
2a37f36b83
13 changed files with 208 additions and 75 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue