RFC: plasma2 and configuration
Aaron J. Seigo
aseigo at kde.org
Wed Feb 27 17:06:12 UTC 2013
On Wednesday, February 27, 2013 13:03:59 Marco Martin wrote:
> On Wednesday 27 February 2013, Aaron J. Seigo wrote:
> > > > 1. notifying the component (e.g. plasmoid) that configuration has
> > > > completed
> > >
> > > I have an object exposed by the plasmoid, ConfigPropertyMap that is a
> > > qqmlpropertymap, ie property bindings work with its values, so that
> > > would
> > > look like "automatic" without need for configChanged() event listener
> >
> > this is probably my favourite bit of this approach. we'll just need to
> > make
> > sure that the config object gets properly tickled when, for instance,
> > javascripts are run via the Desktop Scripting API.
>
> at the moment i see only 2 ways:
> a) just config file modifications watching (kconfigskeleton already does it
> iirc) not efficient but works
>
> b) making that config object directly accessible to the desktop scripting
> api (not sure if the latter would require desktop scripting moving to qml's
> javascript instead of qtscript javascript as well)
what about reacting to configChanged in the script engine? that could connect a
signal to each ConfigPropertyMap object ...
--
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20130227/417ef770/attachment.sig>
More information about the Plasma-devel
mailing list