issue #10 #11 #12 Apply system reboot feature on instant_power mode set as 2. Change language popup titile and usage displaying method.

This commit is contained in:
paul kim
2024-09-05 12:35:44 +09:00
parent baf7697664
commit 91cd321a59
5 changed files with 11185 additions and 47 deletions

View File

@@ -46,6 +46,11 @@ HotelTV.hal = (function() {
'end_of_item' 'end_of_item'
]; ];
let hcap_property_installer_menuItem_key = [
hcap.property.InstallerMenuItem.POWER_MANAGE,
hcap.property.InstallerMenuItem.MAX_VOLUME
];
const g_media = { const g_media = {
@@ -113,7 +118,7 @@ HotelTV.hal = (function() {
}; };
/** /**
* HCAP Wrapper Function::> Get Device Properties(Realted HCAP API:hcap.property.setProperty) * HCAP Wrapper Function::> Set Device Properties(Realted HCAP API:hcap.property.setProperty)
* @param {string} sz_key property key name. * @param {string} sz_key property key name.
* @param {object} value is object to setting property * @param {object} value is object to setting property
*/ */
@@ -129,6 +134,39 @@ HotelTV.hal = (function() {
}); });
}; };
/**
* HCAP Wrapper Function::> Get Installer Menu Item(Realted HCAP API:hcap.property.getInstallerMenuItem)
* @param {string} sz_key installer menu item key name.
*/
function __hcapfxn_get_installer_menuItem(sz_key) {
return new Promise((resolve, reject) => {
let param = {
"key": sz_key,
"onSuccess": function(s) { resolve({ "key": sz_key, "value": s.value }) },
//"onFailure": function(f) { reject({ "key": sz_key, "value": "unknown" }) }
"onFailure": function(f) { resolve({ "key": sz_key, "value": "unknown" }) }
};
hcap.property.getInstallerMenuItem(param);
});
};
/**
* HCAP Wrapper Function::> Set Installer Menu Item(Realted HCAP API:hcap.property.setInstallerMenuItem)
* @param {string} sz_key installer menu item key name.
* @param {object} value is object to setting installer menu item
*/
function __hcapfxn_set_installer_menuItem(sz_key, value) {
return new Promise((resolve, reject) => {
let param = {
"key": sz_key,
"value": value.toString(),
"onSuccess": function(s) { resolve({ "key": sz_key, "value": value }) },
"onFailure": function(f) { resolve({ "key": sz_key, "value": "unknown" }) }
};
hcap.property.setInstallerMenuItem(param);
});
};
/** /**
* IDCAP Wrapper Function::> Get Device Configuration(Properties)(Realted IDCAP API:idcap://configuration/property/get) * IDCAP Wrapper Function::> Get Device Configuration(Properties)(Realted IDCAP API:idcap://configuration/property/get)
* @param {string} sz_key property key name. * @param {string} sz_key property key name.
@@ -955,12 +993,41 @@ HotelTV.hal = (function() {
let _instant_pwr_target_mode = Number(_devconfig.system.misc.instantPower); let _instant_pwr_target_mode = Number(_devconfig.system.misc.instantPower);
if (_devinfo["instant_power"] != _instant_pwr_target_mode) { if (_devinfo["instant_power"] != _instant_pwr_target_mode) {
_pmFxnArProperty.push(__hcapfxn_set_property('instant_power', _instant_pwr_target_mode)); _pmFxnArProperty.push(__hcapfxn_set_property('instant_power', _instant_pwr_target_mode));
// hcap.property.InstallerMenuItem.POWER_MANAGE 설정
if ( _instant_pwr_target_mode==2 ) {
//
hcap.property.setInstallerMenuItem({
"key" : hcap.property.InstallerMenuItem.POWER_MANAGE,
"value" : 8,
"onSuccess" : function() {
console.log("onSuccess");
},
"onFailure" : function(f) {
console.log("onFailure : errorMessage = " + f.errorMessage);
}
});
} else {
// Sets number of hours of no activity before automatic shut off. (0 ~ 7)
hcap.property.setInstallerMenuItem({
"key" : hcap.property.InstallerMenuItem.POWER_MANAGE,
"value" : 0,
"onSuccess" : function() {
console.log("onSuccess");
},
"onFailure" : function(f) {
console.log("onFailure : errorMessage = " + f.errorMessage);
}
});
}
} }
if ( _instant_pwr_target_mode==2 || _instant_pwr_target_mode==1 ){ if ( _instant_pwr_target_mode==2 || _instant_pwr_target_mode==1 ){
if (_devinfo["power_mode"] != hcap.power.PowerMode.WARM) {
_pmFxnArProperty.push(__hcapfxn_set_powermode('power_mode', hcap.power.PowerMode.WARM)); _pmFxnArProperty.push(__hcapfxn_set_powermode('power_mode', hcap.power.PowerMode.WARM));
} }
} }
}
// STEP#006::> SERVICE RELATED PARAMETERS // STEP#006::> SERVICE RELATED PARAMETERS
for (let _cfg in _devconfig) { for (let _cfg in _devconfig) {

View File

@@ -6151,6 +6151,19 @@ HotelTV.ui_appfull = (function() {
let _elLangSelUsageDiv = _elLangSelCtrlDiv.children('.usage'); let _elLangSelUsageDiv = _elLangSelCtrlDiv.children('.usage');
let _elLangSelButtonsDiv = _elLangSelCtrlDiv.children('.buttons'); let _elLangSelButtonsDiv = _elLangSelCtrlDiv.children('.buttons');
const ___ifxn_updateLangSelTitleAndUsages = function() {
let __focusedLang = "en-US";
if ( _elLangSelButtonsDiv.find('.focus').length ) {
__focusedLang = _elLangSelButtonsDiv.find('.focus').attr('id');
}
// Title
_elLangSelTitleDiv.text(_trTbl.system.szsellanguage[__focusedLang]);
// Usages
_elLangSelUsageDiv.html(_trTbl.system.lang_sel_usage[__focusedLang]);
}
const ___ifxn_moveLangButton = function(_direction) { const ___ifxn_moveLangButton = function(_direction) {
let selectedBtnItemCur = _elLangSelButtonsDiv.find('.focus'); let selectedBtnItemCur = _elLangSelButtonsDiv.find('.focus');
@@ -6173,6 +6186,8 @@ HotelTV.ui_appfull = (function() {
_elLangSelButtonsDiv.find('.langBtn').last().addClass("focus"); _elLangSelButtonsDiv.find('.langBtn').last().addClass("focus");
} }
} }
___ifxn_updateLangSelTitleAndUsages();
} }
const __ifxn_sendNextLangUsrData = async function(_nextLang, __cbFxnFailure=null, __cbFxn_Success=null) { const __ifxn_sendNextLangUsrData = async function(_nextLang, __cbFxnFailure=null, __cbFxn_Success=null) {

View File

@@ -1,5 +1,5 @@
<XAIT> <XAIT>
<versionNumber>4</versionNumber> <versionNumber>27</versionNumber>
<AbstractService> <AbstractService>
<svcName>Pro:Centric App</svcName> <svcName>Pro:Centric App</svcName>
<svcId>0x1204</svcId> <svcId>0x1204</svcId>
@@ -16,10 +16,15 @@
<controlCode>AUTOSTART</controlCode> <controlCode>AUTOSTART</controlCode>
<visibility>NOT_VISIBLE_USERS</visibility> <visibility>NOT_VISIBLE_USERS</visibility>
<priority>255</priority> <priority>255</priority>
<version>7</version> <version>27</version>
</applicationDescriptor> </applicationDescriptor>
<HcapDescriptor> <HcapDescriptor>
<url>http://10.20.0.2:8880/procentric/application/index.html</url> <url>http://10.20.0.2:8880/procentric/application/application.zip</url>
<applicationStructure>
<baseDirectory>/</baseDirectory>
<classpathExtension>/</classpathExtension>
<initialClass>index.html</initialClass>
</applicationStructure>
</HcapDescriptor> </HcapDescriptor>
</Application> </Application>
</ApplicationList> </ApplicationList>

View File

@@ -1,6 +1,6 @@
<service> <service>
<setup> <setup>
<versionNumber>100</versionNumber> <versionNumber>3</versionNumber>
<modelName>65UR762H0NC</modelName> <modelName>65UR762H0NC</modelName>
<priority>NORMAL</priority> <priority>NORMAL</priority>
<content> <content>
@@ -12,12 +12,32 @@
</content> </content>
</setup> </setup>
<setup> <setup>
<versionNumber>13</versionNumber> <versionNumber>2</versionNumber>
<modelName>65US761H0ND</modelName>
<priority>NORMAL</priority>
<content>
<type>EPK_FIRMWARE</type>
<data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-41-04.44.00_prodkey_nsu_V3_SECURED.epk</data>
<frequency>0</frequency>
<programNum>0</programNum>
<cTag>0</cTag>
</content>
</setup>
<setup>
<versionNumber>4</versionNumber>
<modelName>49US761H0ND</modelName> <modelName>49US761H0ND</modelName>
<priority>NORMAL</priority> <priority>NORMAL</priority>
<content> <content>
<type>EPK_FIRMWARE</type> <type>EPK_FIRMWARE</type>
<data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-78-04.47.70_prodkey_nsu_V3_SECURED.epk</data> <data>starfish-atsc-secured-k6hp-41.242.japoon4hotel.k6hp-94-04.49.30_prodkey_nsu_V3_SECURED.epk</data>
<frequency>0</frequency>
<programNum>0</programNum>
<cTag>0</cTag>
</content>
<!-- FOR PTC F/W -->
<content>
<type>PTC_FIRMWARE</type>
<data>xxUS761H0ND_v8.00.088.txt</data>
<frequency>0</frequency> <frequency>0</frequency>
<programNum>0</programNum> <programNum>0</programNum>
<cTag>0</cTag> <cTag>0</cTag>

File diff suppressed because it is too large Load Diff