[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
xPL Lib events
- Subject: xPL Lib events
- From: Tom Van den Panhuyzen <tomvdp@xxxxxxxxx>
- Date: Tue, 30 Nov 2004 22:38:10 +0100
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 Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|