fome (failed) experiments with the devicenotifier applet

Kevin Ottens ervin at kde.org
Fri Mar 14 18:38:06 CET 2008


Le Thursday 13 March 2008, Christopher Blauvelt a écrit :
> However once Plasma::Service is implemented a Service will be provided that
> will allow him to do these things alleviating him from having to access
> Solid directly.

Right.

> Also, isn't this the point of the whole dataengine/applet 
> paradigm?  That applets don't have to access frameworks directly?

Well, my point is more that it's a kind of service oriented architecture we're 
having in there... And if the service maps 1:1 the underlying framework 
there's no point in not using the framework directly apart from wasting CPU 
cycles. Those engines should provided added value, and in this particular 
case I don't know where it is.

> Otherwise 
> devicenotifier could just access Solid::Notifer directly too.

Nope, because the hotplug engine also carry extra information useful for 
a "hotplug aware" applet like the actions available compatible for a given 
device. Now that's real added values to the framework.

Actually I was waiting for the Service API to be available to add such "eject" 
actions the proper way (and probably more). But now it got committed despite 
my concerns... well, I guess it can live for now and be reverted later.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080314/a591d86c/attachment.pgp 


More information about the Panel-devel mailing list