qtcontacts-tracker:jensg-contactsd.git
7 years agoSplit out select queries into cdtpquery.cpp and share better the code
Xavier Claessens [Wed, 5 Jan 2011 10:19:05 +0000 (11:19 +0100)]
Split out select queries into cdtpquery.cpp and share better the code

7 years agoChanges: make the storage responsible of telling when import is starting/ending
Xavier Claessens [Wed, 22 Dec 2010 11:52:10 +0000 (12:52 +0100)]
Changes: make the storage responsible of telling when import is starting/ending

Since operation is async, only the storage can know when it's done.

7 years agochanges: Use SharedPtr for CDTpAccountPtr as we do for CDTpContactPtr
Xavier Claessens [Wed, 22 Dec 2010 11:48:00 +0000 (12:48 +0100)]
changes: Use SharedPtr for CDTpAccountPtr as we do for CDTpContactPtr

Note that CDTpContact keeps only a C pointer to avoid ref cycle

7 years agoSet state of all importing accounts to Imported after timeout.
Tan Miaoqing [Thu, 30 Dec 2010 14:51:23 +0000 (16:51 +0200)]
Set state of all importing accounts to Imported after timeout.

7 years agoFixes : NB#11621 - contactsd: ut_telepathyplugin build fails (meego-bug)
Siraj Razick [Mon, 27 Dec 2010 04:27:40 +0000 (09:57 +0530)]
Fixes : NB#11621 - contactsd: ut_telepathyplugin build fails (meego-bug)

Review-by: TrustMe
7 years agoprepare 0.5.46-5
Aleksandar Stojiljkovic [Thu, 23 Dec 2010 13:10:52 +0000 (15:10 +0200)]
prepare 0.5.46-5

7 years agoprepare release 0.5.46-4
Aleksandar Stojiljkovic [Thu, 23 Dec 2010 13:00:37 +0000 (15:00 +0200)]
prepare release 0.5.46-4

7 years agoprepare harmattan/0.5.46-3
Aleksandar Stojiljkovic [Thu, 23 Dec 2010 12:45:40 +0000 (14:45 +0200)]
prepare harmattan/0.5.46-3

7 years agoprepare 0.5.46-2
Aleksandar Stojiljkovic [Thu, 23 Dec 2010 12:22:19 +0000 (14:22 +0200)]
prepare 0.5.46-2

7 years agoRemove obsolet comment
Xavier Claessens [Wed, 22 Dec 2010 12:18:53 +0000 (13:18 +0100)]
Remove obsolet comment

7 years agochanges: Add benchmarking test, doing operations on 5000 contacts
Xavier Claessens [Fri, 17 Dec 2010 11:06:46 +0000 (12:06 +0100)]
changes: Add benchmarking test, doing operations on 5000 contacts

7 years agochanges: Limit to 999 queries that have a isMemberOf() otherwise tracker says query...
Xavier Claessens [Fri, 17 Dec 2010 11:05:01 +0000 (12:05 +0100)]
changes: Limit to 999 queries that have a isMemberOf() otherwise tracker says query is too big

7 years agochanges: Set a limit of update queue size to avoid reaching tracker limits
Xavier Claessens [Wed, 15 Dec 2010 08:35:04 +0000 (09:35 +0100)]
changes: Set a limit of update queue size to avoid reaching tracker limits

7 years agoPrepare: release 0.5.46-1
Tan Miaoqing [Tue, 21 Dec 2010 11:36:54 +0000 (13:36 +0200)]
Prepare: release 0.5.46-1

7 years agoAdd a safety check in stopImportTimer()
Tan Miaoqing [Mon, 20 Dec 2010 14:46:25 +0000 (16:46 +0200)]
Add a safety check in stopImportTimer()

7 years agoAdd import timeout.
Tan Miaoqing [Mon, 20 Dec 2010 14:26:35 +0000 (16:26 +0200)]
Add import timeout.

7 years agoPrepare: release 0.5.45-1
Siraj Razick [Mon, 20 Dec 2010 04:53:23 +0000 (10:23 +0530)]
Prepare: release 0.5.45-1

