[OrganizerModel] Don't track the inactive filter

Change-Id: If36d05f4c2e729704f8d64cb2f9732dba61e48da
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
[OrganizerModel] Don't delete fetchHint we don't own

Do generally what we're doing for m_filter.

Change-Id: I12c54eae27b342b01cd16a6aea714664bde62694
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
[ContactModel] Make better use of shared filter and fetchHint

Change-Id: Icad104410c353bc70a1a9ea37386910d147750ac
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Export QDeclarativeContactInvalidFilter and QDeclarativeOrganizerItemInvalidFilter to QML.

This filter can be used to clear the contact/organizer model.

Change-Id: Ie4b831dd353556e9ab6816a7a708348fb10e9b27
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove the 'local' text from the IdFilter description

This change was missed in the conversion from QContactLocalIdFilter to
QContactIdFilter.

Change-Id: I8ad6e434e463b8996ddd5362c3bf8a0f20e3a916
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Remove dependency on jsondb for generic tests

The  tests for qcontactmanager and qcontactmanagerdetails do not
require jsondb.

Change-Id: Ib5d814fec7abc699b2664e51fba60ef6031bb149
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Fix the generic implementation of relationship filtering

Change-Id: I86de6318a5a09f28720662be364be3243baa5c77
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Make the qcontactmanagerfiltering test pass

Update to account for some QtContacts/QtPIM discrepancies. Also,
force the test to run in the C locale, so that locale-dependent
tests have consistent behavior.

Change-Id: Ibbb5c786088d88ace1cb5add4565783a9df4d6e2
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Correct expected results when using ICU

ICU produces different collation results than strcoll.

Change-Id: Ib0f87deefb5c2efe8ab57a895189788e86f1ebd1
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Decrease code duplication

Make isInactive(), isActive(), isCanceled(), and isFinished() a simple
convenience accessors to state(), like they ought to be.

Change-Id: Idd72ed7bda9041b8d58095f2813a78a012c4ce2e
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fixed memory leak on QDeclarativeContactModel private data.

Changed QDeclarativeContactModel private data from pointer to QScopedPointer.

Change-Id: I07d0aa0f40cc4a592e0f44bde81c8dca8a797f9e
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Avoid create a new contact engine model if the current one is equal.

Check for engine name and manager-uri before recreate the contact engine.

Change-Id: I933cc9e6d67f39e69d76f46cc92a9b7b5853707f
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>