qtcontacts-tracker:contactsd.git
7 years agoChanges: just leak the FileAvatarObject resources
Xavier Claessens [Wed, 2 Mar 2011 15:36:04 +0000 (16:36 +0100)]
Changes: just leak the FileAvatarObject resources

This solves the problem for 2 contacts sharing the same avatar, and it's fine
according to tracker devs since the file stay on the FS anyway.

7 years agoMake possible again to disable debug output in unit tests
Xavier Claessens [Wed, 2 Mar 2011 14:13:54 +0000 (15:13 +0100)]
Make possible again to disable debug output in unit tests

7 years agoprepare for release harmattan/0.5.56-1
Xavier Claessens [Wed, 2 Mar 2011 10:46:04 +0000 (11:46 +0100)]
prepare for release

7 years agoDisable part of testAvatar that fails for now
Xavier Claessens [Wed, 2 Mar 2011 10:32:42 +0000 (11:32 +0100)]
Disable part of testAvatar that fails for now

7 years agoChanges: Use the avatar URI as IRI for the nfo:FileObjectData resource
Xavier Claessens [Wed, 2 Mar 2011 10:18:30 +0000 (11:18 +0100)]
Changes: Use the avatar URI as IRI for the nfo:FileObjectData resource

This is to avoid creating 2 nfo:FileObjectData with the same nie:url because this
is forbidden by tracker and make all queries fails.

Wrote a unit test showing a regression this change make (when 2 contacts have the
same avatar). But that should be much less common.

7 years agoChanges: Rework how removing contacts is done
Xavier Claessens [Tue, 1 Mar 2011 14:14:31 +0000 (15:14 +0100)]
Changes: Rework how removing contacts is done

7 years agoChanges: Correctly set the graph when removing ContactInfo
Xavier Claessens [Tue, 1 Mar 2011 14:14:03 +0000 (15:14 +0100)]
Changes: Correctly set the graph when removing ContactInfo

7 years agoMake expectations much more flexible for unit tests
Xavier Claessens [Tue, 1 Mar 2011 14:03:34 +0000 (15:03 +0100)]
Make expectations much more flexible for unit tests

7 years agoprepare for release harmattan/0.5.55-1
Xavier Claessens [Fri, 25 Feb 2011 16:39:43 +0000 (17:39 +0100)]
prepare for release

7 years agoFixes: NB#216923 - The skype contacts are not displayed in contact list when the...
Xavier Claessens [Fri, 25 Feb 2011 14:12:54 +0000 (15:12 +0100)]
Fixes: NB#216923 - The skype contacts are not displayed in contact list when the account is in disabled state

Remove unmerged contacts, but keep im address for merged contacts with unknown presence and no caps

7 years agoUse correct RDF type for avatars
Adrien Bustany [Fri, 25 Feb 2011 12:08:11 +0000 (14:08 +0200)]
Use correct RDF type for avatars

7 years agoAdd unit test for EmailAddress ContactInfo
Xavier Claessens [Fri, 25 Feb 2011 10:43:57 +0000 (11:43 +0100)]
Add unit test for EmailAddress ContactInfo

7 years agoChanges: Queue contact updates until previous query finished
Xavier Claessens [Fri, 25 Feb 2011 10:33:08 +0000 (11:33 +0100)]
Changes: Queue contact updates until previous query finished

Also prepare to keep disabled accounts

7 years agoChanges: Correctly link EmailAddress to the affiliation for ContactInfo
Xavier Claessens [Fri, 25 Feb 2011 09:18:20 +0000 (10:18 +0100)]
Changes: Correctly link EmailAddress to the affiliation for ContactInfo

7 years agoSkip contact update if in the meantime it got invisible (blocked, deleted, etc)
Xavier Claessens [Thu, 24 Feb 2011 12:16:38 +0000 (13:16 +0100)]
Skip contact update if in the meantime it got invisible (blocked, deleted, etc)

