[Kde-pim] Re: Extracting some code from KMail into a lib

Andras Mantia amantia at kde.org
Tue Sep 28 12:31:28 BST 2010


Hi,

Ingo Klöcker wrote:

> A cleaner solution would be a pure interface IMailCommon and a Registry
> singleton where, at application start, a concrete implementation of
> IMailCommon is registered and from which the interface can be retrieved,
> i.e. something like

I followed your suggestion and went on with the singleton + interface(s).
Unfortunately using smart pointers made it crash at exit, and so far I 
couldn't find the reason, so there is no smart pointers used.
 I added warning documentation about who owns the pointers and also about 
multi-threaded usage.

Andras
_______________________________________________
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