Fixes: NB#175259 - QContactPhoneNumber::match returns all contacts if there are no...
authorMathias Hasselmann <mathias@openismus.com>
Thu, 17 Jun 2010 07:44:59 +0000 (09:44 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Thu, 17 Jun 2010 07:55:49 +0000 (09:55 +0200)
commit824a29e617441144d594e9f8bf7823d3b2b08fe3
treea40bd2669d960c773c98b42e39631c726f2c356e
parente6815e8981196cf266179d35dc09f1670a0ce4f6
Fixes: NB#175259 - QContactPhoneNumber::match returns all contacts if there are no matches

Bug: NB#175259
RevBy: TrustMe
Details:

 * src/engine/contactfetchrequest.cpp: localIdsAvailable():
   Emit empty result when no matching local Id was found, instead of running
   buildAndRunQuery() which then would build a fetch-all query.

 * tests/ut_qtcontacts_common/ut_qtcontacts_common.cpp: validateContact():
   Skip QContactDetail::FieldDetailUri in validation.

 * tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp: testMatchPhoneNumber():
 * tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h: testMatchPhoneNumber():
   Add unit test for this bug.
src/engine/contactfetchrequest.cpp
tests/ut_qtcontacts_common/ut_qtcontacts_common.cpp
tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.cpp
tests/ut_qtcontacts_fetch/ut_qtcontacts_fetch.h