7 years agoEmit ImportStarted signal when a new account is ready.
Tan Miaoqing [Thu, 16 Dec 2010 11:06:29 +0000 (13:06 +0200)]
Emit ImportStarted signal when a new account is ready.

7 years agoTelepathy plugin emits ImportStarted signal when an account is newly created.
Tan Miaoqing [Wed, 15 Dec 2010 14:39:07 +0000 (16:39 +0200)]
Telepathy plugin emits ImportStarted signal when an account is newly created.

7 years agoFixes : NB#210977 Skype contacts are not shown
Siraj Razick [Fri, 17 Dec 2010 11:12:44 +0000 (16:42 +0530)]
Fixes : NB#210977 Skype contacts are not shown

7 years agoBump Version
Siraj Razick [Wed, 15 Dec 2010 16:40:33 +0000 (22:10 +0530)]
Bump Version

7 years agoPrepare: release 0.5.44-1
Siraj Razick [Wed, 15 Dec 2010 16:32:30 +0000 (22:02 +0530)]
Prepare: release 0.5.44-1

7 years agoMerge branch 'master' of git@gitorious.org:/qtcontacts-tracker/contactsd
Siraj Razick [Wed, 15 Dec 2010 16:07:42 +0000 (21:37 +0530)]
Merge branch 'master' of git@gitorious.org:/qtcontacts-tracker/contactsd

7 years agoChanges : contactsd unit tests for coverage improvments
Siraj Razick [Tue, 7 Dec 2010 14:30:39 +0000 (20:00 +0530)]
Changes : contactsd unit tests for coverage improvments

7 years agoChanges : replace Plugin Daemon Instance wrapper with the plugin loader for better...
Siraj Razick [Mon, 6 Dec 2010 05:31:06 +0000 (11:01 +0530)]
Changes : replace Plugin Daemon Instance wrapper with the plugin loader for better unit tests

7 years agoChanges : enable/disable coverage from configure script and some test cases to improv...
Siraj Razick [Fri, 3 Dec 2010 10:58:31 +0000 (16:28 +0530)]
Changes : enable/disable coverage from configure script and some test cases to improve coverage

7 years agochanges: Make ContactList operations on a set of contacts at once
Xavier Claessens [Wed, 15 Dec 2010 08:33:19 +0000 (09:33 +0100)]
changes: Make ContactList operations on a set of contacts at once

7 years agoUse TpBaseContactList to add support for ContactList on the fake connection
Xavier Claessens [Tue, 14 Dec 2010 11:21:24 +0000 (12:21 +0100)]
Use TpBaseContactList to add support for ContactList on the fake connection

7 years agochanges: Add some more debug messages and fix coding style
Xavier Claessens [Mon, 6 Dec 2010 15:53:33 +0000 (16:53 +0100)]
changes: Add some more debug messages and fix coding style

7 years agochanges: Take fake connection presence/nickname/normalizedName from self contact
Xavier Claessens [Mon, 6 Dec 2010 14:58:39 +0000 (15:58 +0100)]
changes: Take fake connection presence/nickname/normalizedName from self contact

7 years agotrivial cleanup in script
Xavier Claessens [Thu, 2 Dec 2010 13:15:14 +0000 (14:15 +0100)]
trivial cleanup in script

7 years agoMake sure to cleanup tests tmp files
Xavier Claessens [Thu, 2 Dec 2010 13:00:40 +0000 (14:00 +0100)]
Make sure to cleanup tests tmp files

7 years agochanges: Set all contacts offline at startup if an account is offline
Xavier Claessens [Thu, 2 Dec 2010 12:36:52 +0000 (13:36 +0100)]
changes: Set all contacts offline at startup if an account is offline

Fixes NB#185265

7 years agochanges: clear QHash in destructor
Xavier Claessens [Thu, 2 Dec 2010 09:05:24 +0000 (10:05 +0100)]
changes: clear QHash in destructor