7 years agoChanges: Correctly report import progress
Xavier Claessens [Thu, 24 Feb 2011 11:20:35 +0000 (12:20 +0100)]
Changes: Correctly report import progress

Avoid reporting "0 contacts retrieved", and show progress when account goes online

7 years agoprepare for release harmattan/0.5.54-1
Xavier Claessens [Wed, 23 Feb 2011 15:32:12 +0000 (16:32 +0100)]
prepare for release

7 years agoChanges: Fix a crash when emitting rosterChanged from within constructor
Xavier Claessens [Wed, 23 Feb 2011 15:26:29 +0000 (16:26 +0100)]
Changes: Fix a crash when emitting rosterChanged from within constructor

Problem is that we create a Tp::SharedPtr to wrap 'this' from within the constructor
so that's the only shared ptr reference at that moment, so once the signal finished
emition, the shared ptr is destroyed and delete 'this'.

7 years agoChanges: remove qDebug() from previous patch
Siraj Razick [Wed, 23 Feb 2011 08:31:47 +0000 (10:31 +0200)]
Changes: remove qDebug() from previous patch

7 years agoFixes : NB#214534 - Unable ot remove gtalk/facebook contact.
Siraj Razick [Wed, 23 Feb 2011 07:30:00 +0000 (09:30 +0200)]
Fixes : NB#214534 - Unable ot remove gtalk/facebook contact.
* Removes the buggy impl of offline contact removal
* New PendingOperation class to handle offline contact removal
* Consitant update of the Contactsd.ini
Rev-By: Andre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>
Conflicts:

plugins/telepathy/cdtpcontroller.cpp
plugins/telepathy/cdtpstorage.h

7 years agoprepare for release harmattan/0.5.53-1
Xavier Claessens [Tue, 22 Feb 2011 17:58:11 +0000 (18:58 +0100)]
prepare for release

7 years agoFixes: NB#228543 - Gtalk contacts are not visible in contacts list though they are...
Xavier Claessens [Tue, 22 Feb 2011 16:58:35 +0000 (17:58 +0100)]
Fixes: NB#228543 - Gtalk contacts are not visible in contacts list though they are present in tracker

When FeatureRoster feature is prepared on connection it does not mean the roster is
already fetched. We have to wait for its state to be "success". It happens that
state is failure and FeatureRoster still is successfully prepared if the server is
busy and roster will may appear later.

7 years agoAdd debug message when account connection change
Xavier Claessens [Tue, 22 Feb 2011 11:40:26 +0000 (12:40 +0100)]
Add debug message when account connection change

7 years agoCleanup dependencies
Xavier Claessens [Tue, 22 Feb 2011 11:40:02 +0000 (12:40 +0100)]
Cleanup dependencies

7 years agoChanges: Affiliation label is "Other" and not "Others"
Xavier Claessens [Mon, 21 Feb 2011 12:50:07 +0000 (13:50 +0100)]
Changes: Affiliation label is "Other" and not "Others"

7 years agoChanges: Queue contact updates to group them
Xavier Claessens [Mon, 21 Feb 2011 12:48:36 +0000 (13:48 +0100)]
Changes: Queue contact updates to group them

7 years agoprepare for release harmattan/0.5.52-2
Xavier Claessens [Fri, 18 Feb 2011 15:34:29 +0000 (16:34 +0100)]
prepare for release

7 years agoAdd missing header file
Xavier Claessens [Fri, 18 Feb 2011 15:32:44 +0000 (16:32 +0100)]
Add missing header file

7 years agoprepare for release harmattan/0.5.52-1
Xavier Claessens [Fri, 18 Feb 2011 14:14:29 +0000 (15:14 +0100)]
prepare for release

7 years agoPort fake plugins to new API
Xavier Claessens [Fri, 18 Feb 2011 13:50:32 +0000 (14:50 +0100)]
Port fake plugins to new API

7 years agoRemove compat for old plugin interface
Xavier Claessens [Fri, 18 Feb 2011 12:37:15 +0000 (13:37 +0100)]
Remove compat for old plugin interface

