[maemo-developers] Accessing contacts via d-bus

From: Tatu Lahtela lahtela at iki.fi
Date: Mon Jul 6 09:00:22 EEST 2009
Yes I'm doing QT. I initially tried to use the c apis but I had some
troubles compiling/using them. Maybe that gconf example will help, but If
know any app that uses e-book (preferrably a c++ app) that I could look at,
that would be great.

-Tatu


On Fri, Jul 3, 2009 at 3:42 PM, Antonio Aloisio
<antonio.aloisio at gmail.com>wrote:

> Hi,
> I don't know if a D-Bus API exists or it it is public, but you could use
> the C API as Fred told before.
> In case you are using Qt, you have to use QLibrary [1] as we have done with
> GConf [2].
>
> BR,
> Antonio
>
> [1] http://doc.qtsoftware.com/4.5/qlibrary.html
> [2]
> http://qt.gitorious.org/+qt-maemo-developers/qt/qt-maemo/trees/maemo-internet-connectivity/src/network/maemo
>
>
> On Fri, Jul 3, 2009 at 3:04 PM, Fred <Fred at lefevere-laoide.net> wrote:
>
>> Hi,
>>
>> Contact-infos does access contact but not via DBus (via libebook API if
>> I remember correctly) !
>> It then offers a DBus interface to allow users to choose the contact
>> they want via a dialog.
>>
>> ContactInfos can access built-in contact or GPE contacts ...
>>
>> Fred
>>
>>
>> Tatu Lahtela a écrit :
>> > Hi,
>> > Are there any examples on how I can access the addressbook via d-bus? By
>> > looking at the dbus-monitor logs I seet that interfaces such as
>> > org.gnome.evolution.dataserver.AddressBook are used, but I've had no
>> > luck getting anything out of them.
>> >
>> > If anyone has done it, a short example with e.g. dbus-send or code would
>> > be really appreciated on how I can e.g. get a list of my contacts.
>> >
>> > cheers,
>> > --
>> > Tatu Lahtela <lahtela at iki.fi <mailto:lahtela at iki.fi>>
>> >
>> >
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > maemo-developers mailing list
>> > maemo-developers at maemo.org
>> > https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>> _______________________________________________
>> maemo-developers mailing list
>> maemo-developers at maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
>
>
>
> --
>
> Rita Rudner <http://www.brainyquote.com/quotes/authors/r/rita_rudner.html> - "I was a vegetarian until I started leaning toward the sunlight."




-- 
Tatu Lahtela <lahtela at iki.fi>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090706/8229b673/attachment.htm 
More information about the maemo-developers mailing list