Exemple #1
0
ContactList CsvXXPort::importContacts() const
{
    ContactList contactList;
    QPointer<CSVImportDialog> dlg = new CSVImportDialog(parentWidget());
    if (dlg->exec() && dlg) {
        contactList.setAddressList(dlg->contacts());
    }

    delete dlg;
    return contactList;
}
Exemple #2
0
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;
}