[Kde-pim] [patch] Akonadi data connection

Kevin Krammer kevin.krammer at gmx.at
Fri Aug 17 18:01:54 BST 2007


Hi Akonadi-Devs,

I made another patch regarding Akonadi's data connection, this time making the 
connection paramters (port on Windows, socket directory on Unix) configurable 
through akonadiserverrc

When starting up, akonadiserver will read "Connection/Port" on Windows 
and "Connection/SocketDirectory" on Unix, defaulting to the previously 
hardcoded values.

After it has established its listening, it wil write the respective settings 
into akonadiconnectionrc, which in turn is read by libakonadi/session.
This allows to configure the TCP port to "0", meaning the server will just 
bind to any free port, and this port will then be available in to the clients 
through the connetion config.

The server also adds its D-Bus session address to the akonadiconnectionrc, but 
I am not yet using this on the client side.
Client side code would need to do something like

QDBusConnection::connectToBus(address, "AkonadiDataConnection")

instead of

QDBusConnection::sessionBus()

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi-connection.diff
Type: text/x-diff
Size: 5244 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20070817/41022079/attachment.diff>
-------------- 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/20070817/41022079/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