Changes: Create and update contacts in one step
authorMathias Hasselmann <mathias@openismus.com>
Thu, 17 Jun 2010 21:50:31 +0000 (23:50 +0200)
committerMathias Hasselmann <mathias@openismus.com>
Fri, 18 Jun 2010 10:00:10 +0000 (12:00 +0200)
commit9930aa2ebb3677d99a4df824875a02a864c074e3
tree6abf6ef1f470530037159a4f8ee4b004b0ed9286
parentbcb9f3edce2caee3c49ec3e273c3c2b7d9b0c34c
Changes: Create and update contacts in one step

RevBy: TrustMe
Details:

 * src/dao/contactdetailschema.cpp:
   defineGuidDetail(), defineTimestampDetail():
   Make some details writeable.

 * src/engine/contactsaverequest2.cpp:
   collectInsertions(), collectDeletions(), buildQuery(), saveContact(), start():
   Merge createContact() into saveContact().
 * src/engine/contactsaverequest2.h:
   Mark request pointer as constant.

 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-1.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-2.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-3.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-4.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-5.rq:
   Update reference queries.
src/dao/contactdetailschema.cpp
src/engine/contactsaverequest2.cpp
src/engine/contactsaverequest2.h
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-1.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-2.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-3.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-4.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-5.rq