qtcontacts-tracker:qtcontacts-tracker.git
8 years agoChanges: Added saving of maemo:localPhoneNumber property to QTrackerContactSaveReques...
Tomi Lammi [Sun, 2 May 2010 12:43:23 +0000 (15:43 +0300)]
Changes: Added saving of maemo:localPhoneNumber property to QTrackerContactSaveRequest::savePhoneNumbers().
Details: Still WIP as there are no test cases.

RevBy: People-Review

8 years agoFix saving/reading/unit tests for address (pobox was not saved)
astojilj [Sun, 2 May 2010 10:23:05 +0000 (13:23 +0300)]
Fix saving/reading/unit tests for address (pobox was not saved)

- active config: export QT_CONTACTS_TRACKER='query-builder=fetch;debug=queries,models'

8 years agoFix env variable parsing
astojilj [Sun, 2 May 2010 10:10:02 +0000 (13:10 +0300)]
Fix env variable parsing

8 years agoFixed Avatar saving/reading/testing in querybuilder approach
astojilj [Sun, 2 May 2010 07:56:49 +0000 (10:56 +0300)]
Fixed Avatar saving/reading/testing in querybuilder approach

- nco:photo URI is pointing to URI
- updated ut_qtcontacts_trackerplugin tests for avatar (22 pass, 7 fail)
- updates ut_qtcontacts_trackerplugin_querybuilder tests for avatar (all pass)

8 years agoUse localId as nco:contactUID during transition to nco::contactLocalUID
astojilj [Sat, 1 May 2010 20:10:09 +0000 (23:10 +0300)]
Use localId as nco:contactUID during transition to nco::contactLocalUID

- Use localId as nco:contactUID during transition to nco::contactLocalUID
- testSavePhoneNumber() unit test fixed in ut_qtcontacts_trackerplugin

8 years agoReally create new contacts at 1..4 in testSaveRequestCreate()
Mathias Hasselmann [Sat, 1 May 2010 08:16:01 +0000 (10:16 +0200)]
Really create new contacts at 1..4 in testSaveRequestCreate()

8 years agoSet nco:contactLocalUID when saving.
Mathias Hasselmann [Sat, 1 May 2010 08:14:17 +0000 (10:14 +0200)]
Set nco:contactLocalUID when saving.

8 years agoSet NoError in QContactTrackerEngine::detailDefinition()
Mathias Hasselmann [Sat, 1 May 2010 00:38:45 +0000 (02:38 +0200)]
Set NoError in QContactTrackerEngine::detailDefinition()

8 years agoUpdate testSavePhoneNumber() for new requests
Mathias Hasselmann [Sat, 1 May 2010 00:04:03 +0000 (02:04 +0200)]
Update testSavePhoneNumber() for new requests

IMPORTANT NOTE: The test now assumes that user formatted phone numbers are
stored in nco:phoneNumber. This part must be reverted only normalized phone
numbers shall be stored there, which would be relatively pointless IMHO as we
have the content URL and maemo:localPhoneNumber.

8 years agoUse fetch request to verify filter queries.
Mathias Hasselmann [Sat, 1 May 2010 00:02:44 +0000 (02:02 +0200)]
Use fetch request to verify filter queries.

Must use the fetch request to verify filter queries as the contact context is
important for binding a filter.

8 years agoProperly bind localId filter.
Mathias Hasselmann [Sat, 1 May 2010 00:00:54 +0000 (02:00 +0200)]
Properly bind localId filter.

Distinguish between contact in root context and contact in home context when
binding filters.

8 years agoPermit modification of shared properties.
Mathias Hasselmann [Fri, 30 Apr 2010 23:40:54 +0000 (01:40 +0200)]
Permit modification of shared properties.

Delete old value before updating values of shared properties like
nco:emailAddress or nco:phoneNumber.

8 years agoRemove workaround for NB#163508.
Mathias Hasselmann [Fri, 30 Apr 2010 22:54:09 +0000 (00:54 +0200)]
Remove workaround for NB#163508.

8 years agoUpdate for latest QtTracker.
Mathias Hasselmann [Fri, 30 Apr 2010 22:46:16 +0000 (00:46 +0200)]
Update for latest QtTracker.

