equal
deleted
inserted
replaced
56 QContactPhoneNumber::FieldNumber); |
56 QContactPhoneNumber::FieldNumber); |
57 |
57 |
58 phoneFilter.setValue(address); |
58 phoneFilter.setValue(address); |
59 phoneFilter.setMatchFlags(QContactFilter::MatchEndsWith); |
59 phoneFilter.setMatchFlags(QContactFilter::MatchEndsWith); |
60 |
60 |
61 QList<QContactSortOrder> sortOrder; |
61 QList<QContact> matchingContacts = mPhonebookManager->contacts(phoneFilter); |
62 QList<QContact> matchingContacts = mPhonebookManager->contacts( |
|
63 phoneFilter, |
|
64 sortOrder, |
|
65 QStringList()); |
|
66 |
62 |
67 if ( matchingContacts.count() > 0 ) { |
63 if ( matchingContacts.count() > 0 ) { |
68 QContact match = matchingContacts.at(0); |
64 QContact match = matchingContacts.at(0); |
69 // Fill the contact details |
65 // Fill the contact details |
70 contactDetail.contactId = match.localId(); |
66 contactDetail.contactId = match.localId(); |