kde-common/accounts in kmail's addressbook

Carsten Pfeiffer carpdjih at sp.zrz.tu-berlin.de
Tue Jun 4 17:17:08 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----

On Tuesday 04 June 2002 20:15, Marc Mutz wrote:

> I want to see how you want to maintain stable "external" interfaces if
> the whole message handling core is exchanged in the app. ;-)

For one thing: you don't need to have just one single interface. You can add 
as many as you like (so provide those that are not going to change for now). 

Second: don't provide access to internal datastructures. Provide interfaces 
with the fucntionality you can offer now (so changing the implementation 
doesn't do any harm). 

You need two things in the interfaces: 
1) events that plugins react on (i.e. "composerOpened", giving access to the 
composer interface, or "messageOpened", giving access to the opened message.
2) some sort of library to do something with the data, i.e. the mails. Just 
offering a message as QString is nice for the beginning, but some methods for 
accessing attachments or manipulating headers would be nice. Provide a small 
interface around KMime for example, with the most common things that are 
guaranteed to be available after any rewrite.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBPPzoBKWgYMJuwmZtAQG7xggAq6oS4karcSeFJLG/nDNjRz62jGun4X1e
y7yHVwvRtItda8TLXbhZmgmLC7zJ2dOq5RR0h4ngp15gyRRABkmtxhQUaWxnytIq
zNIUq6ztVRpiPury56TPz8qNQVF2oXYMDhOeSDN/ARjCMCBQMedzto2ByaFETGKx
SMKnxU1Epvu6YbwhxeUeS/KSrxtdMn4GPXDdx5Dcbw90Y1AcjNZe+r/mOOKR5nZn
2ggwXJoRlYVs6Jc8F0rkFQh1HXKw4zmBw6U5FHdHek/3odvk/yY6ZHbGfPIHBWwe
KT7ib/Wm1gNTm2xWIMcEYTSxoveBCMnAJkIjqQyukxXcS7wzaTXHQQ==
=3y01
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list