7 years agochanges: delay a bit updates to let a chance to group them for performance
Xavier Claessens [Wed, 1 Dec 2010 14:45:45 +0000 (15:45 +0100)]
changes: delay a bit updates to let a chance to group them for performance

This also unify contact addition and update code paths

7 years agochanges: Add unit tests for ContactInfo
Xavier Claessens [Tue, 30 Nov 2010 14:18:33 +0000 (15:18 +0100)]
changes: Add unit tests for ContactInfo

7 years agochanges: Move ContactInfo resources/properties into their own graph
Xavier Claessens [Tue, 30 Nov 2010 14:16:31 +0000 (15:16 +0100)]
changes: Move ContactInfo resources/properties into their own graph

The graph is simply the IMAddress URI it belongs to. This makes easy
to delete all ContactInfo stuff from an IMAddress.

7 years agochanges: remove resource lists to simplify the code
Xavier Claessens [Tue, 30 Nov 2010 10:13:13 +0000 (11:13 +0100)]
changes: remove resource lists to simplify the code

It also seems to modify imContact for some reason, maybe a Qttracker bug.

7 years agoPrepare: for Release 0.5.43-1
Siraj Razick [Wed, 1 Dec 2010 14:40:19 +0000 (20:10 +0530)]
Prepare: for Release 0.5.43-1

7 years agoUpdates gitignore
Xavier Claessens [Wed, 1 Dec 2010 14:27:26 +0000 (15:27 +0100)]
Updates gitignore

7 years agochanges: Fixes regressions introduced by porting to tpqt4 0.5
Xavier Claessens [Wed, 1 Dec 2010 14:19:44 +0000 (15:19 +0100)]
changes: Fixes regressions introduced by porting to tpqt4 0.5

7 years agoMake tests build with telepathy-qt4 0.5.0.
Andre Moreira Magalhaes (andrunko) [Wed, 24 Nov 2010 14:34:16 +0000 (14:34 +0000)]
Make tests build with telepathy-qt4 0.5.0.

7 years agoRemoved already fixed FIXME.
Andre Moreira Magalhaes (andrunko) [Wed, 24 Nov 2010 13:11:12 +0000 (13:11 +0000)]
Removed already fixed FIXME.

7 years agoUpdate packaging to depend on telepathy-qt4 >= 0.5.0.
Andre Moreira Magalhaes (andrunko) [Wed, 24 Nov 2010 13:00:36 +0000 (13:00 +0000)]
Update packaging to depend on telepathy-qt4 >= 0.5.0.

7 years agoBuild against telepathy-qt4 0.5.0.
Andre Moreira Magalhaes (andrunko) [Wed, 24 Nov 2010 12:59:47 +0000 (12:59 +0000)]
Build against telepathy-qt4 0.5.0.

7 years agoChanges : Enable CITA Friendly test cases
siraj [Tue, 30 Nov 2010 05:25:37 +0000 (10:55 +0530)]
Changes : Enable CITA Friendly test cases

7 years agoChanges : Debian Package support for test cases
Siraj Razick [Wed, 1 Dec 2010 13:55:39 +0000 (19:25 +0530)]
Changes : Debian Package support for test cases

7 years agoMerge branch 'imaccount'
Xavier Claessens [Mon, 29 Nov 2010 10:42:37 +0000 (11:42 +0100)]
Merge branch 'imaccount'

7 years agochanges: Move IMAccount into contactsd's private graph to protect it from being delet...
Xavier Claessens [Tue, 23 Nov 2010 10:22:17 +0000 (11:22 +0100)]
changes: Move IMAccount into contactsd's private graph to protect it from being deleted by malicious qct

Fixes NB#206404, needs tracker >= 0.9.29 for it to work

7 years agochanges: Move XDG redirection before starting the dbus daemon
Xavier Claessens [Thu, 25 Nov 2010 10:54:41 +0000 (11:54 +0100)]
changes: Move XDG redirection before starting the dbus daemon

dbus-activated processes inherit env variables from dbus-daemon process.
So we have to define XDG_* env variables before start dbus-daemon so we are
sure to not write anything outside /tmp

