messagingapp/msgappfw/server/src/ccscontactsresolver.cpp
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    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();