Replace varPattern() with pattern() and update the regular expression for
finding unbound variables.

8 years agoPrevent contact schema being rebuilt too often.
Mathias Hasselmann [Fri, 30 Apr 2010 22:40:37 +0000 (00:40 +0200)]
Prevent contact schema being rebuilt too often.

Make QTrackerContactDetailSchema copyable to prevent it getting rebuilt when
copying the engine.

8 years agoPrevent parameters from getting shadowed.
Mathias Hasselmann [Fri, 30 Apr 2010 22:35:05 +0000 (00:35 +0200)]
Prevent parameters from getting shadowed.

Merge both explicitly passed parameters and engine param from environment into
m_parameters variable to make the engine return the really used parameters when
asked, and more importantly to prevent explicitly passed parameters being
shadowed by environment parameters.

8 years agoCheck that contactImpl() returns only one contact.
Mathias Hasselmann [Fri, 30 Apr 2010 22:37:17 +0000 (00:37 +0200)]
Check that contactImpl() returns only one contact.

8 years agoChanges: Removed deref() and clone() methods, which are no longer
Johannes Hayry [Fri, 30 Apr 2010 10:35:42 +0000 (13:35 +0300)]
Changes: Removed deref() and clone() methods, which are no longer
defined in qcontactmanagerengine api.

8 years agoChanges : Fix Warning "com.nokia.qt.mobility.contacts.implementation.version - Unknow...
Siraj Razick [Fri, 30 Apr 2010 16:02:04 +0000 (21:32 +0530)]
Changes : Fix Warning "com.nokia.qt.mobility.contacts.implementation.version - Unknown parameter"
RevBy : people-review

8 years agoGet RDF class hierarchy from tracker
Mathias Hasselmann [Fri, 30 Apr 2010 08:20:41 +0000 (10:20 +0200)]
Get RDF class hierarchy from tracker

The save request needs to know the RDF class hierarchy for properly storing
subtypes. This information ideally is fetched from tracker.

8 years agoShow save request query when requested
Mathias Hasselmann [Fri, 30 Apr 2010 07:51:16 +0000 (09:51 +0200)]
Show save request query when requested

8 years agoMake relationship request work with new requests.
Mathias Hasselmann [Thu, 29 Apr 2010 20:48:37 +0000 (22:48 +0200)]
Make relationship request work with new requests.

Use contact IRI instead of nco:contactUID to lookup localID when dealing with
new requests. This must be changed again, when tracker and libqtracker with
support for nco:contactLocalId are released.

8 years agoReally fix saving of URL values.
Mathias Hasselmann [Thu, 29 Apr 2010 20:47:11 +0000 (22:47 +0200)]
Really fix saving of URL values.

Commit 45f77a3c4f9dcebc59aecb716a7e0937c868ec62 was bogus: URLs must stay URLs
when saved. They just must be inserted as QUrl, not as LiteralValue.

8 years agoMake tracker engine less verbose.
Mathias Hasselmann [Thu, 29 Apr 2010 19:41:08 +0000 (21:41 +0200)]
Make tracker engine less verbose.

Avoid debug spam by considering the engine's debug flags.

8 years agoGive requests access on engine debug flags.
Mathias Hasselmann [Thu, 29 Apr 2010 19:39:46 +0000 (21:39 +0200)]
Give requests access on engine debug flags.

Introduce QContactTrackerEngine::DebugFlags update the code to use them.

8 years agoPermit storing field types not supported by QtTracker.
Mathias Hasselmann [Thu, 29 Apr 2010 13:21:49 +0000 (15:21 +0200)]
Permit storing field types not supported by QtTracker.

Convert unsupported field types like QUrl to string before making
them a LiteralValue.

8 years agoHandle fetch request without base query.
Mathias Hasselmann [Thu, 29 Apr 2010 13:20:33 +0000 (15:20 +0200)]
Handle fetch request without base query.

Don't assume there will be the base query at mQueries[0]. This won't be the
case if the fetch hint only contains fields which require a separate query.

8 years agoMove subtype assertion to proper place.
Mathias Hasselmann [Thu, 29 Apr 2010 13:18:19 +0000 (15:18 +0200)]
Move subtype assertion to proper place.

Only can check type of subtype field after assigning
default value to empty fields.