7 years agoVersion Bump
Siraj Razick [Wed, 24 Nov 2010 13:56:44 +0000 (19:26 +0530)]
Version Bump

7 years agoPrepare : release
Siraj Razick [Wed, 24 Nov 2010 13:54:06 +0000 (19:24 +0530)]
Prepare : release

7 years agoChanges : switch to using more readable enum flags.
Siraj Razick [Wed, 24 Nov 2010 09:54:21 +0000 (15:24 +0530)]
Changes : switch to using more readable enum flags.

7 years agochanges: Do not store blocked contacts in tracker
Xavier Claessens [Wed, 24 Nov 2010 12:47:36 +0000 (13:47 +0100)]
changes: Do not store blocked contacts in tracker

7 years agochanges: more cosmetic cleanups
Xavier Claessens [Tue, 23 Nov 2010 12:39:43 +0000 (13:39 +0100)]
changes: more cosmetic cleanups

7 years agochanges: Cleanup queries constructor code
Xavier Claessens [Tue, 23 Nov 2010 12:27:00 +0000 (13:27 +0100)]
changes: Cleanup queries constructor code

7 years agochanges : Add support for Creating coverage reports
Siraj Razick [Mon, 22 Nov 2010 07:48:11 +0000 (13:18 +0530)]
changes : Add support for Creating coverage reports

7 years agochanges: Remove the PersonContact is the im contact is deleted and the genetor still...
Xavier Claessens [Mon, 15 Nov 2010 13:32:24 +0000 (14:32 +0100)]
changes: Remove the PersonContact is the im contact is deleted and the genetor still is "telepathy"

Note: contact-editor should change nie:generator when editing a contact

7 years agoPrepare Release
Siraj Razick [Mon, 15 Nov 2010 10:12:34 +0000 (15:42 +0530)]
Prepare Release

7 years agoChanges: Update changelog
Jens Georg [Mon, 15 Nov 2010 08:35:27 +0000 (09:35 +0100)]
Changes: Update changelog

RevBy: TrustMe

7 years agoFixes: Move accounts plugins to suggests
Jens Georg [Mon, 15 Nov 2010 08:26:30 +0000 (09:26 +0100)]
Fixes: Move accounts plugins to suggests

Bug: NB#203354
RevBy: TrustMe

7 years agochanges: Add support for type parameters on ContactInfo
Xavier Claessens [Fri, 12 Nov 2010 13:39:24 +0000 (14:39 +0100)]
changes: Add support for type parameters on ContactInfo

7 years agoMerge branch 'contact-info'
Xavier Claessens [Fri, 12 Nov 2010 12:09:52 +0000 (13:09 +0100)]
Merge branch 'contact-info'

7 years agochanges: Cleanup and fix the way ContactInfo are stored into PersonContact
Xavier Claessens [Thu, 11 Nov 2010 15:57:31 +0000 (16:57 +0100)]
changes: Cleanup and fix the way ContactInfo are stored into PersonContact

7 years agoChanges : Enable Console Logging for test cases
Siraj Razick [Fri, 12 Nov 2010 09:33:26 +0000 (15:03 +0530)]
Changes : Enable Console Logging for test cases

7 years agoFixes: NB#200288 - contactsd throws lots of garbage debug
Siraj Razick [Fri, 12 Nov 2010 09:17:11 +0000 (14:47 +0530)]
Fixes: NB#200288 - contactsd throws lots of garbage debug

7 years agochanges: Add unit test for removing IM contacts
Xavier Claessens [Thu, 11 Nov 2010 11:35:33 +0000 (12:35 +0100)]
changes: Add unit test for removing IM contacts

7 years agoPrepare: Release 0.5.40-5
Siraj Razick [Thu, 11 Nov 2010 11:01:20 +0000 (16:31 +0530)]
Prepare: Release 0.5.40-5

