[SysInfo API] Proposing an alternative to the SystemDevice interface

Dear all,

The interface 'SystemDevice' seems to be a bit underspecified. Particularly you say that the info field can be used to hold free-form info such as the name of the manufacturer. I think that it is not a good idea and that such a field might turn into some kind of hotchpotch.

A better API would allow to obtain for instance vendor information using something like

var batteries = navigator. system.get("Power")

foreach battery in batteries
             alert(battery.get("vendor"))

i.e. each component, aspect instance, might be enqueried about its properties, including common ones such as vendor, model, version, etc.

best

Received on Thursday, 17 June 2010 10:38:18 UTC