8 years agoParse environment variable only once.
Mathias Hasselmann [Thu, 29 Apr 2010 12:08:23 +0000 (14:08 +0200)]
Parse environment variable only once.

Also rename QTM_TRACKER_DEBUG to QT_CONTACTS_TRACKER.

8 years agoIntroduce environment variable for engine parameters.
Mathias Hasselmann [Thu, 29 Apr 2010 11:12:16 +0000 (13:12 +0200)]
Introduce environment variable for engine parameters.

Introdce QTM_TRACKER_DEBUG for setting engine parameters:
QTM_TRACKER_DEBUG='query-builder=fetch,save;debug=queries,models'

RevBy: people

8 years agoUse common contact engine in querybuilder tests.
Mathias Hasselmann [Thu, 29 Apr 2010 11:11:00 +0000 (13:11 +0200)]
Use common contact engine in querybuilder tests.

Make ut_qtcontacts_trackerplugin_querybuilder a subclass of
ut_qtcontacts_common to make use of its contact engine facilities.

8 years agoRename QContactTrackerEngine::detailSchema()
Mathias Hasselmann [Thu, 29 Apr 2010 10:40:09 +0000 (12:40 +0200)]
Rename QContactTrackerEngine::detailSchema()

RevBy: people

8 years agoAlmost entirely remove QContactManager usage.
Mathias Hasselmann [Thu, 29 Apr 2010 08:17:04 +0000 (10:17 +0200)]
Almost entirely remove QContactManager usage.

Remove QContactManager from all tests but ut_qtcontacts_add_async.
This last test also should be updated.

RevBy: people

8 years agoUpdate more reference data for display label fix.
Mathias Hasselmann [Thu, 29 Apr 2010 11:40:23 +0000 (13:40 +0200)]
Update more reference data for display label fix.

8 years agoUpdate reference data for display label fix.
Mathias Hasselmann [Thu, 29 Apr 2010 11:24:21 +0000 (13:24 +0200)]
Update reference data for display label fix.

8 years agoChanges: ContactDetailsScheme: Initialize a member variable.
Murray Cumming [Thu, 29 Apr 2010 09:13:11 +0000 (11:13 +0200)]
Changes: ContactDetailsScheme: Initialize a member variable.

Details:
* src/dao/contactdetailschema.cpp: Constructor: Initialize
mWriteBackPresence to avoid a valgrind warning, though it is not
clear if this (undocumented) member variable, or setWriteBackPresence()
have any effect anyway.

8 years agoChanges: prepare for harmattan/4.5.7-1 harmattan/4.5.7-1
Nathan Letwory [Thu, 29 Apr 2010 09:29:00 +0000 (12:29 +0300)]
Changes: prepare for harmattan/4.5.7-1
RevBy: TrustMe

8 years agoFix asserting with tracker 0.9 - no results received from tracker when result set...
Aleksandar Stojiljkovic [Thu, 29 Apr 2010 08:04:50 +0000 (11:04 +0300)]
Fix asserting with tracker 0.9 - no results received from tracker when result set is empty

8 years agoChanges : switch to the new setContactDisplayLabel
Siraj Razick [Thu, 29 Apr 2010 07:57:11 +0000 (13:27 +0530)]
Changes : switch to the new setContactDisplayLabel
RevBy:  : people

8 years agoImplement changelog filter.
Mathias Hasselmann [Wed, 28 Apr 2010 11:59:54 +0000 (13:59 +0200)]
Implement changelog filter.

* src/dao/querybuilder.cpp:
* src/dao/querybuilder.h: tagLabel(), bindFilter():
  Add the filter function and also add a function of conveniently reusing
  the tag label property.

* tests/ut_qtcontacts_trackerplugin_querybuilder/ut_qtcontacts_trackerplugin_querybuilder.cpp:
* tests/ut_qtcontacts_trackerplugin_querybuilder/ut_qtcontacts_trackerplugin_querybuilder.h:
* tests/ut_qtcontacts_trackerplugin_querybuilder/ut_qtcontacts_trackerplugin_querybuilder.pro:
* tests/ut_qtcontacts_trackerplugin_querybuilder/data/305-testChangeLogFilter.rq:
  Add unit tests for the changelog filter.

