maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Read Contacts? (https://talk.maemo.org/showthread.php?t=79374)

electroaudio 2011-10-26 09:28

Read Contacts?
 
We are looking into expanding our deskypplet project with the ability to support .desktopfiles, to launch programs and make calls and some other fun stuff. So..

Where are the contacts stored on the N900?

Is it possible to retrieve all the names, and then select a name and get its picture and phonenumber from a script? To be able to customcreate my own .desktopfile?

Also, where are the browserbookmarks stored? It would be nice if all the bookmarks also could be easily included.

don_falcone 2011-10-26 10:37

Re: Read Contacts?
 
Contacts pictures: /home/user/.osso-abook/avatars
Contacts pictures also? /home/user/.osso-abook/photos
Addressbook: /home/user/.osso-abook/db/adressbook.db (probably Berkeley DB or whatever Evolution data server uses as a backend)

https://garage.maemo.org/projects/eds/
http://n900dev.blogspot.com/2010/01/...dressbook.html
http://blog.barisione.org/tag/address-book/

As for the bookmarks (they are in XBEL format):

http://pointlessphotographer.wordpre...rob-bookmarks/

electroaudio 2011-10-27 05:38

Re: Read Contacts?
 
Thanks!
Those were some very good links you gave :)

Now, i "only" need to make something useful out of it too ;)
It was a bit more complicated than i hoped for, so, probably i am forced either to get some C compiler working or learn python.. ;o

don_falcone 2011-10-27 06:31

Re: Read Contacts?
 
I assumed i already know Python.... :D

electroaudio 2011-10-27 19:09

Re: Read Contacts?
 
No, i can read and understand python source but i cant write it :)
It is the ".self" stuff that is confusing to me...
-I am an old assembly programmer so the .self is way off in my world ;)
( But i also had similar problems with ADA and pascal in the 80s.. )


All times are GMT. The time now is 09:28.

vBulletin® Version 3.8.8