ContactList CsvXXPort::importContacts() const { ContactList contactList; QPointer<CSVImportDialog> dlg = new CSVImportDialog(parentWidget()); if (dlg->exec() && dlg) { contactList.setAddressList(dlg->contacts()); } delete dlg; return contactList; }
ContactList LDAPXXPort::importContacts() const { ContactList contactList; QPointer<KLDAP::LdapSearchDialog> dlg = new KLDAP::LdapSearchDialog(parentWidget()); if (dlg->exec() && dlg) { contactList.setAddressList(dlg->selectedContacts()); } delete dlg; return contactList; }