8 years agoChanges : Make Display Lables work
Siraj Razick [Wed, 28 Apr 2010 17:25:43 +0000 (22:55 +0530)]
Changes : Make Display Lables work
RevBy : people-devel

8 years agoCorrecly interpret writeBackPresence property
Mathias Hasselmann [Wed, 28 Apr 2010 09:48:39 +0000 (11:48 +0200)]
Correcly interpret writeBackPresence property

8 years agoPermit writeback of presence details.
Mathias Hasselmann [Wed, 28 Apr 2010 09:39:15 +0000 (11:39 +0200)]
Permit writeback of presence details.

This commit enables writeback for presence properties. Pass "presence" for the
contact engine's "writeback" parameter to enable that feature.

* src/dao/contactdetailschema.h:
* src/dao/contactdetailschema.cpp: Introduce writeBackPresence property.
* src/engine/engine.cpp: parseParameters(): Introduce writeback parameter.

8 years agoStore detail schema in engine instead of using singleton pattern
Mathias Hasselmann [Tue, 27 Apr 2010 22:25:19 +0000 (00:25 +0200)]
Store detail schema in engine instead of using singleton pattern

8 years agoReference QContactTrackerEngine in new requests
Mathias Hasselmann [Tue, 27 Apr 2010 21:51:31 +0000 (23:51 +0200)]
Reference QContactTrackerEngine in new requests

8 years agoFix QtMobility include directives
Mathias Hasselmann [Tue, 27 Apr 2010 21:42:25 +0000 (23:42 +0200)]
Fix QtMobility include directives

8 years agoMerge requests and engine module again
Mathias Hasselmann [Tue, 27 Apr 2010 21:34:50 +0000 (23:34 +0200)]
Merge requests and engine module again

8 years agoMove plugin code into separate folder
Mathias Hasselmann [Tue, 27 Apr 2010 21:21:04 +0000 (23:21 +0200)]
Move plugin code into separate folder

8 years agoChanges: mergeContacts(): Add an assert, which is slightly better than crashing.
Murray Cumming [Tue, 20 Apr 2010 11:17:49 +0000 (13:17 +0200)]
Changes: mergeContacts(): Add an assert, which is slightly better than crashing.

* src/requests/relationshipsaverequest.cpp: mergeContacts(): Give an assert
clue instead of just crashing when dereferencing the null smartpointer.
I notice this after 2 merges of the same contact.

8 years agoActually bind filters on unique details
Mathias Hasselmann [Tue, 27 Apr 2010 12:58:26 +0000 (14:58 +0200)]
Actually bind filters on unique details

8 years agoMake localId filter more tolerant
Mathias Hasselmann [Tue, 27 Apr 2010 12:29:56 +0000 (14:29 +0200)]
Make localId filter more tolerant

8 years agoImplement range filter
Mathias Hasselmann [Tue, 27 Apr 2010 12:29:42 +0000 (14:29 +0200)]
Implement range filter

8 years agoPrint warning for unsupported match flags
Mathias Hasselmann [Tue, 27 Apr 2010 07:10:19 +0000 (09:10 +0200)]
Print warning for unsupported match flags

8 years agoMark detail filter as supported
Mathias Hasselmann [Tue, 27 Apr 2010 07:04:44 +0000 (09:04 +0200)]
Mark detail filter as supported

8 years agoRemove QTrackerContactQueryBuilder::bindFilter(filter, subject)
Mathias Hasselmann [Tue, 27 Apr 2010 07:03:16 +0000 (09:03 +0200)]
Remove QTrackerContactQueryBuilder::bindFilter(filter, subject)

8 years agoAdd initial implementation of the detail filter
Mathias Hasselmann [Mon, 26 Apr 2010 23:24:58 +0000 (01:24 +0200)]
Add initial implementation of the detail filter

8 years agoAppend query at proper place
Mathias Hasselmann [Mon, 26 Apr 2010 23:23:15 +0000 (01:23 +0200)]
Append query at proper place

8 years agoAdd fn: prefix
Mathias Hasselmann [Mon, 26 Apr 2010 23:20:59 +0000 (01:20 +0200)]
Add fn: prefix