Make the package conflict with not ported versions of contacts

7 years agoFixes: NB#224418 - Contactsd is logging by default
Xavier Claessens [Fri, 18 Feb 2011 09:31:55 +0000 (10:31 +0100)]
Fixes: NB#224418 - Contactsd is logging by default

qDebug() is not a real no-op if debug is turned off. This adds a Contactsd::debug()
which is really no-op, so plugins can use it.

7 years agoChanges: Build telepathy plugin with flags QT_NO_CAST_TO_ASCII and QT_NO_CAST_FROM_ASCII
Xavier Claessens [Wed, 16 Feb 2011 15:00:49 +0000 (16:00 +0100)]
Changes: Build telepathy plugin with flags QT_NO_CAST_TO_ASCII and QT_NO_CAST_FROM_ASCII

Use QString::fromLatin1 and static strings as much as possible.

7 years agoPrepare for release harmattan/0.5.51-1
Xavier Claessens [Tue, 15 Feb 2011 11:25:50 +0000 (12:25 +0100)]
Prepare for release

7 years agoFixes: NB#227721 - Not able to add a IM buddy
Xavier Claessens [Tue, 15 Feb 2011 11:22:47 +0000 (12:22 +0100)]
Fixes: NB#227721 - Not able to add a IM buddy

Make sure to correctly update account and account's IMAddress

7 years agoChanges: Make avatar URL start with file://
Xavier Claessens [Mon, 14 Feb 2011 18:15:31 +0000 (19:15 +0100)]
Changes: Make avatar URL start with file://

7 years agoprepare for release harmattan/0.5.50-1
Xavier Claessens [Mon, 14 Feb 2011 17:51:19 +0000 (18:51 +0100)]
prepare for release

7 years agoFixes: NB#202165 - Gtalk contacts having status 'offline' are shown with default...
Xavier Claessens [Mon, 14 Feb 2011 17:44:36 +0000 (18:44 +0100)]
Fixes: NB#202165 - Gtalk contacts having status 'offline' are shown with default avatar

Request avatar and ContactInfo first time we see a contact

7 years agoChanges: use "telepathy:<account path>!self" for the account's IMAddress
Xavier Claessens [Mon, 14 Feb 2011 17:16:02 +0000 (18:16 +0100)]
Changes: use "telepathy:<account path>!self" for the account's IMAddress

This is to avoid confusion if roster contains user himself

7 years agoMake contact creation a little bit faster
Xavier Claessens [Mon, 14 Feb 2011 16:26:59 +0000 (17:26 +0100)]
Make contact creation a little bit faster

7 years agoGroup insertions per resource
Xavier Claessens [Mon, 14 Feb 2011 16:01:05 +0000 (17:01 +0100)]
Group insertions per resource

7 years agoChanges: Skip '<' and '>' from contact ids
Xavier Claessens [Mon, 14 Feb 2011 13:57:12 +0000 (14:57 +0100)]
Changes: Skip '<' and '>' from contact ids

tp-ring uses "<SelfHandle>" as contactId for the self contact, but that does not make a good URL.

7 years agoMake it work with larger roster
Xavier Claessens [Mon, 14 Feb 2011 12:27:04 +0000 (13:27 +0100)]
Make it work with larger roster

When creating a new contact, try as much as possible to not have to
bind to a ?imContact variable, otherwise we soon hit a tracker limit

7 years agoMinor cleanup. Print time elapsed to execute queries
Xavier Claessens [Fri, 11 Feb 2011 13:34:14 +0000 (14:34 +0100)]
Minor cleanup. Print time elapsed to execute queries

7 years agoChanges: Implement DBus interface to add/remove buddy
aleksandar stojiljkovic [Fri, 11 Feb 2011 12:48:37 +0000 (13:48 +0100)]
Changes: Implement DBus interface to add/remove buddy

Store buddies to be removed into a redlist and process them once
the account gets online. Remove them from tracker directly.

