Warning: session_start(): open(/var/lib/php/sessions/sess_3vjuja955t4ode2qfh7l0bnvtb, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
// function: func(S) -> bool (true = handled)
srecord VoiceTarget(S moduleID, JComponent guiComponent, O function) {}
module VoiceTargets > DynObjectTable {
start {
dm_onTopInput_q(voidfunc(S s) {
for (VoiceTarget vt : getVoiceTargets())
if (isTrue(callF(vt.function, s))) ret;
});
}
// API
void addVoiceTarget(S moduleID, JComponent guiComponent, O function) enter {
final VoiceTarget vt = new(moduleID, guiComponent, function);
bindToComponent(guiComponent,
r { add(vt) },
r { remove(vt) });
}
L getVoiceTargets() enter {
ret cloneList(data);
}
}