create and add cid to Addressbook
This commit is contained in:
@@ -11,14 +11,16 @@ class ContactItem
|
||||
QString _myAddress;
|
||||
QString _partnerAddress;
|
||||
QString _name;
|
||||
QString _cid;
|
||||
|
||||
public:
|
||||
ContactItem();
|
||||
ContactItem(QString myAddress, QString partnerAddress, QString name)
|
||||
ContactItem(QString myAddress, QString partnerAddress, QString name, QString cid)
|
||||
{
|
||||
_myAddress = myAddress;
|
||||
_partnerAddress = partnerAddress;
|
||||
_name = name;
|
||||
_cid = cid;
|
||||
}
|
||||
|
||||
QString getName() const
|
||||
@@ -36,6 +38,11 @@ class ContactItem
|
||||
return _partnerAddress;
|
||||
}
|
||||
|
||||
QString getcid() const
|
||||
{
|
||||
return _cid;
|
||||
}
|
||||
|
||||
void setName(QString name)
|
||||
{
|
||||
_name = name;
|
||||
@@ -51,9 +58,14 @@ class ContactItem
|
||||
_partnerAddress = partnerAddress;
|
||||
}
|
||||
|
||||
void setcid(QString cid)
|
||||
{
|
||||
_cid = cid;
|
||||
}
|
||||
|
||||
QString toQTString()
|
||||
{
|
||||
return _name + "|" + _partnerAddress + "|" + _myAddress;
|
||||
return _name + "|" + _partnerAddress + "|" + _myAddress + "|" + _cid;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user