7 years agoDelete only when it is needed, and delete once for all contacts/accounts
Xavier Claessens [Thu, 10 Feb 2011 11:29:54 +0000 (12:29 +0100)]
Delete only when it is needed, and delete once for all contacts/accounts

Instead of deleting properties for each account/contact one by one, it's preferable
to use a variable and use a FILTER IN for example.

This improve performance a LOT.

7 years agoImplement mutable ContactList on test CM
Xavier Claessens [Wed, 9 Feb 2011 13:23:41 +0000 (14:23 +0100)]
Implement mutable ContactList on test CM

7 years agoUpdate test CM from telepathy-glib
Xavier Claessens [Wed, 9 Feb 2011 12:07:33 +0000 (13:07 +0100)]
Update test CM from telepathy-glib

7 years agoChanges: When creating an account, also ensure default-contact-me exists
Xavier Claessens [Tue, 8 Feb 2011 15:02:01 +0000 (16:02 +0100)]
Changes: When creating an account, also ensure default-contact-me exists

7 years agoEmit again syncStarted/syncEnded signals
Xavier Claessens [Tue, 8 Feb 2011 12:09:42 +0000 (13:09 +0100)]
Emit again syncStarted/syncEnded signals

It is tricky to know how many contacts got created/removed though,
so for now we just pretent all contacts were new.

7 years agoChanges: Use factories to define features needed on Account/Connection/Contact
Xavier Claessens [Mon, 7 Feb 2011 13:49:00 +0000 (14:49 +0100)]
Changes: Use factories to define features needed on Account/Connection/Contact
Changes: When an account/contact change, update only necessary fields

This simplify our code since we don't have to wait for objects to become
ready anymore. When adding a new account, all its contacts are already
prepared.

7 years agoChanges: port remove contact/account to raw sparql query
Xavier Claessens [Fri, 4 Feb 2011 10:12:22 +0000 (11:12 +0100)]
Changes: port remove contact/account to raw sparql query

Drop qttracker dependency

7 years agoMinor cleanup
Xavier Claessens [Thu, 3 Feb 2011 06:07:57 +0000 (07:07 +0100)]
Minor cleanup

7 years agoDo not "leak" avatar's DataObject in tracker
Xavier Claessens [Thu, 3 Feb 2011 00:02:38 +0000 (01:02 +0100)]
Do not "leak" avatar's DataObject in tracker

7 years agoChanges: Port account creation/update to raw sparql query
Xavier Claessens [Wed, 2 Feb 2011 17:20:17 +0000 (18:20 +0100)]
Changes: Port account creation/update to raw sparql query

7 years agoKeep imAccount properties into the private graph
Xavier Claessens [Wed, 2 Feb 2011 16:13:30 +0000 (17:13 +0100)]
Keep imAccount properties into the private graph

7 years agoChanges: Port contact creation/update to raw sparql query
Xavier Claessens [Wed, 2 Feb 2011 15:58:49 +0000 (16:58 +0100)]
Changes: Port contact creation/update to raw sparql query

7 years agoChanges: Do not assume nco:IMAccount inherit from nco:IMAddress
Xavier Claessens [Mon, 31 Jan 2011 08:51:30 +0000 (09:51 +0100)]
Changes: Do not assume nco:IMAccount inherit from nco:IMAddress

This was deprecated and droped in tracker 0.9.36

7 years agoPackages now depends on libqtsparql
Xavier Claessens [Fri, 28 Jan 2011 08:43:08 +0000 (09:43 +0100)]
Packages now depends on libqtsparql

7 years agoPrepare FeatureCapabilities on Tp::Account since we use it
Xavier Claessens [Thu, 27 Jan 2011 11:32:03 +0000 (12:32 +0100)]
Prepare FeatureCapabilities on Tp::Account since we use it

7 years agoAdd a copy of SparqlConnectionManager from qtcontacts-tracker
Xavier Claessens [Wed, 26 Jan 2011 13:07:34 +0000 (14:07 +0100)]
Add a copy of SparqlConnectionManager from qtcontacts-tracker

