Hush lite wallet
https://faq.hush.is/sdl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.1 KiB
66 lines
1.1 KiB
#include "ContactItem.h"
|
|
|
|
ContactItem::ContactItem() {}
|
|
|
|
ContactItem::ContactItem(QString name, QString partnerAddress, QString myAddress, QString cid, QString avatar)
|
|
{
|
|
_name = name;
|
|
_myAddress = myAddress;
|
|
_partnerAddress = partnerAddress;
|
|
_cid = cid;
|
|
_avatar = avatar;
|
|
}
|
|
|
|
QString ContactItem::getName() const
|
|
{
|
|
return _name;
|
|
}
|
|
|
|
QString ContactItem::getMyAddress() const
|
|
{
|
|
return _myAddress;
|
|
}
|
|
|
|
QString ContactItem::getPartnerAddress() const
|
|
{
|
|
return _partnerAddress;
|
|
}
|
|
|
|
QString ContactItem::getCid() const
|
|
{
|
|
return _cid;
|
|
}
|
|
|
|
QString ContactItem::getAvatar() const
|
|
{
|
|
return _avatar;
|
|
}
|
|
|
|
void ContactItem::setName(QString name)
|
|
{
|
|
_name = name;
|
|
}
|
|
|
|
void ContactItem::setMyAddress(QString myAddress)
|
|
{
|
|
_myAddress = myAddress;
|
|
}
|
|
|
|
void ContactItem::setPartnerAddress(QString partnerAddress)
|
|
{
|
|
_partnerAddress = partnerAddress;
|
|
}
|
|
|
|
void ContactItem::setcid(QString cid)
|
|
{
|
|
_cid = cid;
|
|
}
|
|
void ContactItem::setAvatar(QString avatar)
|
|
{
|
|
_avatar = avatar;
|
|
}
|
|
|
|
QString ContactItem::toQTString()
|
|
{
|
|
return _name + "|" + _partnerAddress + "|" + _myAddress + "|" + _cid + "|" + _avatar;
|
|
}
|