7 years agoFixes: NB#203200 - All the service related information gets removed from the service...
Siraj Razick [Thu, 11 Nov 2010 10:31:17 +0000 (16:01 +0530)]
Fixes: NB#203200 - All the service related information gets removed from the service contact when marked as favourite

7 years agochanges: Actually use a slot that exist when deleting an account
Xavier Claessens [Thu, 11 Nov 2010 09:55:53 +0000 (10:55 +0100)]
changes: Actually use a slot that exist when deleting an account

7 years agoPrepare for 0.5.40-4
Siraj Razick [Wed, 10 Nov 2010 14:41:15 +0000 (20:11 +0530)]
Prepare for 0.5.40-4

7 years agochanges: Do not remove self contact when purging tracker from deleted contacts
Xavier Claessens [Wed, 10 Nov 2010 14:25:36 +0000 (15:25 +0100)]
changes: Do not remove self contact when purging tracker from deleted contacts

When an account gets online, we delete from tracker all contacts that are not in it
anymore. But that query was deleting the self contact too.

7 years agochanges: Add CDTpContactPtr for shared ptr
Xavier Claessens [Tue, 9 Nov 2010 15:56:58 +0000 (16:56 +0100)]
changes: Add CDTpContactPtr for shared ptr

If we get from telepathy an update on a contact, then the contact is removed,
that produced an error because the CDTpContact* was deleted while we resolve
the contact, so when onContactUpdateResolverFinished is called the CDTpContact*
was invalid. Using SharedPtr we make sure the object survive, and we set a flag on
it to know the contact was removed so we can skip the update.

7 years agoPrepare for Release 0.5.40-3
Siraj Razick [Tue, 9 Nov 2010 05:40:54 +0000 (11:10 +0530)]
Prepare for Release 0.5.40-3

7 years agoChanges : Remove adding hasPostalAddress/hasPhone Numbers to imContact with the wrong Url
Siraj Razick [Mon, 8 Nov 2010 17:08:55 +0000 (22:38 +0530)]
Changes : Remove adding hasPostalAddress/hasPhone Numbers to imContact with the wrong Url

7 years agochanges: remove CDTpStorageRemoveAccount, we can actually do without it
Xavier Claessens [Mon, 8 Nov 2010 14:19:06 +0000 (15:19 +0100)]
changes: remove CDTpStorageRemoveAccount, we can actually do without it

7 years agochanges: Fix to completely delete imAccount and imAddress entities
Xavier Claessens [Mon, 8 Nov 2010 13:34:57 +0000 (14:34 +0100)]
changes: Fix to completely delete imAccount and imAddress entities

previously we were deleting only their type field, which leave all other info
inside tracker.

7 years agochanges: Remove from tracker contacts that does not exist anymore when an account...
Xavier Claessens [Mon, 8 Nov 2010 12:15:18 +0000 (13:15 +0100)]
changes: Remove from tracker contacts that does not exist anymore when an account becomes online

and cleanup various queries to make them simpler.

7 years agoBump Version
Siraj Razick [Sun, 7 Nov 2010 17:26:09 +0000 (22:56 +0530)]
Bump Version

7 years agoPrepare for Version 0.5.40-2
Siraj Razick [Sun, 7 Nov 2010 17:23:30 +0000 (22:53 +0530)]
Prepare for Version 0.5.40-2

7 years agoContact Info Cleanups
Siraj Razick [Tue, 2 Nov 2010 15:31:54 +0000 (21:01 +0530)]
Contact Info Cleanups

7 years agoChanges : delete properties list of resources
Siraj Razick [Tue, 26 Oct 2010 17:34:00 +0000 (23:04 +0530)]
Changes : delete properties list of resources

7 years agoChanges : Fix and improve CotactInfo Patch
Siraj Razick [Sun, 7 Nov 2010 16:35:29 +0000 (22:05 +0530)]
Changes : Fix and improve CotactInfo Patch

7 years agoMerge Upstream
Siraj Razick [Tue, 2 Nov 2010 15:31:54 +0000 (21:01 +0530)]
Merge Upstream

