![]() |
2010-08-09
, 22:50
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#72
|
Something I look forward to is QtMobility is going to have support for pluggable contact engines. This expands the Maemo5 behavior of pulling contacts from eds and telepathy. I imagine it would be easier to write contact engines rather than sync engines but maybe I haven't research sync enough.
Sadly when I looked at the product support Symbian was supported but not Harmattan. I am unsure when n900-like meego devices will have it.
![]() |
2010-08-09
, 23:18
|
Posts: 1,048 |
Thanked: 979 times |
Joined on Mar 2008
@ SF Bay Area
|
#73
|
We can create a new "contact engine" for QtMobility as it is. I had to play a little bit with the "maemo5" backend and end up creating an "alternative version" of it to be able to use the latest code from the repository. I think would be pretty simple to start with the code that you created for TOR and create a QtMobility Contacts backend for google contacts.
Allowing to merge these contacts with a different engine (or the local contacts database would be a different issue all together).
Off topic:
I wonder why we still don't have a qt mobility backend based on sqllite. If we could have a "database" that would cache/aggregate contacts information from different backends it would be easier to deal with syncing/merging. I guess that is the idea with the current "contacts database" but I would prefer a cross platform implementation where we could create backends that deal with the data (sql) directly.
![]() |
2010-08-09
, 23:43
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#74
|
Some additional input to this idea: I already have the QT code to pull and parse Google contacts in qgvdial. I started looking at the qtmobility QtContacts* classes and it seems it will be fairly trivial to pull from google contacts and store into the n900's default contacts backend.
Creating a sqlite backend sounds like a really good idea - it might reduce the amount of time it takes to load and search through contacts - and if it is good enough, we can try pushing for it to be the default in the n900.
What would be really cool is if we could get newer QT versions supported on older maemos as well so that these improvements get back ported.
So many possibilities!
![]() |
2010-08-10
, 02:38
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#75
|
We can create a new "contact engine" for QtMobility as it is. I had to play a little bit with the "maemo5" backend and end up creating an "alternative version" of it to be able to use the latest code from the repository. I think would be pretty simple to start with the code that you created for TOR and create a QtMobility Contacts backend for google contacts.
Allowing to merge these contacts with a different engine (or the local contacts database would be a different issue all together).
Off topic:
I wonder why we still don't have a qt mobility backend based on sqllite. If we could have a "database" that would cache/aggregate contacts information from different backends it would be easier to deal with syncing/merging. I guess that is the idea with the current "contacts database" but I would prefer a cross platform implementation where we could create backends that deal with the data (sql) directly.
Getting your code into a new backend is a good first step but I think for you to have this contacts integrated into the "standard contacts database" won't be as much fun. You will have to make sure to add the "google account" field (preferably as TOR would have them) and I would guess, in order to make efficient to synchronize, you will need to create a cross-reference table somewhere else.
epage: does TOR store the google contacts on the "user contacts" database? I would imagine it does because I was able to merge them with my other contacts. I assume I just don't see them when TOR is disabled, right?
![]() |
2010-08-10
, 03:05
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#76
|
I just looked at the supported platforms page and they've added contacts to Maemo 5 since I last looked.
It sounds like right now it will present to apps the collection of results returned by each contact manager with one source being Maemo 5's contacts. I can't imagine they've already made contact support within their apps pull from this so it won't be entirely seamless but oh well.
The integrated contacts view pulls from multiple sources (like what QtMobility will allow). The only sources I am aware of are eds and Telepathy. Each telepathy connection manager is responsible for providing the contacts through the dbus api. The integrated contacts support I believe caches things in the database and handles the merging of contacts.
![]() |
2010-08-10
, 13:26
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#77
|
dbus-send --print-reply --dest=com.crochik.MyContacts / com.crochik.MyContacts.select_phone string:qgvdial
The Following User Says Thank You to fcrochik For This Useful Post: | ||
![]() |
2010-08-11
, 11:41
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#78
|
![]() |
2010-08-11
, 12:41
|
|
Posts: 722 |
Thanked: 1,223 times |
Joined on Apr 2010
@ USA
|
#79
|
I was curious if this discussion has led anyone else to start writing a Google QtMobility Contacts Engine?
If not, I think I'll start working on one. There is already another contact engine I want to write so it could be a good learning experience for me (C++ developer but never done Qt in C++ before). Maybe when QtMobility 1.1 comes out I'll also write a Google calendar engine (since I also have another calendar engine I want to write).
![]() |
2010-08-11
, 16:14
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#80
|
Are you planing on writing the "sqllite" one or are you talking about creating one to get the google contacts?
It seems to me that if the goal is to get the google contacts that you have already accomplished that with TOR. The telepathy service is all that we really need for the n900. It seems to me that writing a "qt mobility contact backend" for this would probably create more problems than solve, writing an application to use more than one backend at the same time and have to merge them would only make matters more difficult.
If you are planing on writing the "sqllite" (or even better a generic sql one) we could try to work together.
I would say if we:
- create a new sql "backend" with all the good features
- create some "plugable" way of adding/editing contacts so people can create other "plugins" (e.g. synchronize with Exchange, ...)
- create on plugin to get the "information" from the different "telepathy" accounts
- optionally one to synchronize the information with the "current n900 address book".
we would be able to create a pretty powerful "qt" based solution to handle "contacts" - I would even go further and say that something like this IMHO should have been (and could become) the base for meego.
You can use MyContacts to get any contact from the contacts database. The contacts database will include "google contacts" only if TOR is installed (and active?).
Felipe
My maemo work:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Harmattan:
GeePS - native UI around google maps - GApp - access to optimized mobile "google apps".
Shutdown - shutdown and reboot with one click - QuickCall - one click call, skypeout and google voice integration using dial tones.
WakeOnLan - wake computers on your local network.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For Maemo/N900:
GApp - access to optimized mobile "google apps". - MobWebMail: browser optimized to access multiple gmail accounts
MyContacts: 75 Contacts on your desktop, ring tones per group and more - GeePS: native front-end for google maps
Macuco2 : web browser to access web sites optimized for the iphone - WakeOnLan: wake up computers on your local network
dbBrowser: Simple application to browse sqlite databases
Last edited by fcrochik; 2010-08-09 at 22:31.