7 years agoFixes: NB#203933 - Set account caps when the there is no connection
Xavier Claessens [Tue, 25 Jan 2011 15:21:27 +0000 (16:21 +0100)]
Fixes: NB#203933 - Set account caps when the there is no connection

7 years agoChanges: Plugins does not need to implement hasActiveImports
Xavier Claessens [Tue, 25 Jan 2011 15:30:18 +0000 (16:30 +0100)]
Changes: Plugins does not need to implement hasActiveImports

Keep it with trivial implementation to preserve ABI

7 years agostart new dev
Xavier Claessens [Fri, 21 Jan 2011 15:14:30 +0000 (16:14 +0100)]
start new dev

7 years agoprepare for release harmattan/0.5.49-1
Xavier Claessens [Fri, 21 Jan 2011 15:13:48 +0000 (16:13 +0100)]
prepare for release

7 years agoProperly wait for the AM to appear on the bus instead of the racy sleep
Xavier Claessens [Fri, 21 Jan 2011 14:44:00 +0000 (15:44 +0100)]
Properly wait for the AM to appear on the bus instead of the racy sleep

7 years agoMake possible to silent fake CM debug output
Xavier Claessens [Fri, 21 Jan 2011 13:57:58 +0000 (14:57 +0100)]
Make possible to silent fake CM debug output

7 years agoFixes: NB#220851 - Crash when an IM contact has special postal address
Xavier Claessens [Fri, 21 Jan 2011 12:00:23 +0000 (13:00 +0100)]
Fixes: NB#220851 - Crash when an IM contact has special postal address

7 years agoFix make check
Xavier Claessens [Fri, 21 Jan 2011 11:44:41 +0000 (12:44 +0100)]
Fix make check

7 years agoFixes: NB#215021 - Contactsd gets incorrect names for importing IM services
Xavier Claessens [Thu, 20 Jan 2011 16:56:30 +0000 (17:56 +0100)]
Fixes: NB#215021 - Contactsd gets incorrect names for importing IM services

Use the provider name from the account's profile. And fallback to use the service
name because profiles are not yet supported in most systems

7 years agoCleanup a bit packaging depedencies
Xavier Claessens [Thu, 20 Jan 2011 14:31:59 +0000 (15:31 +0100)]
Cleanup a bit packaging depedencies

7 years agoPrepare harmattan/0.5.48-2 harmattan/0.5.48-2
Tan Miaoqing [Thu, 20 Jan 2011 15:34:55 +0000 (17:34 +0200)]
Prepare harmattan/0.5.48-2

7 years agoChanges: Update contentLastModified on me-contact when account change
Xavier Claessens [Thu, 20 Jan 2011 12:26:09 +0000 (13:26 +0100)]
Changes: Update contentLastModified on me-contact when account change

7 years agoChanges: generator is optional, me-contact does not have it
Xavier Claessens [Thu, 20 Jan 2011 10:21:19 +0000 (11:21 +0100)]
Changes: generator is optional, me-contact does not have it

7 years agoEnable log-console if CONTACTSD_DEBUG env is set
Xavier Claessens [Thu, 20 Jan 2011 08:55:29 +0000 (09:55 +0100)]
Enable log-console if CONTACTSD_DEBUG env is set

7 years agoRefactoring of telepathy plugin unit tests
Xavier Claessens [Thu, 20 Jan 2011 08:53:31 +0000 (09:53 +0100)]
Refactoring of telepathy plugin unit tests

They can now be run one by one and gets included into contactsd-tests package
to be executed on CITA

7 years agoChanges: correctly connect publishStateChanged signal
Xavier Claessens [Tue, 18 Jan 2011 08:23:58 +0000 (09:23 +0100)]
Changes: correctly connect publishStateChanged signal

7 years agoStart new dev
Xavier Claessens [Mon, 17 Jan 2011 08:57:34 +0000 (09:57 +0100)]
Start new dev

