From kde-devel Sat Oct 20 12:00:56 2012 From: Kevin Krammer Date: Sat, 20 Oct 2012 12:00:56 +0000 To: kde-devel Subject: Re: How can I access to the Kadressbook, kCal and Kontact database Message-Id: <201210201400.56489.krammer () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=135073452831452 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============3270664365056245583==" --===============3270664365056245583== Content-Type: multipart/signed; boundary="nextPart1524688.FjcZmoFJBf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1524688.FjcZmoFJBf Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi again :) On Friday, 2012-10-19, Micha=EBl Parchet wrote: > Hello, >=20 > I would like to access and custumize the kCal, Kadressbook katabase. to u= se > this with my proprietary program. Have I the right to do this ? Yes, all KDE platform libraries, including he ones for PIM related things, = are=20 licence under the terms of the LGPL, which allows the usage in proprietary= =20 applications. Modifications to the libraries themselves, however, need to be licenced in = a=20 compatible way. But it is unlikely that such modifications will be needed a= t=20 all. > I thought understand that the database Is a mysql database. How can I > access and customize this ? Data access is handled through a PIM data service called Akonadi. The client library for that is part of the KDE platform's PIM libraries. http://api.kde.org/4.x-api/kdepimlibs-apidocs/akonadi/html/index.html There are basically two approaches for an application: =2D low level job based API, e.g. using Akonadi::CollectionFetchJob[1] for= =20 listing contact/calendar/email folders =2D high level model/view based API, e.g. Akonadi::EntityTreeModel for=20 presenting folders and data items (contacts, events, emails) in the form of= a=20 QAbstractItemModel for use in Qt item views. > I need the events and the contact adressbook but to use correctly this > database. I must to add somme custom tables and property. Can you give an example of such a customization? > Can I do this or should I make my oven database for my program ? That will likely depend on your actual needs. > I this last case, how can use both database in parallel ? You would access your database throught the QSql API. Assuming a MySQL back= ed=20 Akonadi setup I am quite certain that mysqld would be able to handle that=20 additional connection. Cheers, Kevin =2D-=20 Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring --nextPart1524688.FjcZmoFJBf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iD8DBQBQgpJ4nKMhG6pzZJIRAkrIAJ98vPPxfiXqLxk6qviG7SlEZ1vg0wCaA1m/ y5E1WXoivTpEdGPFYBWghK0= =xOfU -----END PGP SIGNATURE----- --nextPart1524688.FjcZmoFJBf-- --===============3270664365056245583== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============3270664365056245583==--