[Kde-pim] Re: KCalCore + Observers

Patrick Ohly patrick.ohly at gmx.de
Mon May 9 15:43:49 BST 2011


On Di, 2011-05-03 at 09:58 +0100, David Jarvie wrote:
> On Tue, May 3, 2011 8:12 am, Patrick Ohly wrote:
> > The disadvantage is that the observer classes can be used in apps which
> > do not use QObject.
> >
> > A possible compromise is this:
> >       * Switch libkcalcore to the signal/slot version of the API,
> >         removing the register/removeObserver() calls and these Observer
> >         base classes. Requires adding QObject as base class of some
> >         classes (ReccurenceRule).
> 
> Basing classes on QObject would make them unable to be copied, which would
> break a lot of code.

Wasn't much of the code already changed such that QSharedPointer has to
be used to hold instances? Is there any class left which can be copied
by value?

-- 
Bye, Patrick Ohly
--  
Patrick.Ohly at gmx.de
http://www.estamos.de/


_______________________________________________
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