next snapshot (Re: kdesupport/qt-dbus)
David Faure
faure at kde.org
Sun Jun 18 22:40:14 BST 2006
On Sunday 18 June 2006 23:25, Thiago Macieira wrote:
> David Faure wrote:
> >- the removal of the name argument in the KDEDModule class
>
> Why was this removed?
1) because name arguments to ctors look deprecated nowadays, so people would have felt it to be an error
2) because the adaptors aren't created yet in the derived class [see kde-commits discussion]
3) because in each and every kded module, that name had to be passed as argument in 2 places
(the non-standard factory method, and the derived-module constructor). Much typing for nothing...
4) and most of all, because kded has the info in the first place, so it calls setModuleName()
automatically, after creating the module, which takes care of the dbus registration.
> Now every module has to remember to register itself on D-BUS.
Nope.
> Not to mention that KDED modules cannot just register anywhere. They have
> to register at the exact object path that KDED expects them to.
Yep, all automated now.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel
mailing list