W3C home > Mailing lists > Public > public-device-apis@w3.org > June 2010

[SysInfo API] Proposing an alternative to the SystemDevice interface

From: JOSE MANUEL CANTERA FONSECA <jmcf@tid.es>
Date: Thu, 17 Jun 2010 12:37:42 +0200
To: "public-device-apis@w3.org" <public-device-apis@w3.org>
Message-id: <93AA9E47B82F684A868C217766F489053A98041200@EXCLU2K7.hi.inet>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:10 GMT