7 years agoChanges : delete properties list of resources
Siraj Razick [Tue, 26 Oct 2010 17:34:00 +0000 (23:04 +0530)]
Changes : delete properties list of resources

7 years agoChanged the enum values in CDTpContact::Change so that the bit wise AND works correctly.
Abhijit Bera [Tue, 2 Nov 2010 05:04:31 +0000 (10:34 +0530)]
Changed the enum values in CDTpContact::Change so that the bit wise AND works correctly.
Values 0x16 and 0x32 give incorrect binary values. They have been changed to 0x10 and 0x20.

Removed whitespaces, comments and done formatting.

Added the infoChanged signal so that information gets updated when it is changed in a contact
profile.

7 years agoCleaned up unwanted output.
Abhijit Bera [Sun, 31 Oct 2010 18:03:46 +0000 (23:33 +0530)]
Cleaned up unwanted output.

7 years agoRemoved unwanted commented code.
Abhijit Bera [Sun, 31 Oct 2010 17:44:29 +0000 (23:14 +0530)]
Removed unwanted commented code.

7 years agoAdded support for inserting additional details for a Skype profile into tracker.
Abhijit Bera [Sat, 30 Oct 2010 18:58:33 +0000 (00:28 +0530)]
Added support for inserting additional details for a Skype profile into tracker.

7 years agochanges: simplify a lot the way we purge deleted accounts at startup
Xavier Claessens [Fri, 5 Nov 2010 11:43:15 +0000 (12:43 +0100)]
changes: simplify a lot the way we purge deleted accounts at startup

We can actually ask tracker for the list of dangling imAccount directly, instead of
querying all accounts then filter ourself. isMemberOf().not_() FTW.

7 years agochanges: Fix the query to remove an account and all its contacts
Xavier Claessens [Fri, 5 Nov 2010 11:10:33 +0000 (12:10 +0100)]
changes: Fix the query to remove an account and all its contacts

7 years agoSimplify the query to remove an account
Xavier Claessens [Thu, 4 Nov 2010 16:25:06 +0000 (17:25 +0100)]
Simplify the query to remove an account

7 years agochanges: Fix remove IMAccount if it has no contact
Xavier Claessens [Thu, 4 Nov 2010 15:35:31 +0000 (16:35 +0100)]
changes: Fix remove IMAccount if it has no contact

The delete query for IMAccount was inside the loop for all contacts. That means
that if we have more than one contact, the query was repeated, and if we have no
contacts the query was not made at all.

Had to create the CDTpStorageRemoveAccount class to keep the AccountObjectPath for
the callback. Otherwise in the case we have no contact, it is impossible to know
the object path.

7 years agochanges: Removed accounts that does not exist anymore at startup
Xavier Claessens [Wed, 3 Nov 2010 14:52:19 +0000 (15:52 +0100)]
changes: Removed accounts that does not exist anymore at startup

7 years agoPrepare for 0.5.40-1
Siraj Razick [Mon, 1 Nov 2010 11:26:25 +0000 (16:56 +0530)]
Prepare for 0.5.40-1

7 years agoChanges: imProtocol fix
Siraj Razick [Fri, 29 Oct 2010 06:29:02 +0000 (11:59 +0530)]
Changes: imProtocol fix

RevBy: TrustMe

7 years agoFix typo in gitignore
Xavier Claessens [Thu, 28 Oct 2010 12:32:51 +0000 (14:32 +0200)]
Fix typo in gitignore

7 years agoPrepare 0.5.39-2
Siraj Razick [Thu, 28 Oct 2010 12:20:54 +0000 (17:50 +0530)]
Prepare 0.5.39-2

7 years agoMerge branch 'deletions'
Xavier Claessens [Thu, 28 Oct 2010 11:41:55 +0000 (13:41 +0200)]
Merge branch 'deletions'

7 years agochanges: Correctly delete contentLastModified when account going offline.
Xavier Claessens [Thu, 28 Oct 2010 11:41:11 +0000 (13:41 +0200)]
changes: Correctly delete contentLastModified when account going offline.