7 years agoprepare for release 0.5.48 harmattan/0.5.48-1
Xavier Claessens [Mon, 17 Jan 2011 08:56:31 +0000 (09:56 +0100)]
prepare for release 0.5.48

7 years agochanges: Update the copy of fake CM we have for unit tests from tp-glib
Xavier Claessens [Fri, 14 Jan 2011 14:18:16 +0000 (15:18 +0100)]
changes: Update the copy of fake CM we have for unit tests from tp-glib

7 years agoMerge branch 'deprecated'
Xavier Claessens [Fri, 14 Jan 2011 14:13:15 +0000 (15:13 +0100)]
Merge branch 'deprecated'

7 years agoMerge branch 'local-pending'
Xavier Claessens [Fri, 14 Jan 2011 11:42:35 +0000 (12:42 +0100)]
Merge branch 'local-pending'

7 years agoMerge branch 'contact-info'
Xavier Claessens [Thu, 13 Jan 2011 18:12:14 +0000 (19:12 +0100)]
Merge branch 'contact-info'

7 years agoMove tel: and emailto: resources into default graph
Xavier Claessens [Thu, 13 Jan 2011 18:10:26 +0000 (19:10 +0100)]
Move tel: and emailto: resources into default graph

7 years agochanges: Do not import local-pending contacts 15
Xavier Claessens [Wed, 12 Jan 2011 15:14:08 +0000 (16:14 +0100)]
changes: Do not import local-pending contacts

7 years agochanges: Do not use deprecated tp-qt4 signals
Xavier Claessens [Thu, 13 Jan 2011 11:08:04 +0000 (12:08 +0100)]
changes: Do not use deprecated tp-qt4 signals

7 years agoDo not print warning if a file is not the expected plugin type
Xavier Claessens [Thu, 13 Jan 2011 11:06:56 +0000 (12:06 +0100)]
Do not print warning if a file is not the expected plugin type

Only print qDebug() otherwise it makes unit tests not pass with fatal warnings

7 years agochanges: support more fields from ContactInfo
Xavier Claessens [Tue, 11 Jan 2011 15:47:06 +0000 (16:47 +0100)]
changes: support more fields from ContactInfo

7 years agoFixes: NB#217560 - Tests.xml file missing in contactsd-tests package 13
Jens Georg [Tue, 11 Jan 2011 10:06:22 +0000 (11:06 +0100)]
Fixes: NB#217560 - Tests.xml file missing in contactsd-tests package

Package ut_contactsd, ut_telepathyplugin and tests.xml. Package was empty
before.

RevBy: TrustMe

7 years agochanges: Link an IMAddress to a PersonContact via an affiliation instead of directly
Xavier Claessens [Fri, 7 Jan 2011 12:57:08 +0000 (13:57 +0100)]
changes: Link an IMAddress to a PersonContact via an affiliation instead of directly

7 years agochanges: Use the displayName of the account instead of serviceName for import status
Xavier Claessens [Thu, 6 Jan 2011 16:05:36 +0000 (17:05 +0100)]
changes: Use the displayName of the account instead of serviceName for import status

7 years agoStart new dev
Xavier Claessens [Wed, 5 Jan 2011 16:12:30 +0000 (17:12 +0100)]
Start new dev

7 years agoprepare for release harmattan/0.5.47-1
Xavier Claessens [Wed, 5 Jan 2011 16:11:14 +0000 (17:11 +0100)]
prepare for release

7 years agochanges: Correctly emit syncStarted and syncEnded signals
Xavier Claessens [Wed, 5 Jan 2011 16:01:09 +0000 (17:01 +0100)]
changes: Correctly emit syncStarted and syncEnded signals

7 years agoWrap update queries to display errors and get a signal when operation is done
Xavier Claessens [Wed, 5 Jan 2011 12:22:34 +0000 (13:22 +0100)]
Wrap update queries to display errors and get a signal when operation is done

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