interface Telephony {
// ... all the stuff from the main proposal
void power(bool on);
Some thoughts on this:
TelephonyCall dial(String number);
const String RADIOSTATE_UNAVAILABLE = "unavailable"; const String RADIOSTATE_OFF = "off"; const String RADIOSTATE_READY = "ready"; const String CARDSTATE_NOT_READY = "unavailable"; const String CARDSTATE_ABSENT = "absent"; const String CARDSTATE_PIN_REQUIRED = "pin_required"; const String CARDSTATE_PUK_REQUIRED = "puk_required"; const String CARDSTATE_NETWORK_LOCKED = "network_locked"; const String CARDSTATE_NOT_READY = "not_ready"; const String CARDSTATE_READY = "ready"; readonly String radioState; readonly String cardState; EventListener onpowerchangeonradiostatechange EventListener oniccstatechange
EventListener onsignalstrengthchange
EventListener onoperatorchange
}
interface TelephonyCall {
// ... all the stuff from the main proposal
const String READYSTATE_DIALING = "dialing";
const String READYSTATE_CALLING = "calling";
const String READYSTATE_INCOMING = "incoming";
const String READYSTATE_CONNECTED = "connected";
const String READYSTATE_CLOSED = "closed";
const String READYSTATE_BUSY = "busy";
}