equal
deleted
inserted
replaced
64 return; |
64 return; |
65 |
65 |
66 // Contacts are fetched starting from index 1, all slots are read |
66 // Contacts are fetched starting from index 1, all slots are read |
67 // since slots may be not filled in a sequence. |
67 // since slots may be not filled in a sequence. |
68 int index = 1; |
68 int index = 1; |
69 int numSlots = simStore()->storeInfo().iTotalEntries; |
69 int numSlots = simStore()->storeInfo().m_totalEntries; |
70 |
70 |
71 QContactManager::Error error = QContactManager::NoError; |
71 QContactManager::Error error = QContactManager::NoError; |
72 if (!simStore()->read(index, numSlots, &error)) { |
72 if (!simStore()->read(index, numSlots, &error)) { |
73 QContactManagerEngine::updateContactLocalIdFetchRequest(r, QList<QContactLocalId>(), error, QContactAbstractRequest::FinishedState); |
73 QContactManagerEngine::updateContactLocalIdFetchRequest(r, QList<QContactLocalId>(), error, QContactAbstractRequest::FinishedState); |
74 } |
74 } |
93 } |
93 } |
94 |
94 |
95 // Filter & sort results |
95 // Filter & sort results |
96 QList<QContact> filteredAndSorted; |
96 QList<QContact> filteredAndSorted; |
97 for (int i=0; i<contacts.count(); i++) { |
97 for (int i=0; i<contacts.count(); i++) { |
98 if (QContactManagerEngine::testFilter(r->filter(), contacts.at(i))) |
98 if (engine()->filter(r->filter(), contacts.at(i))) |
99 QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), r->sorting()); |
99 QContactManagerEngine::addSorted(&filteredAndSorted, contacts.at(i), r->sorting()); |
100 } |
100 } |
101 |
101 |
102 // Convert to QContactLocalId-list |
102 // Convert to QContactLocalId-list |
103 QList<QContactLocalId> filteredAndSortedIds; |
103 QList<QContactLocalId> filteredAndSortedIds; |