8 years agoMove FilterFactory into QueryBuilder
Mathias Hasselmann [Mon, 26 Apr 2010 12:11:05 +0000 (14:11 +0200)]
Move FilterFactory into QueryBuilder

8 years agoRemove debug message
Mathias Hasselmann [Mon, 26 Apr 2010 12:01:24 +0000 (14:01 +0200)]
Remove debug message

8 years agoExtract the query builder
Mathias Hasselmann [Mon, 26 Apr 2010 11:22:42 +0000 (13:22 +0200)]
Extract the query builder

8 years agoAdd some assertions to the fetch request
Mathias Hasselmann [Mon, 26 Apr 2010 11:21:11 +0000 (13:21 +0200)]
Add some assertions to the fetch request

8 years agoUse first() instead of at(0)
Mathias Hasselmann [Mon, 26 Apr 2010 09:22:29 +0000 (11:22 +0200)]
Use first() instead of at(0)

8 years agoMake QTrackerContactFilterFactory a proper object
Mathias Hasselmann [Mon, 26 Apr 2010 08:56:42 +0000 (10:56 +0200)]
Make QTrackerContactFilterFactory a proper object

8 years agoPrefer RDFVariableList over QList<RDFVariable>
Mathias Hasselmann [Mon, 26 Apr 2010 07:47:26 +0000 (09:47 +0200)]
Prefer RDFVariableList over QList<RDFVariable>

8 years agoFix lastModified timestamp in reference data
Mathias Hasselmann [Fri, 23 Apr 2010 21:45:12 +0000 (23:45 +0200)]
Fix lastModified timestamp in reference data

8 years agoFix segfault in QTrackerContactEngine
Mathias Hasselmann [Fri, 23 Apr 2010 21:44:52 +0000 (23:44 +0200)]
Fix segfault in QTrackerContactEngine

8 years agoCreate one signal function to create the engine
Mathias Hasselmann [Fri, 23 Apr 2010 21:34:54 +0000 (23:34 +0200)]
Create one signal function to create the engine

8 years agoFix build error
Mathias Hasselmann [Fri, 23 Apr 2010 21:34:36 +0000 (23:34 +0200)]
Fix build error

8 years agoChanges : pass query_builder=all as param for the engine
Siraj Razick [Thu, 22 Apr 2010 10:41:33 +0000 (16:11 +0530)]
Changes : pass query_builder=all as param for the engine
revby : people

8 years agoChanges : remove mock engine from query builder test case
Siraj Razick [Thu, 22 Apr 2010 09:55:48 +0000 (15:25 +0530)]
Changes : remove mock engine from query builder test case
RevBy : people

8 years agoPut more effort into cleansing the Database before loading test data
Mathias Hasselmann [Fri, 23 Apr 2010 21:08:28 +0000 (23:08 +0200)]
Put more effort into cleansing the Database before loading test data

8 years agoDelete nie::contentLastModified before saving
Mathias Hasselmann [Fri, 23 Apr 2010 21:06:39 +0000 (23:06 +0200)]
Delete nie::contentLastModified before saving

8 years agoReally create detail URI
Mathias Hasselmann [Fri, 23 Apr 2010 21:06:08 +0000 (23:06 +0200)]
Really create detail URI

8 years agoUse proper path to reference libengine.a
Mathias Hasselmann [Fri, 23 Apr 2010 20:09:39 +0000 (22:09 +0200)]
Use proper path to reference libengine.a

8 years agoProcess trackerresources.xml when running qmake again
Mathias Hasselmann [Fri, 23 Apr 2010 20:09:16 +0000 (22:09 +0200)]
Process trackerresources.xml when running qmake again

8 years agoMake sure trackerresources.xml can be found out of tree
Mathias Hasselmann [Fri, 23 Apr 2010 18:58:38 +0000 (20:58 +0200)]
Make sure trackerresources.xml can be found out of tree

8 years agoDefine OnlineAccount and Presence detail mapping
Mathias Hasselmann [Fri, 23 Apr 2010 13:53:56 +0000 (15:53 +0200)]
Define OnlineAccount and Presence detail mapping

8 years agoRename detail schema test
Mathias Hasselmann [Fri, 23 Apr 2010 13:53:11 +0000 (15:53 +0200)]
Rename detail schema test

