void AddressTableModel::appendAddress(const t_address_card& card) { qDebug() << "Appending contact" << QString::fromStdString(card.get_display_name()); beginInsertRows(QModelIndex(), m_data.size(), m_data.size()); m_data << card; endInsertRows(); }
void AddressListViewItem::update(const t_address_card &card) { address_card = card; setText(COL_ADDR_NAME, card.get_display_name().c_str()); setText(COL_ADDR_PHONE, card.sip_address.c_str()); setText(COL_ADDR_REMARK, card.remark.c_str()); }
AddressListViewItem::AddressListViewItem(Q3ListView *parent, const t_address_card &card) : Q3ListViewItem(parent, card.get_display_name().c_str(), card.sip_address.c_str(), card.remark.c_str()), address_card(card) {}