[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xPL Lib events
I know - but as you say it looks like it should. Otherwise changing the
config items won't have any effect in the app (which is why I mentioned the
xPL docs, which clearly state that changes can be made at any time)
Mal
----- Original Message -----
From: "Tom Van den Panhuyzen" <tomvdp@xxxxxxx>
To: <ukha_xpl@xxxxxxx>
Sent: Wednesday, December 01, 2004 9:54 AM
Subject: Re: [ukha_xpl] xPL Lib events
>
> Of course. But I am referring to the event that is raised the moment
> the config items are changed. Currently the config items are changed
> but the app using xpl lib does not receive an event they were changed.
>
> Regards,
> Tom
>
>
> On Wed, 1 Dec 2004 09:44:38 -0000, Mal Lansell
<mlansell@xxxxxxx>
wrote:
> > According to the xPL docs, reconf and option type config items
can be
> > changed at any time, so they should be updated whether the device
is
> > awaiting configuration or not.
> >
> > That's the behaviour in my C++ code - any config.response message
received
> > results in the values in the config items being reapplied in the
app.
> >
> > Mal
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Tom Van den Panhuyzen" <tomvdp@xxxxxxx>
> > To: <ukha_xpl@xxxxxxx>
> > Sent: Tuesday, November 30, 2004 9:38 PM
> > Subject: [ukha_xpl] xPL Lib events
> >
> >
> > >
> > > Sorry to be flooding the list with xPL Lib messages... but
while we
> > > are discussing it: there is something I would like to see
changed to
> > > its current interface.
> > >
> > > If a device is configured (i.e. it receives a
config.response) there
> > > is an event raised only if the device was in
AwaitingConfiguration
> > > state.
> > >
> > > But the fact that a device's configuration elements are
changed (even
> > > if it was configured before) may interest the developer who
can then
> > > take some action.
> > >
> > > E.g.
> > > private mMyValue as Double
> > > ...
> > > mValue =
ComputationalIntensiveFunction(xplListener.ConfigItem("UserItem")
> > > ...
> > >
> > > private sub xplmessage_received()
> > > ... use mValue often ...
> > > end sub
> > >
> > > private sub xplconfigdone()
> > > mValue =
ComputationalIntensiveFunction(xplListener.ConfigItem("UserItem")
> > > end sub
> > >
> > >
> > > With the current xpl lib in the example above mValue is only
set the
> > > first time the app is configured or when the app starts. I
would like
> > > xplconfigdone() to be raised each time the user changes the
> > > configuration.
> > >
> > >
> > > Objections ?
> > >
> > > Regards,
> > > Tom
> > >
> > >
> > >
> > > xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> > http://www.xpl.myby.co.uk
> > > To Post a Message: ukha_xpl@xxxxxxx
> > > To Subscribe: ukha_xpl-subscribe@xxxxxxx
> > > To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> > xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
> > http://www.xpl.myby.co.uk
> > To Post a Message: ukha_xpl@xxxxxxx
> > To Subscribe: ukha_xpl-subscribe@xxxxxxx
> > To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
> >
> >
> >
> > Yahoo! Groups Sponsor
> >
> > ADVERTISEMENT
> >
> >
> > ________________________________
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/ukha_xpl/
> >
> > To unsubscribe from this group, send an email to:
> > ukha_xpl-unsubscribe@xxxxxxx
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe: ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
>
>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|