Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,42 @@
/* global BaseModule */
'use strict';
(function() {
var TelephonyMonitor = function(telephony) {
this.telephony = telephony;
};
TelephonyMonitor.STATES = [
'inCall',
'hasActiveCall'
];
BaseModule.create(TelephonyMonitor, {
name: 'TelephonyMonitor',
inCall: false,
/**
* Check if there is active call
* @param {Number} index If not specified, it means any active call;
* if specified, it means the active call at this SIM slot.
* @return {Boolean} There is active call or not.
*/
hasActiveCall: function(index) {
if (index) {
return this.telephony.active &&
this.telephony.active.serviceId === index;
} else {
return !!this.telephony.active;
}
},
handleEvent: function(evt) {
this.inCall = this.telephony.calls.length > 0;
this.publish('callschanged', {
detail: evt.detail
});
},
_start: function() {
this.telephony.addEventListener('callschanged', this);
},
_stop: function() {
this.telephony.removeEventListener('callschanged', this);
}
});
}());