[maemo-developers] Accessing contacts via d-bus
From: Tatu Lahtela lahtela at iki.fiDate: Mon Jul 6 09:23:20 EEST 2009
- Previous message: Accessing contacts via d-bus
- Next message: Accessing contacts via d-bus
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I initially tried to use the maemo-examples and the example_abook as a base but the headers don't compile with c++: In file included from /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-tree-model.h:18, from /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-account-model.h:13, from /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook.h:16, from ContactSearch.cpp:15: /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-caps.h: In function `OssoABookCapsFlags osso_abook_caps_from_account_type(OssoABookAccountTypeFlags)': /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-caps.h:76: error: invalid conversion from `int' to `OssoABookCapsFlags' /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-caps.h:77: error: invalid conversion from `int' to `OssoABookCapsFlags' /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-caps.h:79: error: invalid conversion from `int' to `OssoABookCapsFlags' In file included from /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook.h:30, from ContactSearch.cpp:15: /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-contact-editor.h: At global scope: /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-contact-editor.h:81: error: expected `,' or `...' before "new" In file included from /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook.h:32, from ContactSearch.cpp:15: /usr/include/osso-addressbook-1.0/libosso-abook/osso-abook-contact.h:31: error: expected `,' or `...' before "new" On Mon, Jul 6, 2009 at 9:00 AM, Tatu Lahtela <lahtela at iki.fi> wrote: > 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> > -- Tatu Lahtela <lahtela at iki.fi> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20090706/a78955b7/attachment.htm
- Previous message: Accessing contacts via d-bus
- Next message: Accessing contacts via d-bus
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]