[Kde-pim] Accessing the addressbook from C++

Kevin Krammer kevin.krammer at gmx.at
Thu Jul 31 12:41:24 BST 2008


On Thursday 31 July 2008, Christoph Kies wrote:

> But it did not compile, requestSaveTicket() does not return an
> AddressBook::Ticket but an KABC::Ticket so i changed this.
> But KABC::StdAddressBook::save(ticket) does not exist.

It does, it is inherited from the base class KABC::AddressBook

> It compiles but it does not run, i get an  "Speicherzugriffsfehler" which
> means "segmentation fault".
>
> what can i do now? Compile with symbols and run the gdb?

You (or rather KABC code internally) probably need a KInstance instance, e.g. 
a KApplication object.

Cheers.
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080731/9e4a29b6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list