8 years agoAdd support for linkedDetailUris
Mathias Hasselmann [Fri, 23 Apr 2010 09:13:10 +0000 (11:13 +0200)]
Add support for linkedDetailUris

8 years agoRemove pointless transaction from QTrackerContactFetchRequest2
Mathias Hasselmann [Fri, 23 Apr 2010 09:13:37 +0000 (11:13 +0200)]
Remove pointless transaction from QTrackerContactFetchRequest2

8 years agoAdd support for telepathy: IRIs
Mathias Hasselmann [Fri, 23 Apr 2010 08:54:31 +0000 (10:54 +0200)]
Add support for telepathy: IRIs

8 years agoAdd support for inverse RDF properties
Mathias Hasselmann [Thu, 22 Apr 2010 14:36:33 +0000 (16:36 +0200)]
Add support for inverse RDF properties

8 years agoAdd support for optional RDF properties
Mathias Hasselmann [Thu, 22 Apr 2010 14:06:46 +0000 (16:06 +0200)]
Add support for optional RDF properties

8 years agoPermit numeric resource instances
Mathias Hasselmann [Thu, 22 Apr 2010 10:33:54 +0000 (12:33 +0200)]
Permit numeric resource instances

8 years agoUse makeContactIri() at more places
Mathias Hasselmann [Thu, 22 Apr 2010 10:31:48 +0000 (12:31 +0200)]
Use makeContactIri() at more places

8 years agoAdd support for telepathy: IRIs
Mathias Hasselmann [Thu, 22 Apr 2010 10:30:38 +0000 (12:30 +0200)]
Add support for telepathy: IRIs

8 years agoCreate libut_qtcontacts_common.a to reduce build time
Mathias Hasselmann [Thu, 22 Apr 2010 09:32:23 +0000 (11:32 +0200)]
Create libut_qtcontacts_common.a to reduce build time

8 years agoCleanup engine build system
Mathias Hasselmann [Thu, 22 Apr 2010 09:32:04 +0000 (11:32 +0200)]
Cleanup engine build system

8 years agoRemove tools/tools.pro
Mathias Hasselmann [Thu, 22 Apr 2010 09:12:30 +0000 (11:12 +0200)]
Remove tools/tools.pro

8 years agoCreate libengine.a to reduce build time
Mathias Hasselmann [Thu, 22 Apr 2010 09:07:51 +0000 (11:07 +0200)]
Create libengine.a to reduce build time

8 years agoAdd plugin keyword to CONFIG variable
Mathias Hasselmann [Thu, 22 Apr 2010 09:07:24 +0000 (11:07 +0200)]
Add plugin keyword to CONFIG variable

8 years agoAdd more sophisticated tests for union and intersection filters
Mathias Hasselmann [Wed, 21 Apr 2010 21:21:10 +0000 (23:21 +0200)]
Add more sophisticated tests for union and intersection filters

8 years agoFix qmake includes
Mathias Hasselmann [Wed, 21 Apr 2010 20:58:28 +0000 (22:58 +0200)]
Fix qmake includes

8 years agoImplement union and intersection filter
Mathias Hasselmann [Wed, 21 Apr 2010 20:58:08 +0000 (22:58 +0200)]
Implement union and intersection filter

8 years agoChanges : Use Engine directly instead of contact manager
Siraj Razick [Wed, 21 Apr 2010 16:52:41 +0000 (22:22 +0530)]
Changes : Use Engine directly instead of contact manager
RevBy :

8 years agoAlso test fetching with localContactId filter
Mathias Hasselmann [Wed, 21 Apr 2010 19:57:09 +0000 (21:57 +0200)]
Also test fetching with localContactId filter

8 years agoConsider detailDefinitionsHint()
Mathias Hasselmann [Wed, 21 Apr 2010 20:17:24 +0000 (22:17 +0200)]
Consider detailDefinitionsHint()

8 years agoTest query generated by localContactId filter
Mathias Hasselmann [Wed, 21 Apr 2010 19:57:03 +0000 (21:57 +0200)]
Test query generated by localContactId filter

8 years agoImplement localId filter
Mathias Hasselmann [Wed, 21 Apr 2010 19:54:27 +0000 (21:54 +0200)]
Implement localId filter