@webos-tools/cli 3.1.2 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +1 -1
- package/.eslintrc.js +52 -52
- package/APIs.js +79 -79
- package/CHANGELOG.md +201 -166
- package/LICENSE +201 -201
- package/LICENSES/342/200/216/LicenseRef-3rd_party_licenses.txt +1355 -0
- package/README.md +226 -219
- package/bin/ares-config.js +211 -202
- package/bin/ares-device-info.js +30 -30
- package/bin/ares-device.js +222 -219
- package/bin/ares-generate.js +274 -274
- package/bin/ares-inspect.js +179 -179
- package/bin/ares-install.js +223 -223
- package/bin/ares-launch.js +318 -318
- package/bin/ares-log.js +259 -259
- package/bin/ares-novacom.js +220 -220
- package/bin/ares-package.js +347 -336
- package/bin/ares-pull.js +156 -156
- package/bin/ares-push.js +155 -155
- package/bin/ares-server.js +174 -174
- package/bin/ares-setup-device.js +577 -525
- package/bin/ares-shell.js +132 -132
- package/bin/ares.js +166 -166
- package/files/conf/ares.json +50 -49
- package/files/conf/command-service.json +78 -73
- package/files/conf/config.json +31 -31
- package/files/conf/ipk.json +30 -30
- package/files/conf/novacom-devices.json +69 -52
- package/files/conf/query/query-app.json +14 -14
- package/files/conf/query/query-hosted.json +18 -18
- package/files/conf/query/query-package.json +10 -10
- package/files/conf/query/query-service.json +6 -6
- package/files/conf/sdk.json +8 -8
- package/files/conf/template.json +57 -57
- package/files/conf/webos_emul +27 -27
- package/files/conf-base/env/sdk-apollo.json +8 -8
- package/files/conf-base/env/sdk-ose.json +8 -8
- package/files/conf-base/env/sdk-signage.json +8 -0
- package/files/conf-base/env/sdk-tv.json +8 -8
- package/files/conf-base/key/pubkey-signage.pem +9 -0
- package/files/conf-base/profile/config-apollo.json +29 -29
- package/files/conf-base/profile/config-ose.json +29 -29
- package/files/conf-base/profile/config-signage.json +29 -0
- package/files/conf-base/profile/config-tv.json +31 -31
- package/files/conf-base/query/query-app.json +14 -14
- package/files/conf-base/query/query-hosted.json +18 -18
- package/files/conf-base/query/query-package.json +10 -10
- package/files/conf-base/query/query-service.json +6 -6
- package/files/conf-base/query/signage/query-app.json +14 -0
- package/files/conf-base/query/signage/query-service.json +6 -0
- package/files/conf-base/template-conf/apollo-sdk-templates.json +55 -50
- package/files/conf-base/template-conf/ose-templates.json +67 -67
- package/files/conf-base/template-conf/signage-sdk-templates.json +239 -0
- package/files/conf-base/template-conf/tv-sdk-templates.json +57 -57
- package/files/help/ares-config.help +48 -48
- package/files/help/ares-device.help +109 -109
- package/files/help/ares-generate.help +101 -91
- package/files/help/ares-inspect.help +77 -76
- package/files/help/ares-install.help +95 -95
- package/files/help/ares-launch.help +111 -105
- package/files/help/ares-log-pmlogd.help +84 -84
- package/files/help/ares-log.help +101 -101
- package/files/help/ares-novacom.help +68 -68
- package/files/help/ares-package.help +103 -101
- package/files/help/ares-pull.help +38 -38
- package/files/help/ares-push.help +38 -38
- package/files/help/ares-server.help +44 -44
- package/files/help/ares-setup-device.help +196 -156
- package/files/help/ares-shell.help +42 -42
- package/files/help/ares.help +52 -52
- package/files/help/readme.help +23 -23
- package/files/schema/ApplicationDescription.schema +319 -319
- package/files/schema/NovacomDevices.schema +63 -62
- package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/apollo-sdk-templates/native-service/CMakeLists.txt +72 -0
- package/files/templates/apollo-sdk-templates/native-service/services.json +11 -0
- package/files/templates/apollo-sdk-templates/native-service/src/main.c +144 -0
- package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/ose-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/bootplate-web/index.html +88 -88
- package/files/templates/ose-sdk-templates/hosted-webapp/index.html +13 -13
- package/files/templates/ose-sdk-templates/js-service/helloclient.js +31 -31
- package/files/templates/ose-sdk-templates/js-service/helloworld_webos_service.js +188 -188
- package/files/templates/ose-sdk-templates/qml-app/main.qml +68 -68
- package/files/templates/ose-sdk-templates/qmlappinfo/appinfo.json +10 -10
- package/files/templates/ose-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/ose-sdk-templates/serviceinfo/services.json +8 -8
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/clockTable.js +29 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/index.html +53 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/remocon.js +214 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/scheduler.js +123 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/setanddelete.js +25 -0
- package/files/templates/signage-sdk-templates/Backlight_Scheduling/style.css +213 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.css +27 -0
- package/files/templates/signage-sdk-templates/Download_Progress/app.js +407 -0
- package/files/templates/signage-sdk-templates/Download_Progress/index.html +32 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.0/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.1/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/signage.js +8 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.2/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/configuration.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/deviceInfo.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/inputSource.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/power.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/security.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/signage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/sound.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/storage.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/time.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/utility.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.3/video.js +9 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.11/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.4/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.5.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.7/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.0/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.2.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.1.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.3.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/custom/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/README.txt +40 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gpio.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/gps.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/humidity.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/light.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/nfc.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/rfid.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/temperature.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/harmony/thermalPrinter.js +16 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/LICENSE-2.0.txt +202 -0
- package/files/templates/signage-sdk-templates/Download_Progress/js/webOS/webOS.js +1 -0
- package/files/templates/signage-sdk-templates/Download_Progress/res/webossignage_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/css/styles.css +270 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/data/data.json +12 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/index.html +43 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/controller.js +263 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_img_sign.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/images/tpl_01_logo_nike.png +0 -0
- package/files/templates/signage-sdk-templates/Fashion_Multimedia_Ad/res/videos/tpl_01_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/File_Explorer/README.txt +16 -0
- package/files/templates/signage-sdk-templates/File_Explorer/index.html +44 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/Root.js +48 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/definition.js +59 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorer.js +367 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/explorerController.js +462 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/File_Explorer/js/mainController.js +261 -0
- package/files/templates/signage-sdk-templates/File_Explorer/style.css +233 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/css/styles.css +168 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/data/data.json +5 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/AAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/BAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/CAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/DAir.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/EAirline.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/images/tpl_05_img_flight.png +0 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/index.html +32 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/controller.js +235 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/js/helpers/util.js +183 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/readme.txt +29 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/example.json +4 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/package.json +9 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/readme.txt +30 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/routes/flights.js +493 -0
- package/files/templates/signage-sdk-templates/Flight_Schedule/server/server.js +43 -0
- package/files/templates/signage-sdk-templates/Information_Board/css/styles.css +239 -0
- package/files/templates/signage-sdk-templates/Information_Board/data/data.json +49 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/index.html +101 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/controller.js +111 -0
- package/files/templates/signage-sdk-templates/Information_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Board/readme.txt +22 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_main_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Board/res/images/tpl_06_logo_harvard.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/css/styles.css +387 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/data/data.json +185 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/index.html +320 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/controller.js +373 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_l_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_arrow_r_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_close_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_n.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_btn_rotation_p.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_bg_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_list_3_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_05.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_06.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_07.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_08.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_09.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_10.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_11.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_popup_list_12.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_01.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_img_style_02.png +0 -0
- package/files/templates/signage-sdk-templates/Information_Kiosk/res/images/tpl_10_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/index.html +40 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/storage.js +23 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.2/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.6.8/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/led.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.7.6/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/iot.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/power.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/security.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/signage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/sound.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/storage.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/time.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/utility.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.8.1/video.js +1 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/custom1.4.js +14 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/initializer.js +234 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/remocon.js +73 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/scheduler.js +84 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/videoPlayer.js +352 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/remocon.png +0 -0
- package/files/templates/signage-sdk-templates/Local_Content_Scheduling/style.css +99 -0
- package/files/templates/signage-sdk-templates/Mart/css/styles.css +248 -0
- package/files/templates/signage-sdk-templates/Mart/data/data.json +37 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Mart/index.html +81 -0
- package/files/templates/signage-sdk-templates/Mart/js/controller.js +102 -0
- package/files/templates/signage-sdk-templates/Mart/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Mart/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_brand.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_01.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_02.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_03.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_list_04.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_img_tag.png +0 -0
- package/files/templates/signage-sdk-templates/Mart/res/images/tpl_09_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/css/styles.css +40 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/data/data.json +6 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/index.html +28 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/controller.js +427 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/js/helpers/util.js +134 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/images/tpl_02_img_poster.jpg +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_01.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Multimedia_Advertisement/res/videos/tpl_02_video_02.mp4 +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/css/styles.css +163 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/data/data.json +92 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/index.html +197 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/controller.js +158 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_bg_top.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_01.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_02.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_03.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_04.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_05.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_06.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_07.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_08.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_img_menu_09.png +0 -0
- package/files/templates/signage-sdk-templates/Price_Board_for_QSR/res/images/tpl_04_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/index.html +29 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/networkMonitor.js +136 -0
- package/files/templates/signage-sdk-templates/Simple_Network_FailOver/style.css +142 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/css/styles.css +281 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700 Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/index.html +110 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/controller.js +171 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_01_l.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_02.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_03.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_04.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_img_coffe_05.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_01.png +0 -0
- package/files/templates/signage-sdk-templates/Special_Menu_Board/res/images/tpl_03_logo_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/css/styles.css +634 -0
- package/files/templates/signage-sdk-templates/Wayfinder/data/data.json +339 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/fonts/MuseoSans700Italic.otf +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/index.html +171 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/controller.js +447 -0
- package/files/templates/signage-sdk-templates/Wayfinder/js/helpers/util.js +175 -0
- package/files/templates/signage-sdk-templates/Wayfinder/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_btn_back_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_icon_dot_s.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_01.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_02.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_03.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_d.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_all_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_01_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_02_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_floormap_home_03_n.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_img_point_shadow.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_elevator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_escalator.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_exit.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_info.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_parking.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_list_icon_toilet.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_lg.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_shoppingmall_name.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_logo_store.png +0 -0
- package/files/templates/signage-sdk-templates/Wayfinder/res/images/tpl_11_popup_bg.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/css/styles.css +136 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/data/data.json +33 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 300.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 500.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/fonts/Museo Sans 700.otf +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/index.html +51 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/controller.js +265 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/js/helpers/util.js +130 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/ajax.gif +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_cloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_partlycloudy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_rainy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_snowy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_sunny.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_icon_windy.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_01.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_02.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_03.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_04.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_05.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_06.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_img_07.png +0 -0
- package/files/templates/signage-sdk-templates/Weather-dependent_Ad/res/images/tpl_08_logo.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/css/styles.css +312 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/data.json +16 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/newsWidget.json +21 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/shareWidget.json +112 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/data/weatherWidget.json +45 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans300.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans500.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/fonts/MuseoSans700.otf +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/index.html +62 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/controller.js +390 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/js/helpers/util.js +162 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/readme.txt +26 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/Namo.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/NotAvailable.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clear.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/clouds.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/default.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/koreanFt.jpg +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/mist.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/rain.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/snow.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/thunder.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_down_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_01.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_icon_up_02.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_img_news1.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/images/tpl_07_video_dim.png +0 -0
- package/files/templates/signage-sdk-templates/Widget_Overlay/res/videos/tpl_07_video.mp4 +0 -0
- package/files/templates/signage-sdk-templates/appinfo/appinfo.json +11 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/idcap.js +21 -0
- package/files/templates/signage-sdk-templates/idcap_api/1.1.0/js/release_notes.txt +25 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/2.7.0/cordova.webos.js +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova/LICENSE +7025 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/cordova-cd/1.3/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.3/js/release_notes.txt +109 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/files.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/index.html +1203 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#clearCache.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getCurrentTime.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getLocaleList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getOSDLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getPictureProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getServerProperty.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZone.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getTimeZoneList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getUSBLock.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#restartApplication.html +550 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setCurrentTime.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setOSDLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setPictureProperty.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setProperty.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setServerProperty.html +610 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setTimeZone.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setUSBLock.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Configuration.PictureMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#connectWifi.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getPlatformInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getProxyInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSoftApInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getWifiList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setBeaconInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setNetworkInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setProxyInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setSoftApInfo.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#startWps.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo#stopWps.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/DeviceInfo.EddystoneFrame.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.ERROR_CODE.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Error.html +460 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#changeInputSource.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#getInputSourceStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/InputSource#initialize.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#addOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#deleteOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOffTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableAllOnTimer.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#enableWakeOnLan.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#executePowerCommand.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getDPMWakeup.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOffTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getOnTimerList.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPMMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerOnDelay.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#getPowerStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDPMWakeup.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setDisplayMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPMMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power#setPowerOnDelay.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DPMSignalType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.DisplayMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PMMode.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.PowerCommand.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Power.TimerWeek.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#existServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#registerServerCertificate.html +561 -2
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Security#unregisterServerCertificate.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#captureScreen.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#enableCheckScreen.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getFailoverMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getIntelligentAuto.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getLanDaisyChain.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getPowerSaveMode.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSignageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getStudioMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getSystemMonitoringInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getTileInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsageData.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#getUsagePermission.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#registerSystemMonitor.html +573 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setDigitalAudioInputMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setFailoverMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIntelligentAuto.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setIsmMethod.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setLanDaisyChain.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPortraitMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setPowerSaveMode.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setStudioMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setTileInfo.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#setUsagePermission.html +567 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage#unregisterSystemMonitor.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.AutomaticStandbyMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DigitalAudioInput.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.DpmMode.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.EventType.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.FailoverMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.ImgResolution.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.IsmMethod.html +910 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.KeyOperationMode.html +685 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.MonitoringSource.html +775 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Signage.OsdPortraitMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundOut.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#getSoundStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setExternalSpeaker.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setMuted.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setSoundOut.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound#setVolumeLevel.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SoundMode.html +820 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Sound.SpeakerType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#changeLogoImage.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#copyFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#downloadFirmware.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#exists.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#fsync.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#getStorageInfo.html +555 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#listFiles.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#mkdir.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#moveFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#readFile.html +563 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeAll.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#removeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#statFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#unzipFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeApplication.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#upgradeFirmware.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage#writeFile.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppMode.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.AppType.html +640 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Storage.SCAP_URI.html +512 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#addHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delAllHolidaySchedules.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#delHolidaySchedule.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getAllHolidaySchedules.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#getHolidayScheduleMode.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Time#setHolidayScheduleMode.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Utility#createToast.html +561 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getContentRotation.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#getVideoStatus.html +560 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setContentRotation.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setRotatedVideoTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoSize.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/Video#setVideoViewTransform.html +566 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/_global_.html +453 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_deviceInfo.js.html +1860 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_inputSource.js.html +1382 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_power.js.html +2697 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_security.js.html +357 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_signage.js.html +3601 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_storage.js.html +2615 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_time.js.html +720 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/doc/symbols/src/js_video.js.html +1090 -0
- package/files/templates/signage-sdk-templates/scap_api/1.4.1/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/2.7.0/cordova.webos.js +7038 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova/LICENSE +201 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/configuration.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/deviceInfo.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/inputSource.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/power.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/security.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/signage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/sound.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/storage.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/time.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/utility.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/cordova-cd/video.js +1 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/all.css +358 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-bold-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.eot +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.svg +134 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.ttf +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/fonts/mplus-1m-regular-webfont.woff +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/handheld.css +217 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/css/screen.css +405 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/files.html +599 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/index.html +1280 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/intro.html +100 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/all.js +326 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/dessert.css +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-apollo.js +51 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-clj.js +64 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-css.js +78 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-go.js +58 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-hs.js +101 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lisp.js +93 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-lua.js +59 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-ml.js +56 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-n.js +62 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-proto.js +35 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-scala.js +54 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-sql.js +57 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-tex.js +46 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vb.js +61 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-vhdl.js +34 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-wiki.js +53 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-xq.js +67 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/lang-yaml.js +27 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.css +52 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/highlighter/prettify.js +1477 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/javascript/html5.js +6 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#clearCache.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getCurrentTime.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getLocaleList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getOSDLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getPictureProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getServerProperty.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZone.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getTimeZoneList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getUSBLock.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#getVirtualKeyboardLanguage.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#restartApplication.html +572 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setCurrentTime.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setOSDLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setPictureProperty.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setProperty.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setServerProperty.html +632 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setTimeZone.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setUSBLock.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration#setVirtualKeyboardLanguage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Configuration.PictureMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#connectWifi.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getEddystoneInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getExternalInputList.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getNetworkMacInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getPlatformInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getProxyInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSoftApInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getSystemUsageInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getWifiList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#getiBeaconInfo.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setBeaconInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setEddystoneInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setNetworkInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setProxyInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setSoftApInfo.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#setiBeaconInfo.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#startWps.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo#stopWps.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/DeviceInfo.EddystoneFrame.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.ERROR_CODE.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Error.html +482 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#changeInputSource.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#getInputSourceStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/InputSource#initialize.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#addOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#deleteOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOffTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableAllOnTimer.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#enableWakeOnLan.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#executePowerCommand.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getDPMWakeup.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOffTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getOnTimerList.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPMMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerOnDelay.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#getPowerStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDPMWakeup.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setDisplayMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setOnOffTimeSchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPMMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#setPowerOnDelay.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power#unsetOnOffTimeSchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DPMSignalType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.DisplayMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PMMode.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.PowerCommand.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Power.TimerWeek.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#existServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#registerServerCertificate.html +583 -2
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Security#unregisterServerCertificate.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#captureScreen.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#enableCheckScreen.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getFailoverMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getIntelligentAuto.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getLanDaisyChain.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getPowerSaveMode.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSignageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getStudioMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getSystemMonitoringInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getTileInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsageData.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#getUsagePermission.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerRS232CEventListener.html +594 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#registerSystemMonitor.html +595 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setDigitalAudioInputMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setFailoverMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIntelligentAuto.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setIsmMethod.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setLanDaisyChain.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPortraitMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setPowerSaveMode.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setStudioMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setTileInfo.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#setUsagePermission.html +589 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterRS232CEventListener.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage#unregisterSystemMonitor.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.AutomaticStandbyMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DigitalAudioInput.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.DpmMode.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.EventType.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.FailoverMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.ImgResolution.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.IsmMethod.html +932 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.KeyOperationMode.html +707 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.MonitoringSource.html +797 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Signage.OsdPortraitMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundOut.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#getSoundStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setExternalSpeaker.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setMuted.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setSoundOut.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound#setVolumeLevel.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SoundMode.html +842 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Sound.SpeakerType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#changeLogoImage.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#copyFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#decryptFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#downloadFirmware.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#exists.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#fsync.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getFirmwareUpgradeStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getMD5Hash.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#getStorageInfo.html +577 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#listFiles.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#mkdir.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#moveFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#readFile.html +585 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeAll.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#removeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#statFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#unzipFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeApplication.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#upgradeFirmware.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage#writeFile.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppMode.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.AppType.html +662 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Storage.SCAP_URI.html +534 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#addHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delAllHolidaySchedules.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#delHolidaySchedule.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getAllHolidaySchedules.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#getHolidayScheduleMode.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidaySchedule.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#setHolidayScheduleMode.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Time#unsetHolidaySchedule.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Utility#createToast.html +583 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getContentRotation.html +586 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#getVideoStatus.html +582 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setContentRotation.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setRotatedVideoTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoSize.html +588 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/Video#setVideoViewTransform.html +592 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/_global_.html +475 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/media_status.jpg +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/image/setVideoSize.png +0 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_configuration.js.html +2651 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_deviceInfo.js.html +1930 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_inputSource.js.html +1383 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_power.js.html +2942 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_security.js.html +352 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_signage.js.html +3853 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_sound.js.html +1123 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_storage.js.html +2747 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_time.js.html +976 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_utility.js.html +196 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/doc/symbols/src/js_video.js.html +754 -0
- package/files/templates/signage-sdk-templates/scap_api/1.5.0/js/release_notes.txt +148 -0
- package/files/templates/signage-sdk-templates/serviceinfo/package.json +11 -0
- package/files/templates/signage-sdk-templates/serviceinfo/services.json +8 -0
- package/files/templates/signage-sdk-templates/signageicon/icon.png +0 -0
- package/files/templates/signage-sdk-templates/signageicon/largeIcon.png +0 -0
- package/files/templates/signage-sdk-templates/webos-service/helloclient.js +23 -0
- package/files/templates/signage-sdk-templates/webos-service/helloworld_webos_service.js +128 -0
- package/files/templates/tv-sdk-templates/appinfo/appinfo.json +10 -10
- package/files/templates/tv-sdk-templates/bootplate-web/index.html +58 -58
- package/files/templates/tv-sdk-templates/bootplate-web/webOSTVjs-1.2.10/LICENSE-2.0.txt +202 -202
- package/files/templates/tv-sdk-templates/hosted-webapp/index.html +14 -14
- package/files/templates/tv-sdk-templates/js-service/helloworld_service.js +39 -39
- package/files/templates/tv-sdk-templates/packageinfo/packageinfo.json +3 -3
- package/files/templates/tv-sdk-templates/serviceinfo/package.json +11 -11
- package/files/templates/tv-sdk-templates/serviceinfo/services.json +8 -8
- package/lib/base/ares.html +40 -40
- package/lib/base/cli-appdata.js +289 -290
- package/lib/base/cli-control.js +44 -44
- package/lib/base/common-tools.js +29 -29
- package/lib/base/error-handler.js +265 -265
- package/lib/base/file-watcher.js +155 -155
- package/lib/base/help-format.js +147 -147
- package/lib/base/luna.js +178 -178
- package/lib/base/novacom.js +1214 -1202
- package/lib/base/sdkenv.js +59 -59
- package/lib/base/server.js +137 -137
- package/lib/base/setup-device.js +356 -335
- package/lib/base/version-tools.js +79 -79
- package/lib/com.sdk.ares.signage.hostedapp.ipk +0 -0
- package/lib/device.js +1419 -1419
- package/lib/generator.js +408 -377
- package/lib/inspect.js +493 -493
- package/lib/install.js +465 -463
- package/lib/launch.js +607 -605
- package/lib/log.js +584 -584
- package/lib/package.js +2253 -2149
- package/lib/pull.js +231 -231
- package/lib/pusher.js +210 -210
- package/lib/session.js +74 -74
- package/lib/shell.js +193 -193
- package/lib/tar-filter-pack.js +62 -62
- package/lib/util/copy.js +31 -31
- package/lib/util/createFileName.js +40 -40
- package/lib/util/eof.js +30 -30
- package/lib/util/json.js +63 -63
- package/lib/util/merge.js +14 -14
- package/lib/util/objclone.js +40 -40
- package/lib/util/spinner.js +37 -37
- package/npm-shrinkwrap.json +9242 -9242
- package/package.json +100 -100
- package/sbom-info.yaml +1758 -0
- package/scripts/postinstall.js +24 -24
- package/spec/helpers/reporter.js +65 -65
- package/spec/jsSpecs/apiTest/generator.spec.js +372 -372
- package/spec/jsSpecs/apiTest/inspector.spec.js +89 -89
- package/spec/jsSpecs/apiTest/installer.spec.js +67 -67
- package/spec/jsSpecs/apiTest/launcher.spec.js +150 -150
- package/spec/jsSpecs/apiTest/packager.spec.js +194 -194
- package/spec/jsSpecs/apiTest/puller.spec.js +101 -101
- package/spec/jsSpecs/apiTest/pusher.spec.js +103 -103
- package/spec/jsSpecs/apiTest/server.spec.js +115 -115
- package/spec/jsSpecs/apiTest/setupDevice.spec.js +93 -93
- package/spec/jsSpecs/apiTest/shell.spec.js +49 -49
- package/spec/jsSpecs/ares-config.spec.js +88 -88
- package/spec/jsSpecs/ares-device.spec.js +443 -443
- package/spec/jsSpecs/ares-generate.spec.js +401 -397
- package/spec/jsSpecs/ares-inspect.spec.js +252 -252
- package/spec/jsSpecs/ares-install.spec.js +150 -150
- package/spec/jsSpecs/ares-launch.spec.js +303 -301
- package/spec/jsSpecs/ares-log.spec.js +824 -824
- package/spec/jsSpecs/ares-novacom.spec.js +149 -149
- package/spec/jsSpecs/ares-package.spec.js +1277 -1211
- package/spec/jsSpecs/ares-pull.spec.js +157 -157
- package/spec/jsSpecs/ares-push.spec.js +146 -146
- package/spec/jsSpecs/ares-server.spec.js +160 -160
- package/spec/jsSpecs/ares-setup-device.spec.js +299 -300
- package/spec/jsSpecs/ares-shell.spec.js +220 -220
- package/spec/jsSpecs/ares.spec.js +83 -83
- package/spec/jsSpecs/common-spec.js +177 -169
- package/spec/support/jasmine.json +22 -22
- package/spec/tempFiles/com.lg.app.signage.dev_0.0.1_all.ipk +0 -0
- package/spec/tempFiles/nativeApp/auto/pkg_arm64/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/ose/pkg_arm/appinfo.json +8 -8
- package/spec/tempFiles/nativeApp/ose/pkg_arm/package.properties +2 -2
- package/spec/tempFiles/nativeApp/oseEmul/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/nativeApp/rsi/pkg_x86/appinfo.json +9 -9
- package/spec/tempFiles/sign/sign.crt +32 -32
- package/spec/tempFiles/sign/signPriv.key +52 -52
- package/spec/test_data/ares-generate.json +91 -58
- package/spec/test_data/ares.json +50 -50
- package/webos-tools-cli-3.2.0.tgz +0 -0
- package/webos-tools-cli-3.1.2.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/signage",function(l,A,c){var B;function j(C){}if(window.PalmSystem){j("Window.PalmSystem Available");B=l("cordova/plugin/webos/service")}else{j("Window.PalmSystem is NOT Available");B={Request:function(C,D){j(C+" invoked. But I am a dummy because PalmSystem is not available");if(typeof D.onFailure==="function"){D.onFailure({returnValue:false,errorCode:"CORDOVA_ERR",errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var f=null;var g={};function d(C){if(f===null){B.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(D){j("getPlatformInfo: onSuccess");j("version : "+D.sdkVersion);var E=D.sdkVersion.split(".");if(E.length>=1&&E[0]==="1"){g={webOSVer:1,chipset:D.boardType.split("_")[0]}}else{if(E.length>=1&&E[0]==="2"){g={webOSVer:2,chipset:D.boardType.split("_")[0]}}else{if(E.length>=1&&E[0]==="3"){g={webOSVer:3,chipset:D.boardType.split("_")[0]}}else{g={webOSVer:0,chipset:""}}}}f=g.webOSVer;C(g)},onFailure:function(D){j("getPlatformInfo: onFailure");g={webOSVer:0,chipset:""};C(g)}})}else{C(g)}}var w=function(C){var D=m[C];j(JSON.stringify(D,null,3));if(D&&D.getEvent===true){if(m[C].listenerObj){m[C].listenerObj.cancel();m[C].getEvent=false;m[C].listenerObj=null}}};var o=function(D,C){var E=m[D];if(E&&typeof E.createListener==="function"){E.listenerObj=E.createListener(C);E.getEvent=true}};function e(D){if(D.substring(0,"ext://".length)!=="ext://"){j("Bad prefix: "+D);return false}var C=D.substring("ext://".length);j("body is: "+C);var E=C.split(":");if(E.length===2){return E[0]+E[1]}else{if(E.length===1){return E[0]}else{j("Bad Syntax: "+D);return false}}}function u(C,E){for(var D in C){if(C[D]===E){return true}}return false}var r={FAILOVER_MODE:"failover",FAILOVER_PRIORITY:"failoverPriority",IR_OPERATION_MODE:"enableIrRemote",LOCALKEY_OPERATION_MODE:"enableLocalKey",OSD_PORTRAIT_MODE:"osdPortraitMode",TILE_MODE:"tileMode",TILE_ID:"tileId",TILE_ROW:"tileRow",TILE_COLUME:"tileCol",TILE_NATURALMODE:"naturalMode",DPM_MODE:"dpmMode",AUTOMATIC_STANDBY_MODE:"autoSB",ISM_METHOD:"ismmethod",SES_MODE:"smartEnergy",DO_15OFF_MODE:"15off",MONITOR_FAN:"monitorFan",MONITOR_SIGNAL:"monitorSignal",MONITOR_LAMP:"monitorLamp",MONITOR_SCREEN:"monitorScreen",MONITOR_AUDIO:"monitorAudio",AUDIO_SOURCE_HDMI1:"audioSourceHdmi1",AUDIO_SOURCE_HDMI2:"audioSourceHdmi2",AUDIO_SOURCE_DP:"audioSourceDp"};var s=function(C){j("Create Listener for monitorTemperature");var D=B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getTemperature",parameters:{subscribe:true},onSuccess:function(E){j("temperature : "+JSON.stringify(E,null,3));if(E.returnValue===true){var F={source:a.MonitoringSource.THERMOMETER,type:a.EventType.CURRENT_TEMPERATURE,data:{temperature:E.temperature}};if(typeof C==="function"){C(F)}}},onFailure:function(E){j("monitor_temperature : FAIL "+JSON.stringify(E,null,3))}});return D};var i=function(C){j("Create Listener for monitorFan");var D=B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getFanEvent",parameters:{subscribe:true},onSuccess:function(E){j("monitor_fan : "+JSON.stringify(E,null,3));if(E.returnValue===true){var F={source:a.MonitoringSource.FAN,type:a.EventType.FAN_STATUS,data:{status:E.fanFault}};if(typeof C==="function"){C(F)}}},onFailure:function(E){j("monitor_fan : FAIL "+JSON.stringify(E,null,3))}});return D};var k=function(C){j("Create Listener for monitorLamp");var D=B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getLampEvent",parameters:{subscribe:true},onSuccess:function(E){j("monitor_lamp : "+JSON.stringify(E,null,3));if(E.returnValue===true){var F={source:a.MonitoringSource.LAMP,type:a.EventType.LAMP_STATUS,data:{status:E.lampFault}};if(typeof C==="function"){C(F)}}},onFailure:function(E){j("monitor_lamp : FAIL "+JSON.stringify(E,null,3))}});return D};var q=function(C){j("Create Listener for monitorSignal");var D=B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getSignalEvent",parameters:{subscribe:true},onSuccess:function(E){j("monitor_signal : "+JSON.stringify(E,null,3));if(E.returnValue===true){var F={type:a.EventType.SIGNAL_STATUS,source:a.MonitoringSource.SIGNAL,data:{}};if(E.noSignal===true){F.data.status="no_signal"}else{F.data.status="signal_available"}if(typeof C==="function"){C(F)}}},onFailure:function(E){j("monitor_signal : FAIL "+JSON.stringify(E,null,3))}});return D};var x=function(C){j("Create Listener for monitorScreen");var D=B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/getScreenEvent",parameters:{subscribe:true},onSuccess:function(E){j("monitor_screen : "+JSON.stringify(E,null,3));if(E.returnValue===true){var F={source:a.MonitoringSource.SCREEN,type:a.EventType.SCREEN_STATUS,data:{status:E.screen}};if(typeof C==="function"){C(F)}}},onFailure:function(E){j("monitor_screen FAIL : "+JSON.stringify(E,null,3))}});return D};var m={fan:{getEvent:false,listenerObj:null,createListener:i},screen:{getEvent:false,listenerObj:null,createListener:x},temperature:{getEvent:false,listenerObj:null,createListener:s},signal:{getEvent:false,listenerObj:null,createListener:q},lamp:{getEvent:false,listenerObj:null,createListener:k}};var t={row:0,col:0};var a=function(){};a.UNDEFINED="___undefined___";a.OsdPortraitMode={ON:"90",OFF:"off"};a.ImgResolution={HD:"HD",FHD:"FHD",};a.AutomaticStandbyMode={OFF:"off",STANDBY_4HOURS:"4hours"};a.IsmMethod={NORMAL:"NORMAL",ORBITER:"ORBITER",INVERSION:"INVERSION",COLORWASH:"COLORWASH",WHITEWASH:"WHITEWASH",WASHING_BAR:"WASHINGBAR",USER_IMAGE:"USERIMAGE",USER_VIDEO:"USERVIDEO"};a.FailoverMode={OFF:"off",AUTO:"auto",MANUAL:"manual"};a.DigitalAudioInput={HDMI_DP:"hdmi",AUDIO_IN:"audioIn"};a.DpmMode={OFF:"off",POWER_OFF_5SECOND:"5sec",POWER_OFF_10SECOND:"10sec",POWER_OFF_15SECOND:"15sec",POWER_OFF_1MINUTE:"1min",POWER_OFF_3MINUTE:"3min",POWER_OFF_5MINUTE:"5min",POWER_OFF_10MINUTE:"10min"};a.KeyOperationMode={ALLOW_ALL:"normal",POWER_ONLY:"usePwrOnly",BLOCK_ALL:"blockAll"};a.EventType={CURRENT_TEMPERATURE:"CURRENT_TEMPERATURE",FAN_STATUS:"FAN_STATUS",LAMP_STATUS:"LAMP_STATUS",SCREEN_STATUS:"SCREEN_STATUS",SIGNAL_STATUS:"SIGNAL_STATUS"};a.MonitoringSource={FAN:"FAN",LAMP:"LAMP",SIGNAL:"SIGNAL",SCREEN:"SCREEN",THERMOMETER:"THERMOMETER"};function n(D,E,C){if(D.errorCode===undefined||D.errorCode===null){D.errorCode=E}if(D.errorText===undefined||D.errorText===null){D.errorText=C}}function v(F,E,G,C,D){var H={category:F,keys:E};B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:H,onSuccess:function(I){j("On Success");if(I.returnValue===true){var J=G(I.settings);if(J===false){if(typeof D==="function"){D({errorText:"Invalid DB value",errorCode:"DB_ERROR"})}}else{if(typeof C==="function"){j("successCallback");C(J)}else{j("successCallback not registered or is not a function: "+C)}}}else{j("Settings Failed: "+JSON.stringify(I,null,3));if(typeof D==="function"){D({errorText:"Invalid DB value : "+I.errorText,errorCode:"DB_ERROR"})}}},onFailure:function(I){j("On Failure");delete I.returnValue;if(I.settings){j("settings = "+JSON.stringify(I.settings,null,3));var K=G(I.settings);j("errorKey = "+JSON.stringify(I.errorKey,null,3));for(var J=0;J<I.errorKey.length;++J){K[I.errorKey[J]]=a.UNDEFINED}j("cbObj = "+JSON.stringify(K,null,3));if(typeof C==="function"){j("successCallback");C(K)}}else{if(typeof D==="function"){D({errorText:((typeof I.errorText==="undefined")?"DB Failure":I.errorText),errorCode:"DB_ERROR"})}}}});j("Requested Service: luna://com.webos.service.commercial.signage.storageservice/settings/");j("params : "+JSON.stringify(H))}function h(H,G,C,D){var I={category:H,settings:G};j("settings : "+JSON.stringify(G,null,3));var E=false;for(var F in G){if(F){j("has key : "+F);E=true;break}}if(E===false){j("Nothing to set");C();return}B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:I,onSuccess:function(){j("On Success");if(typeof C==="function"){j("SUCCEES CALLBACK");C()}},onFailure:function(J){j("On Failure");delete J.returnValue;if(typeof D==="function"){j("ERROR CALLBACK");D(J)}}});j("Requested Service: luna://com.webos.service.commercial.signage.storageservice/settings/");j("params : "+JSON.stringify(I))}a.prototype.setPortraitMode=function(C,E,H){var I={};var G;function F(J){if(J.portraitMode){for(var K in a.OsdPortraitMode){if(J.portraitMode===a.OsdPortraitMode[K]){return true}}G="Signage.setPortraitMode: Unrecognized OsdPortraintMode : "+J.portraitMode;return false}else{G="Signage.setPortraitMode: portraitMode does not exist.";return false}}if(F(H)){var D=H.portraitMode;I[r.OSD_PORTRAIT_MODE]=D;B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setOsdPortraitMode",parameters:{osdPortraitMode:H.portraitMode},onSuccess:function(J){C()},onFailure:function(J){if(J.errorText.indexOf("Unknown method")!==-1){h("commercial",I,C,E)}else{E({errorCode:J.errorCode,errorText:J.errorText})}}});j("setPortraitMode Done")}else{E({errorCode:"BAD_PARAMETER",errorText:G})}};a.prototype.setFailoverMode=function(D,F,L){var E={};var G;function C(M){j("options:"+JSON.stringify(M,null,3));var P=M.failoverMode;if(P){if(P.mode){if(P.mode===a.FailoverMode.MANUAL){if(P.priority){if(P.priority.length===0||typeof P.priority.length==="undefined"){return false}else{return true}}else{G="priority should be present when mode is MANUAL.";return false}}else{if(P.priority){G="This priority is available only if mode is : Signage.FailoverMode.MANUAL";return false}else{var O=false;j("Mode is: "+P.mode);for(var N in a.FailoverMode){if(P.mode===a.FailoverMode[N]){j("Matched with: "+a.FailoverMode[N]);O=true}}if(!O){j("Unrecognized failoverMode : "+P.mode);G="Unrecognized failoverMode : "+P.mode;return false}else{return true}}}}else{if(!P.priority){return true}else{j("Unrecognized failoverMode : "+P.mode);G="Unrecognized failoverMode : "+P.mode;return false}}}else{G="Fail over mode not set : ";return false}}if(C(L)){var I=L.failoverMode;if(!I.mode&&!I.priority){D()}else{if(I.mode===a.FailoverMode.MANUAL){B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setManualFailoverPrioirty",parameters:{priority:I.priority},onSuccess:function(M){j("onSuccess");if(M.returnValue){D()}else{j("FAILED: "+M.errorText);F({errorCode:M.errorCode,errorText:M.errorText})}},onFailure:function(M){j("onFailure");j("FAILED: "+M.errorText);F({errorCode:M.errorCode,errorText:M.errorText})}})}else{if(I.mode){var J=I.mode;j("mode: "+I.mode);E[r.FAILOVER_MODE]=J;j("Set: "+JSON.stringify(E,null,3));h("commercial",E,D,F);j("setFailoverMode Done")}else{var H={errorCode:"BAD_PARAMETER",errorText:"Mode should be set."};F(H)}}}}else{var K={errorCode:"BAD_PARAMETER",errorText:G};F(K)}};a.prototype.getFailoverMode=function(C,D){try{B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFailoverPrioirty",parameters:{},onSuccess:function(F){j("onSuccess");if(F.returnValue){var J=[];for(var H=0;H<F.priority.length;H++){var I=F.priority[H].split("/");var G="";if(typeof I[3]==="undefined"){J.push("ext://"+I[2].toLowerCase())}else{J.push("ext://"+I[2].toLowerCase()+":1")}}C({priority:J,mode:F.mode})}else{j("FAILED: "+F.errorText);D({errorCode:F.errorCode,errorText:F.errorText})}},onFailure:function(F){j("onFailure");j("FAILED: "+F.errorText);D({errorCode:F.errorCode,errorText:F.errorText})}})}catch(E){j("EXCEPTION"+E);D({errorCode:"SGFO",errorText:"Signage.getFailoverMode occur error during operaation."})}};function y(E,C){var D=typeof E;j("mytype: "+D);j("type: "+C);if(D==="undefined"){return true}else{if(D===C){return E}else{return false}}}a.prototype.setTileInfo=function(C,D,G){var F;var E=function(R,N,S){var J=typeof R.tileInfo.enabled;j("enabledType:"+J);if(J!=="undefined"&&J!=="boolean"){F="enabled should be a boolean";return false}var P=function(U){var T=new RegExp(/^[0-9]+$/g).exec(U);if(T){return false}else{return true}};if(R.tileInfo){var Q=R.tileInfo.row;if(typeof Q!=="undefined"){if(P(Q)){F="row should be a natural number :"+Q;return false}else{if(Q>N||Q<1){F="row should be 0<n<"+(N+1)+" but :"+Q;return false}}}else{return true}var L=R.tileInfo.column;if(typeof L!=="undefined"){if(P(L)){F="column should be a natural number :"+L;return false}else{if(L>S||L<1){F="column should be 0<n<"+(S+1)+" but :"+L;return false}}}else{return true}var K=R.tileInfo.tileId;if(typeof K!=="undefined"){if(P(K)){F="id should be a natural number :"+K;return false}else{if(K<1){F="id should be bigger than 0 but :"+K;return false}else{var M=t.row;if(Q){M=Q}var O=t.column;if(L){O=L}j("curRow : "+M);j("curCol : "+O);j("id : "+K);if(K>O*M){F="ID should be less than curRow*curCol";return false}}}}else{return true}}else{F="Tile info is mandatory";return false}return true};var H=15;var I=15;B.Request("luna://com.webos.service.config",{method:"getConfigs",parameters:{configNames:["commercial.video.tileRowMax","commercial.video.tileColMax"]},onSuccess:function(K){j("onSuccess");if(K.returnValue){H=K.configs["commercial.video.tileRowMax"];I=K.configs["commercial.video.tileColMax"];if(E(G,H,I)===true){var J=G.tileInfo;var M={};if(typeof J.enabled==="boolean"){if(J.enabled){M[r.TILE_MODE]="on"}else{M[r.TILE_MODE]="off"}}if(J.row){M[r.TILE_ROW]=J.row.toString()}if(J.column){M[r.TILE_COLUME]=J.column.toString()}if(J.tileId){M[r.TILE_ID]=J.tileId.toString()}if(typeof J.naturalMode==="boolean"){if(J.naturalMode){M[r.TILE_NATURALMODE]="on"}else{M[r.TILE_NATURALMODE]="off"}}j("Set: "+JSON.stringify(M,null,3));var L=function(){j("Do callback");if(J.row){t.row=J.row}if(J.column){t.column=J.column}if(typeof C==="function"){j("Invoke successCallback");C();j("Invoked successCallback")}};h("commercial",M,L,D);j("setTileInfo Done")}else{var N={errorCode:"BAD_PARAM",errorText:F};D(N)}}else{j("FAILED: "+K.errorText);D({errorCode:K.errorCode,errorText:K.errorText})}},onFailure:function(J){j("onFailure");j("FAILED: "+J.errorText);D({errorCode:J.errorCode,errorText:J.errorText})}})};function p(C){if(C==="on"){return true}else{return false}}a.prototype.getTileInfo=function(C,D){var F=function(G){var H={};j("settings Value: "+JSON.stringify(G,null,3));H.enabled=p(G[r.TILE_MODE]);H.row=parseInt(G[r.TILE_ROW],10);H.column=parseInt(G[r.TILE_COLUME],10);H.tileId=parseInt(G[r.TILE_ID],10);H.naturalMode=p(G[r.TILE_NATURALMODE]);j("Return Value: "+JSON.stringify(H,null,3));return H};var E=[r.TILE_MODE,r.TILE_ROW,r.TILE_COLUME,r.TILE_ID,r.TILE_NATURALMODE];v("commercial",E,F,C,D)};a.prototype.getSignageInfo=function(C,D){B.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["commercial.unsupportedFeatures"]},onSuccess:function(E){if(typeof C==="function"&&E.returnValue===true){var H=false;var F=E.configs["commercial.unsupportedFeatures"];for(var G=0;G<F.length;G++){if(F[G].toLowerCase()==="ismmethod"){H=true;break}}B.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getSignageInformation",parameters:{},onSuccess:function(J){if(typeof C==="function"){j(J.signageInfo);if(typeof J.signageInfo.digitalAudioInputMode!=="undefined"){var I={};for(key in J.signageInfo.digitalAudioInputMode){I[key.toLowerCase()]=J.signageInfo.digitalAudioInputMode[key].toLowerCase()}J.signageInfo.digitalAudioInputMode=I}if(H===true){delete J.signageInfo.ismMethod}C(J.signageInfo)}},onFailure:function(I){delete I.returnValue;if(typeof D==="function"){D(I)}}})}},onFailure:function(E){delete E.returnValue;if(typeof D==="function"){D(E)}}})};a.prototype.enableCheckScreen=function(C,D,G){var F;var E=function(J){if(typeof J.checkScreen!=="undefined"||J.checkScreen!==null){return true}else{F="need options.checkScreen.";return false}};if(E(G)){var H={checkScreen:(G.checkScreen===true?"on":"off")};j("Set: "+JSON.stringify(H,null,3));h("commercial",H,C,D);j("enableCheckScreen Done")}else{var I={errorCode:"BAD_PARAMETER",errorText:F};D(I)}};a.prototype.setIsmMethod=function(C,D,G){var H={};var F;function E(I,L,K){if(I.ismMethod){if((L===false&&I.ismMethod===a.IsmMethod.USER_IMAGE)||(K===false&&(I.ismMethod===a.IsmMethod.USER_IMAGE||I.ismMethod===a.IsmMethod.USER_VIDEO))){F="no supported ismMethod : "+I.ismMethod;return false}for(var J in a.IsmMethod){if(I.ismMethod===a.IsmMethod[J]){return true}}F="Unrecognized ismMethod : "+I.ismMethod;return false}else{F="ismMethod does not exist.";return false}}B.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["commercial.applist.disablePhoto","commercial.unsupportedFeatures"]},onSuccess:function(R){if(typeof C==="function"&&R.returnValue===true){var O=true;var N=true;var P=true;var I=R.configs["commercial.applist.disablePhoto"];for(var M=0;M<I.length;M++){if(I[M].toLowerCase()==="com.webos.app.ism"){O=false;break}}var Q=R.configs["commercial.unsupportedFeatures"];for(var L=0;L<Q.length;L++){if(Q[L].toLowerCase()==="usb"){O=false;N=false}else{if(Q[L].toLowerCase()==="ismmethod"){P=false}}}if(P===false){var K={};n(K,"SSIM","unsupported feature");D(K);return}if(E(G,O,N)){if(G.ismMethod){var J=G.ismMethod;j("ismMethod : "+J);H[r.ISM_METHOD]=J}j("Set: "+JSON.stringify(H,null,3));h("commercial",H,C,D);j("setIsmMethod Done")}else{var K={errorCode:"BAD_PARAMETER",errorText:F};D(K)}}},onFailure:function(I){delete I.returnValue;if(typeof D==="function"){D(I)}}})};a.prototype.setDigitalAudioInputMode=function(C,D,G){var F;function E(I){if(I.digitalAudioInputList){for(var J in I.digitalAudioInputList){if(J){var M=I.digitalAudioInputList[J];var L=false;for(var K in a.DigitalAudioInput){if(M===a.DigitalAudioInput[K]){L=true}}if(!L){F="Invalid Audio Input : "+M;return false}}}return true}else{F="digitalAudioInputList does not exist.";return false}}if(E(G)){B.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setDigitalAudioInputList",parameters:{digitalAudioInputList:G.digitalAudioInputList},onSuccess:function(){if(typeof C==="function"){C()}},onFailure:function(I){delete I.returnValue;if(typeof D==="function"){D(I)}}})}else{var H={errorCode:"BAD_PARAMETER",errorText:F};D(H)}};var z=false;a.prototype.registerSystemMonitor=function(D,H,L){var K=["fan","signal","lamp","screen","temperature"];var I;var J="BAD_PARAMETER";j("Listeners are: "+JSON.stringify(m,null,3));function C(M){if(z===true){I="Not ready to register monitor now.";J="SYSTEM_ERROR";return false}j("options are: "+JSON.stringify(M,null,3));if(typeof M.eventHandler!=="function"){I="No event handler was given or event hadnler is not a function";return false}if(M.monitorConfiguration){for(var O in M.monitorConfiguration){if(O){var Q=false;for(var N=0;N<K.length;++N){if(O===K[N]){j("Found key: "+K[N]);Q=true}}if(!Q){I="Invalid Monitoring source : "+O;return false}var P=M.monitorConfiguration[O];j("value: "+P);if(typeof P!=="boolean"){I="Invalid value : "+P;return false}}}return true}else{I="monitorConfiguration does not exist.";return false}}if(C(L)){var F=function(){j("Canceled all previous message subscriptions");var N=L.eventHandler;for(var M in L.monitorConfiguration){if(M){var O=L.monitorConfiguration[M];if(O===true){j("Add listener for : "+M);o(M,N)}}}j("Monitoring Setup : "+JSON.stringify(m,null,3));j("Start Polling : ");B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/startMonitor",parameters:{},onSuccess:function(P){j("On Success");if(P.returnValue===true){if(typeof D==="function"){D()}}else{if(typeof H==="function"){H(P)}}z=false},onFailure:function(P){j("On Failure");delete P.returnValue;if(typeof H==="function"){H(P)}z=false}})};var E=function(M){H(M)};j("Cancel all previous message subscriptions");z=true;b(F,E)}else{var G={errorCode:J,errorText:I};H(G)}};a.prototype.unregisterSystemMonitor=function(C,D){b(C,D);j("After unregister, _gSystemMonitoringSetup are: "+JSON.stringify(m,null,3))};function b(C,D){j("cancelAllSubscription> setup are: "+JSON.stringify(m,null,3));for(var E in m){if(E){w(E)}}j("Stop Polling");B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"systemMonitor/stopMonitor",parameters:{},onSuccess:function(F){j("On Success");if(F.returnValue===true){if(typeof C==="function"){C()}}else{if(typeof D==="function"){D(F)}}},onFailure:function(F){j("On Failure");delete F.returnValue;if(typeof D==="function"){D(F)}}})}a.prototype.getSystemMonitoringInfo=function(C,D){if(m){C({fan:m.fan.getEvent,signal:m.signal.getEvent,lamp:m.lamp.getEvent,screen:m.screen.getEvent,temperature:m.temperature.getEvent})}else{var E={errorCode:"ERROR",errorText:"Failed to get system monitoring setup"};D(E)}};a.prototype.setPowerSaveMode=function(C,D,G){var F;function E(I){if(I.powerSaveMode){for(var J in I.powerSaveMode){if(J){var K=I.powerSaveMode[J];if(J==="ses"||J==="do15MinOff"){if(typeof K!=="boolean"){F="Invalid value : "+K;return false}}else{if(J==="automaticStandby"){if(!u(a.AutomaticStandbyMode,K)){F="Invalid automaticStandby value : "+K;return false}}else{if(J==="dpmMode"){if(!u(a.DpmMode,K)){F="Invalid dpmMode value : "+K;return false}}else{F="Unknown value : "+J;return false}}}}}return true}else{F="powerSaveMode does not exist.";return false}}if(E(G)){j(G.powerSaveMode);B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"setPowerSaveMode",parameters:{mode:G.powerSaveMode},onSuccess:function(I){j("onSuccess");if(I.returnValue){C(I.mode)}else{j("FAILED: "+I.errorText);D({errorCode:I.errorCode,errorText:I.errorText})}},onFailure:function(I){j("onFailure");j("FAILED: "+I.errorText);D({errorCode:I.errorCode,errorText:I.errorText})}})}else{var H={errorCode:"BAD_PARAMETER",errorText:F};D(H)}};a.prototype.getPowerSaveMode=function(C,D){B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getPowerSaveMode",parameters:{},onSuccess:function(E){j("onSuccess");if(E.returnValue){C(E.mode)}else{j("FAILED: "+E.errorText);D({errorCode:E.errorCode,errorText:E.errorText})}},onFailure:function(E){j("onFailure");j("FAILED: "+E.errorText);D({errorCode:E.errorCode,errorText:E.errorText})}})};a.prototype.setUsagePermission=function(D,G,K){var F={};var H;function C(L){if(L.policy){for(var M in L.policy){if(M){var N=L.policy[M];if(M==="remoteKeyOperationMode"||M==="localKeyOperationMode"){if(!u(a.KeyOperationMode,N)){H="Invalid KeyOperationMode value : "+N;return false}}else{H="Unknown value : "+M;return false}}}return true}else{H="policy does not exist.";return false}}if(C(K)){if(K.policy.localKeyOperationMode){var J=K.policy.localKeyOperationMode;j("portraitMode: "+J);F[r.LOCALKEY_OPERATION_MODE]=J}if(K.policy.remoteKeyOperationMode){var I=K.policy.remoteKeyOperationMode;j("portraitMode: "+I);F[r.IR_OPERATION_MODE]=I}j("Set: "+JSON.stringify(F,null,3));h("hotelMode",F,D,G);j("setPolicy Done")}else{var E={errorCode:"BAD_PARAMETER",errorText:H};G(E)}};a.prototype.getUsagePermission=function(C,D){var F=function(G){j("settings: "+JSON.stringify(G,null,3));var H={};H.remoteKeyOperationMode=G[r.IR_OPERATION_MODE];H.localKeyOperationMode=G[r.LOCALKEY_OPERATION_MODE];j("cbObj: "+JSON.stringify(H,null,3));return H};var E=[r.IR_OPERATION_MODE,r.LOCALKEY_OPERATION_MODE];v("hotelMode",E,F,C,D)};a.prototype.getUsageData=function(C,D){var E=false;var F=false;var H={uptime:false,totalUsed:false};function G(){j("accessResult");if(E===true&&F===true){j("CB Object: "+JSON.stringify(H,null,3));if(H.uptime===false||H.totalUsed===false){D({errorCode:"CORDOVA_FAIL",errorText:"Failed to get usage data"});return}else{j("SUCCESS");C(H);return}}else{j("Not Yet")}}B.Request("luna://com.webos.service.tv.signage/",{method:"getUTT",parameters:{},onSuccess:function(I){j("On getUTT Success");E=true;if(I.returnValue===true){j("UTT is :"+I.UTT);H.totalUsed=I.UTT}G()},onFailure:function(I){j("On getUTT Failure :"+JSON.stringify(I,null,3));E=true;G()}});B.Request("luna://com.webos.service.tv.signage/",{method:"dsmp/getElapsedTime",parameters:{},onSuccess:function(I){j("On getElapsedTime Success");F=true;j("result: "+JSON.stringify(I,null,3));if(I.returnValue===true){var J=I.elapsedTime;H.uptime=J;j("Elapsed!!: "+J)}G()},onFailure:function(I){j("On getSystemSettings Failure "+JSON.stringify(I,null,3));F=true;G()}})};a.prototype.captureScreen=function(C,D,E){var F={save:(E===undefined||E===null||E.save===undefined?false:E.save)};if(E!==undefined&&E!==null&&E.thumbnail!==undefined&&E.thumbnail===true){F.width=128;F.height=72}else{if(E.imgResolution===a.ImgResolution.FHD){F.width=1920;F.height=1080}else{F.width=1280;F.height=720}}B.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"captureScreen",parameters:F,onSuccess:function(G){j("On Success");if(G.returnValue===true){C({data:G.data,size:G.size,encoding:G.encoding})}else{D({errorCode:G.errorCode,errorText:G.errorText})}},onFailure:function(G){j("On Failure");D({errorCode:G.errorCode,errorText:G.errorText})}})};a.prototype.setIntelligentAuto=function(D,E,F){j("setIntelligentAuto: "+F.enabled);if(F.enabled===null&&typeof E==="function"){var C={};n(C,"SSIA","Signage.setIntelligentAuto returns failure. command was not defined.");E(C);j("Signage.setIntelligentAuto invalid ");return}B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{intelligentAuto:(F.enabled===true)?"on":"off"}},onSuccess:function(G){j("setIntelligentAuto: On Success");if(G.returnValue===true){if(typeof D==="function"){D()}}},onFailure:function(G){j("setIntelligentAuto: On Failure");delete G.returnValue;if(typeof E==="function"){n(G,"SSIA","Signage.setIntelligentAuto returns failure.");E(G)}}});j("Signage.setIntelligentAuto Done")};a.prototype.getIntelligentAuto=function(C,D){j("getIntelligentAuto: ");B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["intelligentAuto"]},onSuccess:function(E){j("getIntelligentAuto: On Success");if(E.returnValue===true){var F={};F.enabled=E.settings.intelligentAuto;if(typeof C==="function"){C(F)}}},onFailure:function(E){j("getIntelligentAuto: On Failure");delete E.returnValue;if(typeof D==="function"){n(E,"SGIA","Signage.getIntelligentAuto returns failure.");D(E)}}});j("Signage.getIntelligentAuto Done")};a.prototype.setStudioMode=function(D,E,F){j("setStudioMode: "+F.enabled);if(F.enabled===null&&typeof E==="function"){var C={};n(C,"SSSM","Signage.setStudioMode returns failure. command was not defined.");E(C);j("Signage.setStudioMode invalid ");return}B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{studioMode:(F.enabled===true)?"on":"off"}},onSuccess:function(G){j("setStudioMode: On Success");if(G.returnValue===true){if(typeof D==="function"){D()}}},onFailure:function(G){j("setStudioMode: On Failure");delete G.returnValue;if(typeof E==="function"){n(G,"SSSM","Signage.setStudioMode returns failure.");E(G)}}});j("Signage.setStudioMode Done")};a.prototype.getStudioMode=function(C,D){j("getStudioMode: ");B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["studioMode"]},onSuccess:function(E){j("getStudioMode: On Success");if(E.returnValue===true){var F={};F.enabled=(E.settings.studioMode==="on")?true:false;if(typeof C==="function"){C(F)}}},onFailure:function(E){j("getStudioMode: On Failure");delete E.returnValue;if(typeof D==="function"){n(E,"SGSM","Signage.getStudioMode returns failure.");D(E)}}});j("Signage.getStudioMode Done")};a.prototype.setLanDaisyChain=function(C,D,E){B.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["tv.model.supportCommerLanDaisyChain"]},onSuccess:function(F){if(F.returnValue===true){if(F.configs["tv.model.supportCommerLanDaisyChain"]===false){n(F,"SSLD","Signage.setLanDaisyChain returns failure. unsupported feature. ");D(F);j("Signage.setLanDaisyChain invalid ");return}else{if(E.enabled===null&&typeof D==="function"){var F={};n(F,"SSLD","Signage.setLanDaisyChain returns failure. command was not defined.");D(F);j("Signage.setLanDaisyChain invalid ");return}j("setLanDaisyChain: "+E.enabled);B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{lanDaisyChain:(E.enabled===true)?"on":"off"}},onSuccess:function(G){j("setLanDaisyChain: On Success");if(G.returnValue===true){if(typeof C==="function"){C()}}},onFailure:function(G){j("setLanDaisyChain: On Failure");delete G.returnValue;if(typeof D==="function"){n(G,"SSIA","Signage.setLanDaisyChain returns failure.");D(G)}}});j("Signage.setLanDaisyChain Done")}}},onFailure:function(F){delete F.returnValue;if(typeof D==="function"){D(F)}}})};a.prototype.getLanDaisyChain=function(C,D){B.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["tv.model.supportCommerLanDaisyChain"]},onSuccess:function(E){if(E.returnValue===true){if(E.configs["tv.model.supportCommerLanDaisyChain"]===false){n(E,"SSLD","Signage.getLanDaisyChain returns failure. unsupported feature. ");D(E);j("Signage.getLanDaisyChain invalid ");return}else{j("getLanDaisyChain: ");B.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["lanDaisyChain"]},onSuccess:function(F){j("getLanDaisyChain: On Success");if(F.returnValue===true){var G={};G.enabled=(F.settings.lanDaisyChain==="on")?true:false;if(typeof C==="function"){C(G)}}},onFailure:function(F){j("getLanDaisyChain: On Failure");delete F.returnValue;if(typeof D==="function"){n(F,"SSLD","Signage.getLanDaisyChain returns failure.");D(F)}}});j("Signage.getLanDaisyChain Done")}}},onFailure:function(E){delete E.returnValue;if(typeof D==="function"){D(E)}}})};a.prototype.addEventListener=o;a.prototype.removeEventListener=w;c.exports=a});Signage=cordova.require("cordova/plugin/signage");
|
package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/sound.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/sound",function(c,e,b){function d(k){}var f;if(window.PalmSystem){d("Window.PalmSystem Available");f=c("cordova/plugin/webos/service")}else{f={Request:function(k,l){d(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var h=function(){};function i(l,m,k){if(l.errorCode===undefined||l.errorCode===null){l.errorCode=m}if(l.errorText===undefined||l.errorText===null){l.errorText=k}}var g=null;var a={};function j(k){if(g===null){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(l){d("getPlatformInfo: onSuccess");d("version : "+l.sdkVersion);var m=l.sdkVersion.split(".");if(m.length>=1&&m[0]==="1"){a={webOSVer:1,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="2"){a={webOSVer:2,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="3"){a={webOSVer:3,chipset:l.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}g=a.webOSVer;k(a)},onFailure:function(l){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};k(a)}})}else{k(a)}}h.SoundMode={Standard:"standard",Cinema:"movie",ClearVoice:"news",Sports:"sports",Music:"music",Game:"game"};h.SpeakerType={SignageSpeaker:"tv_speaker",LGSoundSync:"bt_soundbar"};h.prototype.getSoundStatus=function(k,l){d("getSoundStatus: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(n){if(n.returnValue===true){var m=n.version;var o="";if(m[0]==="1"&&m[2]==="5"){o="com.webos.surfacemanager.supportCommerSoundSetting"}else{o="tv.model.supportCommerSoundSetting"}f.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:[o]},onSuccess:function(p){d("getConfigs: On Success");if(p.returnValue===true){var q=p.configs[o];if(q===true){f.Request("luna://com.webos.audio/",{method:"getVolume",onSuccess:function(r){d("getSoundStatus: On Success");if(r.returnValue===true){var s={};s.level=r.volume;s.muted=r.muted;f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["enableSpeaker"]},onSuccess:function(t){d("getSoundStatus: On Success 2");if(t.returnValue===true){s.externalSpeaker=(t.settings.enableSpeaker==="on"?true:false);if(typeof k==="function"){k(s)}}},onFailure:function(t){d("getSoundStatus: On Failure 2");delete t.returnValue;if(typeof l==="function"){i(t,"SGSS","Sound.getSoundStatus returns failure.");l(t)}}})}},onFailure:function(r){d("getSoundStatus: On Failure");delete r.returnValue;if(typeof l==="function"){i(r,"SGSS","Sound.getSoundStatus returns failure.");l(r)}}})}else{delete p.returnValue;if(typeof l==="function"){i(p,"SGSS","unsupported feature");l(p)}return}d("Sound.getSoundStatus Done")}},onFailure:function(p){d("getConfigs: On Failure");delete p.returnValue;if(typeof l==="function"){i(p,"SGSS","Sound.getSoundStatus returns failure.");l(p)}}})}},onFailure:function(m){delete m.returnValue;if(typeof l==="function"){i(m,"SGSS","Sound.getSoundStatus returns failure.");l(m)}}});d("Sound.getSoundStatus Done")};h.prototype.setVolumeLevel=function(l,m,n){d("setVolumeLevel: "+JSON.stringify(n));if(typeof n.level!=="number"||isNaN(n.level)||n.level<0||n.level>100){if(typeof m==="function"){var k={};i(k,"SSVL","Sound.setVolumeLevel returns failure. out of range or invalid parameter type.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/sound/",{method:"setVolumeLevel",parameters:n,onSuccess:function(o){d("setVolumeLevel success");l()},onFailure:function(o){delete o.returnValue;if(typeof m==="function"){i(o,"SSVL","Sound.setVolumeLevel returns failure.");m(o)}}});d("Sound.setVolumeLevel Done")};h.prototype.setExternalSpeaker=function(l,m,o){d("setExternalSpeaker: "+JSON.stringify(o));if(typeof o.externalSpeaker!=="boolean"){if(typeof m==="function"){var k={};i(k,"SSVL","Sound.setExternalSpeaker returns failure. out of range or invalid parameter type.");m(k)}return}var n=null;switch(o.externalSpeaker){case true:n="on";break;case false:n="off";break}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{enableSpeaker:n}},onSuccess:function(){d("setExternalSpeaker: On Success");if(typeof l==="function"){l()}},onFailure:function(p){d("setExternalSpeaker: On Failure");delete p.returnValue;if(typeof m==="function"){i(p,"SSES","Sound.setExternalSpeaker returns failure.");m(p)}}});d("Sound.setExternalSpeaker Done")};h.prototype.setMuted=function(l,m,n){d("setMuted: "+JSON.stringify(n));if(typeof n.muted!=="boolean"){if(typeof m==="function"){var k={};i(k,"SSM","Sound.setMuted returns failure. out of range or invalid parameter type.");m(k)}return}f.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"version",onSuccess:function(p){var o=p.version;var q="";if(o[0]==="1"&&o[2]==="5"){q="com.webos.surfacemanager.supportCommerSoundSetting"}else{q="tv.model.supportCommerSoundSetting"}f.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:[q]},onSuccess:function(r){d("getConfigs: On Success");if(r.returnValue===true){var s=r.configs[q];if(s===true){f.Request("luna://com.webos.audio/",{method:"setMuted",parameters:{muted:n.muted},onSuccess:function(t){d("setMuted: On Success");if(t.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(t){d("setMuted: On Failure");delete t.returnValue;if(typeof m==="function"){i(t,"SSM","Sound.setMuted returns failure.");m(t)}}})}else{delete r.returnValue;if(typeof m==="function"){i(r,"SSM","unsupported feature");m(r)}return}}},onFailure:function(r){d("getConfigs: On Failure");delete r.returnValue;if(typeof m==="function"){i(r,"SSM","Sound.setMuted returns failure");m(r)}}})},onFailure:function(o){delete o.returnValue;if(typeof m==="function"){i(o,"SSM","Sound.setMuted returns failure.");m(o)}}});d("Sound.setMuted Done")};h.prototype.setSoundMode=function(l,m,n){var o=null;switch(n.mode){case h.SoundMode.Standard:o="standard";break;case h.SoundMode.Cinema:o="movie";break;case h.SoundMode.ClearVoice:o="news";break;case h.SoundMode.Sports:o="sports";break;case h.SoundMode.Music:o="music";break;case h.SoundMode.Game:o="game";break}if(((n.balance<-50)||(n.balance>50))&&isNumber(n.balance)){var k={};i(k,"SSSM","Sound.setSoundMode returns failure. Out of range.");m(k);d("Sound.setSoundMode invalid range")}d("setSoundMode: "+o);if(o===null&&typeof m==="function"){var k={};i(k,"SSSM","Sound.setSoundMode returns failure. command was not defined.");m(k);d("Sound.setSoundMode invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"sound",settings:{soundMode:o,audioBalance:n.balance}},onSuccess:function(p){d("setSoundMode: On Success");if(p.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(p){d("setSoundMode: On Failure");delete p.returnValue;if(typeof m==="function"){i(p,"SSSM","Sound.setSoundMode returns failure.");m(p)}}});d("Sound.setSoundMode Done")};h.prototype.getSoundMode=function(k,l){d("getSoundMode: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"sound",keys:["soundMode","audioBalance"]},onSuccess:function(m){d("getSoundMode: On Success");if(m.returnValue===true){var n={};n.mode=m.settings.soundMode;n.balance=m.settings.audioBalance;if(typeof k==="function"){k(n)}}},onFailure:function(m){d("getSoundMode: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"SGSM","Sound.getSoundMode returns failure.");l(m)}}});d("Sound.getSoundMode Done")};h.prototype.setSoundOut=function(k,l,m){j(function(o){if(o.webOSVer!==3){var n={};i(n,"SSSO","Sound.setSoundOut returns failure. Only webOS 3.0 support setSoundOut API.");l(n);d("not support setSoundOut");return}f.Request("luna://com.webos.service.config/",{method:"getConfigs",parameters:{configNames:["system.supportBluetoothFeatures"]},onSuccess:function(p){d("getConfigs: On Success");if(p.returnValue===true){var r=p.configs["system.supportBluetoothFeatures"];if(r.indexOf("btsound")===-1){if(m.speakerType===h.SpeakerType.LGSoundSync){var p={};i(p,"SSSO","Sound.setSoundOut returns failure. bluetooth soundsync is not supported.");l(p);return}}var q=null;switch(m.speakerType){case h.SpeakerType.SignageSpeaker:q="tv_speaker";break;case h.SpeakerType.LGSoundSync:q="bt_soundbar";break}d("setSoundOut: "+q);if(q===null&&typeof l==="function"){var p={};i(p,"SSSO","Sound.setSoundOut returns failure. command was not defined.");l(p);d("Sound.setSoundOut invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"sound",settings:{soundOutput:q}},onSuccess:function(s){d("setSoundOut: On Success");if(s.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(s){d("setSoundOut: On Failure");delete s.returnValue;if(typeof l==="function"){i(s,"SSSO","Sound.setSoundOut returns failure.");l(s)}}});d("Sound.setSoundOut Done")}},onFailure:function(p){d("getConfigs: On Failure");delete p.returnValue;if(typeof l==="function"){i(p,"SSSO","unsupported feature");l(p)}}})})};h.prototype.getSoundOut=function(k,l){j(function(n){if(n.webOSVer!==3){var m={};i(m,"SGSO","Sound.getSoundOut returns failure. Only webOS 3.0 support getSoundOut API.");l(m);d("not support getSoundOut");return}d("getSoundOut: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"sound",keys:["soundOutput"]},onSuccess:function(o){d("getSoundOut: On Success");if(o.returnValue===true){var p={};p.speakerType=o.settings.soundOutput;if(typeof k==="function"){k(p)}}},onFailure:function(o){d("getSoundOut: On Failure");delete o.returnValue;if(typeof l==="function"){i(o,"SGSO","Sound.getSoundOut returns failure.");l(o)}}});d("Sound.getSoundOut Done")})};b.exports=h});Sound=cordova.require("cordova/plugin/sound");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/storage",function(c,b,d){var a;function e(h){}if(window.PalmSystem){e("Window.PalmSystem Available");a=c("cordova/plugin/webos/service")}else{a={Request:function(h,i){e(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}function g(h){if(h){if(h.indexOf("://")===-1){e("INVALID URI"+h);return false}else{e("GOOD URI");return true}}else{e("NO URI"+h);return false}}var f=function(){};Error.ERROR_CODE={IO_ERROR:"IO_ERROR",DEVICE_ERROR:"DEVICE_ERROR",BAD_PARAMETER:"BAD_PARAMETER",SERVER_ERROR:"SERVER_ERROR",NETWORK_ERROR:"NETWORK_ERROR",SYSTEM_ERROR:"SYSTEM_ERROR",};f.SCAP_URI="";f.MAX_BUFFER_LENGTH=1024*10;f.AppMode={USB:"usb",LOCAL:"local"};f.AppType={IPK:"ipk",ZIP:"zip"};f.prototype.downloadFirmware=function(h,i,j){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"downloadFirmware",parameters:{uri:j.uri},onSuccess:function(k){if(k.returnValue===true){h()}else{i({errorCode:k.errorCode,errorText:k.errorText})}},onFailure:function(k){i({errorCode:k.errorCode,errorText:k.errorText})}})};f.prototype.upgradeFirmware=function(h,i){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeFirmware",parameters:{},onSuccess:function(j){if(j.returnValue===true){h()}else{i({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){i({errorCode:j.errorCode,errorText:j.errorText})}})};f.prototype.getFirmwareUpgradeStatus=function(h,i){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getFirmwareUpgradeStatus",parameters:{},onSuccess:function(j){if(j.returnValue===true){h({status:j.status,upgradeProgress:j.upgradeProgress,downloadProgress:j.downloadProgress})}else{i({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){i({errorCode:j.errorCode,errorText:j.errorText})}})};f.prototype.changeLogoImage=function(h,i,j){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"changeLogoImage",parameters:{uri:j.uri},onSuccess:function(k){if(k.returnValue===true){h()}else{i({errorCode:k.errorCode,errorText:k.errorText})}},onFailure:function(k){i({errorCode:k.errorCode,errorText:k.errorText})}})};f.prototype.upgradeApplication=function(h,i,j){var k={from:"remote",to:(j===undefined||j===null?f.AppMode.LOCAL:j.to),recovery:(j===undefined||j===null?false:j.recovery),};if(j.hasOwnProperty("type")===true&&j.type!==undefined){k.type=j.type}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"upgradeApplication",parameters:k,onSuccess:function(l){if(l.returnValue===true){h()}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){i({errorCode:l.errorCode,errorText:l.errorText})}})};f.prototype.removeApplication=function(h,i,j){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"removeApplication",parameters:{to:j.to},onSuccess:function(k){if(k.returnValue===true){h()}else{i({errorCode:k.errorCode,errorText:k.errorText})}},onFailure:function(k){i({errorCode:k.errorCode,errorText:k.errorText})}})};f.prototype.copyFile=function(h,i,j){e("Options: "+JSON.stringify(j,null,3));if(j.maxRedirection&&j.maxRedirection>5){e("Bad options TOO MANY REDIRECTION");i({errorCode:"BAD_PARAMETER",errorText:"Redirect cannot be more that 5"});return}if(j.headers&&JSON.stringify(j.headers).length>1024){e("header too long header too long");i({errorCode:"BAD_PARAMETER",errorText:"Header data cannot be bigger than 1K"});return}if(typeof j.httpOption==="undefined"){j.httpOption={}}if(j.httpOption.headers&&JSON.stringify(j.httpOption.headers).length>1024){e("header too long header too long");i({errorCode:"BAD_PARAMETER",errorText:"Header data cannot be bigger than 1K"});return}if(j.maxRedirection||j.headers){if(j.maxRedirection&&typeof j.httpOption.maxRedirection==="undefined"){j.httpOption.maxRedirection=j.maxRedirection}if(j.headers&&typeof j.httpOption.headers==="undefined"){j.httpOption.headers=j.headers}}if(typeof j.httpOption.maxRedirection!=="undefined"){if(typeof j.maxRedirection!=="undefined"){if(j.httpOption.maxRedirection!==j.maxRedirection){i({errorCode:"BAD_PARAMETER",errorText:"Both options.httpOption.maxRedirection and options.maxRedirection are exists,but different value. What value you want to use?"});return}}else{j.maxRedirection=j.httpOption.maxRedirection}}e(j);a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/copyFile",parameters:{dest:j.destination,src:j.source,ftpOption:j.ftpOption,httpOption:j.httpOption},onSuccess:function(k){if(k.returnValue===true){e("SUCCESS");h()}else{e("Err: "+k.errorText);i({errorCode:k.errorCode,errorText:k.errorText})}},onFailure:function(k){e("Err: "+k.errorText);i({errorCode:k.errorCode,errorText:k.errorText})}})};f.prototype.removeFile=function(h,i,j){if(!(j&&g(j.file))){i({errorCode:"BAD_PARAMETER",errorText:"options.file is a mandatory parameter"});return}var k={file:j.file};if(j.recursive===true){k.recursive=true}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeFile",parameters:k,onSuccess:function(l){e("onSuccess");if(l.returnValue===true){h()}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");i({errorCode:l.errorCode,errorText:l.errorText})}})};f.prototype.listFiles=function(h,i,j){var k={};if(j&&j.path){if(g(j.path)){k.pathURI=j.path}else{i({errorCode:"BAD_PARAMETER",errorText:"File URI is not valid."});return}}else{k.pathURI="file://internal/"}a.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"fs/listFiles",parameters:k,onSuccess:function(l){if(l.returnValue===true){var n=[];for(var m=0;m<l.files.length;++m){e(l.files[m]);var p={name:l.files[m].name,type:(l.files[m].type==="folder")?"folder":"file",size:l.files[m].size};n.push(p)}var o={files:n,totalCount:l.totalCount};h(o)}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){i({errorCode:l.errorCode,errorText:l.errorText})}})};f.prototype.getStorageInfo=function(h,i){a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/storageInfo",parameters:{},onSuccess:function(j){e("returned : "+JSON.stringify(j,null,3));if(j.returnValue===true){e("returned : "+JSON.stringify(j,null,3));var k={free:j.spaceInfo.freeSize,total:j.spaceInfo.totalSize,used:j.spaceInfo.usedSize,externalMemory:j.externalStorage};h(k)}else{i({errorCode:j.errorCode,errorText:j.errorText})}},onFailure:function(j){i({errorCode:j.errorCode,errorText:j.errorText})}})};f.prototype.mkdir=function(h,i,j){if(!(j&&g(j.path))){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"});return}var k={pathURI:j.path};a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/mkdir",parameters:k,onSuccess:function(l){e("onSuccess");if(l.returnValue===true){h()}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");i({errorCode:l.errorCode,errorText:l.errorText})}})};f.prototype.exists=function(h,i,j){if(!(j&&g(j.path))){e("BAD_PARAMETER");i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"});return}var k={pathURI:j.path};a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/exists",parameters:k,onSuccess:function(l){e("onSuccess");if(l.returnValue===true){e("returned : "+JSON.stringify(l,null,3));var m={exists:l.exists};h(m)}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");i({errorCode:l.errorCode,errorText:l.errorText})}})};f.prototype.readFile=function(h,i,j){if(!j){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!g(j.path)){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(j.length&&(j.length>f.MAX_BUFFER_LENGTH||j.length<1)){i({errorCode:"BAD_PARAMETER",errorText:"length should be > 0 and < "+f.MAX_BUFFER_LENGTH})}else{if(j.position&&(j.position<0)){i({errorCode:"BAD_PARAMETER",errorText:"position should be > 0"})}else{var k={};k.path=j.path;k.length=j.length?j.length:f.MAX_BUFFER_LENGTH;k.position=j.position?j.position:0;k.encoding=j.encoding?j.encoding:"utf-8";a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/readFile",parameters:k,onSuccess:function(l){if(l.returnValue){if(k.encoding==="binary"){var m=l.data;var o=new Uint8Array(m.length);for(var n=0;n<m.length;++n){o[n]=m[n]}h({data:o.buffer})}else{h({data:l.data})}}else{i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){i({errorCode:l.errorCode,errorText:l.errorText})}})}}}}};f.prototype.writeFile=function(l,r,n){if(!n){r({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!g(n.path)){r({errorCode:"BAD_PARAMETER",errorText:"options.path is a is not valid"})}else{if(!n.data){r({errorCode:"BAD_PARAMETER",errorText:"options.data is a mandatory parameter"})}else{if(n.mode&&(n.mode!=="truncate"&&n.mode!=="append"&&n.mode!=="position")){r({errorCode:"BAD_PARAMETER",errorText:"mode should be 'truncate'|'append'|'position'"})}else{if(n.position&&(n.position<0)){r({errorCode:"BAD_PARAMETER",errorText:"position should be > 0"})}else{if(n.offset&&(n.offset<0)){r({errorCode:"BAD_PARAMETER",errorText:"offset should be > 0"})}else{if(n.length&&(n.length>f.MAX_BUFFER_LENGTH||n.length<1)){r({errorCode:"BAD_PARAMETER",errorText:"length should be > 0 and < "+f.MAX_BUFFER_LENGTH})}else{if(n.encoding&&(n.encoding!=="utf8"&&n.encoding!=="binary"&&n.encoding!=="base64")){r({errorCode:"BAD_PARAMETER",errorText:"Invalid encoding: "+n.encoding})}else{e("REQUEST");var z={};z.path=n.path;z.mode=n.mode?n.mode:"truncate";z.position=n.position?n.position:0;z.encoding=n.encoding?n.encoding:"utf8";var q=n.offset?n.offset:0;if(z.encoding==="binary"){e("binary, size is: "+n.data.byteLength);var m=new Uint8Array(n.data);e("uint8View: "+m);var p=n.length?n.length:f.MAX_BUFFER_LENGTH;var v=[];var t=0;for(var y=q;y<m.length&&t<p;++y,t++){v[t]=m[y]}e("array length: "+t);z.data=v;z.length=t;z.offset=0}else{if(z.encoding==="base64"){var u=n.length?n.length:f.MAX_BUFFER_LENGTH;e("base64, size is: "+n.data.length);var h=n.data;var k=window.atob(h);var w=k.substring(q,q+u);var B=new Uint8Array(w.length);var x;for(x=0;x<w.length;x++){B[x]=w.charCodeAt(x)}var A=[];for(x=0;x<B.length;++x){A[x]=B[x]}z.data=A;z.length=A.length;z.offset=0}else{var s=n.length?n.length:f.MAX_BUFFER_LENGTH;z.data=n.data.substring(q,q+s);z.length=z.data.length;z.offset=0}}try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/writeFile",parameters:z,onSuccess:function(i){e("onSuccess");if(i.returnValue){l({written:i.written})}else{e("FAILED: "+i.errorText);r({errorCode:i.errorCode,errorText:i.errorText})}},onFailure:function(i){e("onFailure");e("FAILED: "+i.errorText);r({errorCode:i.errorCode,errorText:i.errorText})}})}catch(o){e("EXCEPTION"+o);r({errorCode:"STWF",errorText:"Storage.writeFile() error is occured during operation."})}}}}}}}}}};f.prototype.statFile=function(h,i,j){if(!(j&&g(j.path))){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!j.path){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/statFile",parameters:{path:j.path},onSuccess:function(l){e("onSuccess");if(l.returnValue){h(l.stat)}else{e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}})}catch(k){e("EXCEPTION"+k);i({errorCode:"STSF",errorText:"Storage.statFile() error is occured during operation."})}}}};f.prototype.removeAll=function(h,i,j){if(!j){i({errorCode:"BAD_PARAMETER",errorText:"options.device is a mandatory parameter"})}else{if(!j.device){i({errorCode:"BAD_PARAMETER",errorText:"options.device is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/removeAll",parameters:{device:j.device},onSuccess:function(l){e("onSuccess");if(l.returnValue){h()}else{e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}})}catch(k){e("EXCEPTION"+k);i({errorCode:"STRA",errorText:"Storage.removeAll() error is occured during operation."})}}}};f.prototype.fsync=function(h,i,j){try{var l={};if(j&&j.path){if(g(j.path)){l.path=j.path}else{i({errorCode:"BAD_PARAMETER",errorText:"Invalid File URI"});return}}a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/fsyncFile",parameters:l,onSuccess:function(m){e("onSuccess");if(m.returnValue){h()}else{e("FAILED: "+m.errorText);i({errorCode:m.errorCode,errorText:m.errorText})}},onFailure:function(m){e("onFailure");e("FAILED: "+m.errorText);i({errorCode:m.errorCode,errorText:m.errorText})}})}catch(k){e("EXCEPTION"+k);i({errorCode:"STFS",errorText:"Storage.fsync() error is occured during operation."})}};f.prototype.moveFile=function(h,i,j){if(!j){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!g(j.oldPath)){i({errorCode:"BAD_PARAMETER",errorText:"options.oldpath is a mandatory parameter"})}else{if(!g(j.newPath)){i({errorCode:"BAD_PARAMETER",errorText:"options.newPath is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/moveFile",parameters:{oldPath:j.oldPath,newPath:j.newPath},onSuccess:function(l){e("onSuccess");if(l.returnValue){h()}else{e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailur");e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}})}catch(k){e("EXCEPTION"+k);i({errorCode:"STMF",errorText:"Storage.moveFile() error is occured during operation."})}}}}};f.prototype.unzipFile=function(h,i,j){if(!j){i({errorCode:"BAD_PARAMETER",errorText:"options.path is a mandatory parameter"})}else{if(!g(j.zipPath)){i({errorCode:"BAD_PARAMETER",errorText:"options.zipPath is a mandatory parameter"})}else{if(!g(j.targetPath)){i({errorCode:"BAD_PARAMETER",errorText:"options.targetPath is a mandatory parameter"})}else{try{a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"fs/unzip",parameters:{zipPath:j.zipPath,targetPath:j.targetPath},onSuccess:function(l){e("onSuccess");if(l.returnValue){h()}else{e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}},onFailure:function(l){e("onFailure");e("FAILED: "+l.errorText);i({errorCode:l.errorCode,errorText:l.errorText})}})}catch(k){e("EXCEPTION"+k);i({errorCode:"STUF",errorText:"Storage.unzipFile() error is occured during operation."})}}}}};d.exports=f});Storage=cordova.require("cordova/plugin/storage");
|
package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/time.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/time",function(c,e,b){function d(k){}var f;if(window.PalmSystem){d("Window.PalmSystem Available");f=c("cordova/plugin/webos/service")}else{f={Request:function(k,l){d(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var g=function(){};function i(l,m,k){if(l.errorCode===undefined||l.errorCode===null){l.errorCode=m}if(l.errorText===undefined||l.errorText===null){l.errorText=k}}var h=null;var a={};function j(k){if(h===null){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(l){d("getPlatformInfo: onSuccess");d("version : "+l.sdkVersion);var m=l.sdkVersion.split(".");if(m.length>=1&&m[0]==="1"){a={webOSVer:1,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="2"){a={webOSVer:2,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="3"){a={webOSVer:3,chipset:l.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}h=a.webOSVer;k(a)},onFailure:function(l){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};k(a)}})}else{k(a)}}g.prototype.setHolidayScheduleMode=function(l,m,n){d("setHolidayScheduleMode: "+n.enabled);if(n.enabled===null&&typeof m==="function"){var k={};i(k,"TSHM","Time.setHolidayScheduleMode returns failure. command was not defined.");m(k);d("Time.setHolidayScheduleMode invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidayScheduleMode:(n.enabled===true)?"on":"off"}},onSuccess:function(o){d("setHolidayScheduleMode: On Success");if(o.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(o){d("setHolidayScheduleMode: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"TSHM","Time.setHolidayScheduleMode returns failure.");m(o)}}});d("Time.setHolidayScheduleMode Done")};g.prototype.getHolidayScheduleMode=function(k,l){d("getHolidayScheduleMode: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidayScheduleMode"]},onSuccess:function(m){d("getHolidayScheduleMode: On Success");if(m.returnValue===true){var n={};n.enabled=(m.settings.holidayScheduleMode==="on")?true:false;if(typeof k==="function"){k(n)}}},onFailure:function(m){d("getHolidayScheduleMode: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"TGHM","Time.getHolidayScheduleMode returns failure.");l(m)}}});d("Time.getHolidayScheduleMode Done")};g.prototype.addHolidaySchedule=function(n,o,p){d("addHolidaySchedule: startMonth : "+p.startMonth+", startDay : "+p.startDay+", endMonth : "+p.endMonth+", endDay : "+p.endDay);var m=new Date((new Date()).getFullYear(),p.startMonth-1,p.startDay,0,0);var l=new Date((new Date()).getFullYear(),p.endMonth-1,p.endDay,0,0);if(typeof o==="function"){if(typeof p.startMonth!=="number"||typeof p.startDay!=="number"||isNaN(p.startMonth)||isNaN(p.startDay)||typeof p.endMonth!=="number"||typeof p.endDay!=="number"||isNaN(p.endMonth)||isNaN(p.endDay)){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure. parmas are not valid.");o(k);return}if(m.getMonth()!==p.startMonth-1||m.getDate()!==p.startDay||l.getMonth()!==p.endMonth-1||l.getDate()!==p.endDay){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure for out of range.");o(k);return}if(m.getTime()>l.getTime()){var k={};i(k,"TAHS","Time.addHolidaySchedule returns failure. schedule is not valid.");o(k);return}}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(q){d("getHolidaySchedule: On Success");if(q.returnValue===true){if(typeof n==="function"){var u={};var t=null;var s=null;var v=q.settings.holidaySchedule;if(v.length>=7){var q={};i(q,"TAHS","Time.addHolidaySchedule returns failure. schedule list is full");o(q);return}for(var r=0;r<v.length;r++){t=new Date((new Date()).getFullYear(),v[r].startMonth-1,v[r].startDay,0,0);s=new Date((new Date()).getFullYear(),v[r].endMonth-1,v[r].endDay,0,0);if(((t.getTime()<=m.getTime())&&(s.getTime()>m.getTime()))||((t.getTime()<l.getTime())&&(s.getTime()>=l.getTime()))||((t.getTime()===m.getTime())&&(s.getTime()===l.getTime()))||((m.getTime()===l.getTime())&&(s.getTime()===m.getTime()))){var q={};i(q,"TAHS","Time.addHolidaySchedule returns failure. schedule is not valid");o(q);return}}u.startMonth=p.startMonth;u.startDay=p.startDay;u.endMonth=p.endMonth;u.endDay=p.endDay;v.push(u);d("scheduleList : "+JSON.stringify(v));f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:v}},onSuccess:function(w){d("addHolidaySchedule: On Success");if(w.returnValue===true){if(typeof n==="function"){n()}}},onFailure:function(w){d("addHolidaySchedule: On Failure");delete w.returnValue;if(typeof o==="function"){i(w,"TAHS","Time.addHolidaySchedule returns failure.");o(w)}}})}}},onFailure:function(q){d("addHolidaySchedule: On Failure");delete q.returnValue;if(typeof o==="function"){i(q,"TAHS","Time.addHolidaySchedule returns failure.");o(q)}}});d("Time.addHolidaySchedule Done")};g.prototype.delHolidaySchedule=function(l,m,n){d("delHolidaySchedule: id : "+n.scheduleId);if((typeof n.scheduleId!=="string"||n.scheduleId===undefined||n.scheduleId===null)&&typeof m==="function"){var k={};i(k,"TDHS","Time.delHolidaySchedule returns failure. scheduleId is not valid.");m(k);d("Time.delHolidaySchedule invalid ");return}f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(o){d("getHolidaySchedule: On Success");if(o.returnValue===true){if(typeof l==="function"){var s=null;var r=[];var p=false;s=o.settings.holidaySchedule;d("before scheduleList : "+JSON.stringify(s));for(var q=0;q<s.length;q++){if(s[q]._id===n.scheduleId){p=true}else{r.push(s[q])}}if(p===false&&typeof m==="function"){var o={};i(o,"TDHS","Time.delHolidaySchedule returns failure. can not find schedule id.");m(o);d("Time.delHolidaySchedule invalid ");return}d("after scheduleList : "+JSON.stringify(r));f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:r}},onSuccess:function(t){d("delHolidaySchedule: On Success");if(t.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(t){d("delHolidaySchedule: On Failure");delete t.returnValue;if(typeof m==="function"){i(t,"TDHS","Time.delHolidaySchedule returns failure.");m(t)}}})}}},onFailure:function(o){d("delHolidaySchedule: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"TDHS","Time.delHolidaySchedule returns failure.");m(o)}}});d("Time.delHolidaySchedule Done")};g.prototype.delAllHolidaySchedules=function(k,l){d("delAllHolidaySchedules: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{holidaySchedule:[]}},onSuccess:function(m){d("delAllHolidaySchedules: On Success");if(m.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(m){d("delAllHolidaySchedules: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"TDAS","Time.delAllHolidaySchedules returns failure.");l(m)}}});d("Time.delAllHolidaySchedules Done")};g.prototype.getAllHolidaySchedules=function(k,l){d("getAllHolidaySchedules: ");f.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["holidaySchedule"]},onSuccess:function(m){d("getHolidaySchedule: On Success");if(m.returnValue===true){if(typeof k==="function"){var n={};n.holidayScheduleList=m.settings.holidaySchedule;if(typeof k==="function"){k(n)}}}},onFailure:function(m){d("getAllHolidaySchedules: On Failure");delete m.returnValue;if(typeof l==="function"){i(m,"TGAS","Time.getAllHolidaySchedules returns failure.");l(m)}}});d("Time.getAllHolidaySchedules Done")};b.exports=g});Time=cordova.require("cordova/plugin/time");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/utility",function(c,e,b){function d(k){}var g;if(window.PalmSystem){d("Window.PalmSystem Available");g=c("cordova/plugin/webos/service")}else{g={Request:function(k,l){d(k+" invoked. But I am a dummy because PalmSystem is not available");if(typeof l.onFailure==="function"){l.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var f=function(){};function i(l,m,k){if(l.errorCode===undefined||l.errorCode===null){l.errorCode=m}if(l.errorText===undefined||l.errorText===null){l.errorText=k}}var h=null;var a={};function j(k){if(h===null){g.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(l){d("getPlatformInfo: onSuccess");d("version : "+l.sdkVersion);var m=l.sdkVersion.split(".");if(m.length>=1&&m[0]==="1"){a={webOSVer:1,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="2"){a={webOSVer:2,chipset:l.boardType.split("_")[0]}}else{if(m.length>=1&&m[0]==="3"){a={webOSVer:3,chipset:l.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}h=a.webOSVer;k(a)},onFailure:function(l){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};k(a)}})}else{k(a)}}f.prototype.createToast=function(l,m,n){d("createToast: "+n.msg);if(n.msg===null&&typeof m==="function"){var k={};i(k,"UTCT","Utility.createToast returns failure. command was not defined.");m(k);d("Utility.createToast invalid ");return}g.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"createToast",parameters:{text:n.msg},onSuccess:function(o){d("createToast: On Success");if(o.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(o){d("createToast: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"UTCT","Utility.createToast returns failure.");m(o)}}});d("Utility.createToast Done")};b.exports=f});Utility=cordova.require("cordova/plugin/utility");
|
package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.4.5/video.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/video",function(c,e,b){function d(j){}var f;if(window.PalmSystem){d("Window.PalmSystem Available");f=c("cordova/plugin/webos/service")}else{f={Request:function(j,k){d(j+" invoked. But I am a dummy because PalmSystem is not available");if(typeof k.onFailure==="function"){k.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var i=function(){};function g(k,l,j){if(k.errorCode===undefined||k.errorCode===null){k.errorCode=l}if(k.errorText===undefined||k.errorText===null){k.errorText=j}}var a={webOSVer:-1,chipset:"undefined"};function h(j){if(a.webOSVer===-1){f.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(k){var l=k.sdkVersion.split(".");if(l.length>=1&&l[0]==="1"){a={webOSVer:1,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="2"){a={webOSVer:2,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="3"){a={webOSVer:3,chipset:k.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}j(a)},onFailure:function(k){a={webOSVer:0,chipset:""};j(a)}})}else{j(a)}}i.prototype.getVideoStatus=function(j,k){d("getVideoStatus: ");f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(l){d("getVideoStatus: On Success");if(l.returnValue===true){if(typeof j==="function"){var m={};m.source=l.videoSize.source;j(m)}}},onFailure:function(l){d("getVideoStatus: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"VGVS","Video.getVideoStatus returns failure.");k(l)}}});d("Video.getVideoStatus Done")};i.currentVideo={uri:null,source:null,tagId:null};i.prototype.setVideoSize=function(k,l,m){d("setVideoSize: "+JSON.stringify(m));if(m.source===undefined||typeof m.source.x!=="number"||typeof m.source.y!=="number"||typeof m.source.width!=="number"||typeof m.source.height!=="number"||isNaN(m.source.x)||isNaN(m.source.y)||isNaN(m.source.width)||isNaN(m.source.height)||m.source.x<0||m.source.y<0||m.source.width<=0||m.source.height<=0||m.source.width<16||m.source.height<16){if(typeof l==="function"){var j={};g(j,"VSVS","Video.setVideoSize returns failure. out of range or type error.");l(j)}return}f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(n){d("setVideoSize: On Success");if(n.returnValue===true){var r={};r.x=n.videoSize.destination.x;r.y=n.videoSize.destination.y;r.width=n.videoSize.destination.width;r.height=n.videoSize.destination.height;var o=document.getElementsByTagName("video");var q=false;for(var p=0;p<o.length;p++){if(o[p].currentTime>0){q=true;if(i.currentVideo.uri!==o[p].src||(o[p].id!==null&&o[p].id!==undefined&&i.currentVideo.tagId!==null&&i.currentVideo.tagId!==undefined&&i.currentVideo.tagId!==o[p].id)){i.currentVideo.uri=o[p].src;i.currentVideo.source=n.videoSize.source;i.currentVideo.tagId=o[p].id}break}}if(q===false){f.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(t){if(t.returnValue===true&&i.currentVideo.uri!==t.mainInputSourceId||(o[0].id!==null&&o[0].id!==undefined&&i.currentVideo.tagId!==null&&i.currentVideo.tagId!==undefined&&i.currentVideo.tagId!==o[0].id)){i.currentVideo.uri=t.mainInputSourceId;i.currentVideo.tagId=(o[0]!==null&&o[0].id!==null&&o[0].id!==undefined?o[0].id:null);f.Request("luna://com.webos.service.tv.signage/",{method:"getVideoSize",onSuccess:function(x){d("setVideoSize: On Success 1");if(x.returnValue===true){i.currentVideo.source=x.videoSize.source;if(x.videoSize.source.width===0&&x.videoSize.source.height===0){i.currentVideo={uri:null,source:null,tagId:null};var w={};g(w,"VSVS","Video.setVideoSize returns failure. Not ready to setVideoSize.");l(w);return}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var v={};g(v,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(v);return}}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(y){d("setVideoSize: On Success 2");if(y.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(y){d("setVideoSize: On Failure 2");delete y.returnValue;if(typeof l==="function"){g(y,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(y);return}}})}}})}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var u={};g(u,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(u);return}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(v){d("setVideoSize: On Success 3");if(v.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(v){d("setVideoSize: On Failure 3");delete v.returnValue;if(typeof l==="function"){g(v,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(v);return}}})}},onFailure:function(t){d("setVideoSize: On Failure 3");delete t.returnValue;if(typeof l==="function"){g(t,"VSVS","Video.setVideoSize returns failure. Can't set current video source size.");l(t);return}}})}else{if(i.currentVideo.uri===null||i.currentVideo.source===null||(m.source.width+m.source.x)>(i.currentVideo.source.x+i.currentVideo.source.width)||(m.source.height+m.source.y)>(i.currentVideo.source.y+i.currentVideo.source.height)){var s={};g(s,"VSVS","Video.setVideoSize returns failure. out of range or type error.("+i.currentVideo.source.width+" : "+i.currentVideo.source.height+")");l(s);return}f.Request("luna://com.webos.service.tv.signage/",{method:"setVideoSize",parameters:{videoSize:{source:{x:m.source.x,y:m.source.y,width:m.source.width,height:m.source.height},destination:{x:r.x,y:r.y,width:r.width,height:r.height}}},onSuccess:function(t){d("setVideoSize: On Success 4");if(t.returnValue===true&&typeof k==="function"){k();return}},onFailure:function(t){d("setVideoSize: On Failure 4");delete t.returnValue;if(typeof l==="function"){g(t,"VSVS","Video.setVideoSize returns failure. Can't current video source size.");l(t);return}}})}}},onFailure:function(n){d("setVideoSize: On Failure");delete n.returnValue;if(typeof l==="function"){g(n,"VSVS","Video.setVideoSize returns failure.");l(n);return}}});d("Video.setVideoSize Done")};i.prototype.setContentRotation=function(j,k,l){d("setContentRotation: ");h(function(n){if(n.webOSVer===3){if(typeof k==="function"){var m={};g(m,"VSCR","Video.setContentRotation is not supported in WEBOS 3.0.");k(m);return}}if(typeof l==="undefined"||l===null||(l.degree!=="off"&&l.degree!=="90"&&l.degree!=="270")||(l.aspectRatio!=="full"&&l.aspectRatio!="original")){var m={};g(m,"VSCR","Video.setContentRotation invlalid parameters.")}f.Request("luna://com.webos.service.commercial.signage.storageservice/video/",{method:"setContentRotation",parameters:l,onSuccess:function(o){d("setContentRotation: On Success");if(o.returnValue===true&&typeof j==="function"){j();return}},onFailure:function(o){d("setContentRotation: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"VSCR","Video.setContentRotation returns failure.");k(o);return}}});d("Video.setContentRotation: Done ")})};i.prototype.getContentRotation=function(j,k){d("getContentRotation: ");h(function(m){if(m.webOSVer===3){if(typeof k==="function"){var l={};g(l,"VSCR","Video.getContentRotation is not supported in WEBOS 3.0.");k(l);return}}f.Request("luna://com.webos.service.commercial.signage.storageservice/video/",{method:"getContentRotation",onSuccess:function(n){d("getContentRotation: On Success");if(n.returnValue===true){if(typeof j==="function"){delete n.returnValue;j(n)}}},onFailure:function(n){d("getContentRotation: On Failure");delete n.returnValue;if(typeof k==="function"){g(n,"VGCR","Video.getContentRotation returns failure.");k(n)}}});d("Video.getContentRotation Done")})};i.prototype.setVideoViewTransform=function(j,l,k){if(typeof k.x!=="number"||typeof k.y!=="number"||typeof k.width!=="number"||typeof k.height!=="number"){l({errorCode:"VSVVT",errorText:"Invalid Parameter type."})}h(function(n){var p,o;if(n.webOSVer===3){if(typeof l==="function"){var m={};g(m,"VSVT","Video.setVideoViewTransform is not supported in WEBOS 3.0.");l(m);return}}if(n.webOSVer===2&&n.chipset==="H15"){p=3840;o=2160}else{p=1920;o=1080}f.Request("luna://com.webos.service.commercial.signage.storageservice/video/",{method:"getMediaID",onSuccess:function(q){if(q.returnValue===true){var r=q.id;f.Request("luna://com.webos.service.tv.display/",{method:"setCustomDisplayWindow",parameters:{context:r,sourceInput:{positionX:0,positionY:0,width:p,height:o},displayOutput:{positionX:k.x,positionY:k.y,width:k.width,height:k.height}},onSuccess:function(s){if(s.returnValue===true){if(typeof j==="function"){j()}}else{delete s.returnValue;if(typeof l==="function"){l({errorCode:"VSVT",errorText:"Failed to set video transition"})}}},onFailure:function(s){delete s.returnValue;if(typeof l==="function"){l({errorCode:"VSVVT",errorText:"Failed to set video transition"})}}})}},onFailure:function(q){delete q.returnValue;if(typeof l==="function"){l({errorCode:"VSVVT",errorText:"Cannot found video area"})}}})})};i.prototype.setRotatedVideoTransform=function(j,l,k){h(function(n){var p,o;if(n.webOSVer===3){if(typeof l==="function"){var m={};g(m,"VSRT","Video.setRotatedVideoTransform is not supported in WEBOS 3.0.");l(m);return}}if(n.webOSVer===2&&n.chipset==="H15"){p=3840;o=2160}else{p=1920;o=1080}if(typeof k.x!=="number"||typeof k.y!=="number"||typeof k.width!=="number"||typeof k.height!=="number"){l({errorCode:"VSRVT",errorText:"Invalid Parameter type."})}f.Request("luna://com.webos.service.commercial.signage.storageservice/video/",{method:"getContentRotation",onSuccess:function(r){var s,q,t,u;if(r.degree==="off"){l({errorCode:"VSRVT",errorText:"Content must be applied content rotation first."});return}else{if(r.degree==="90"){s=p-(k.y+k.height),q=k.x,t=k.height,u=k.width}else{if(r.degree==="270"){s=k.y,q=o-(k.x+k.width),t=k.height,u=k.width}}}f.Request("luna://com.webos.service.commercial.signage.storageservice/video/",{method:"getMediaID",onSuccess:function(v){if(v.returnValue===true){var w=v.id;if(n.webOSVer===2&&n.chipset==="H15"){f.Request("luna://com.webos.service.tv.display/",{method:"setDisplayWindow",parameters:{context:w,fullScreen:false,displayOutput:{positionX:s,positionY:q,width:t,height:u}},onSuccess:function(x){if(x.returnValue===true){if(typeof j==="function"){j()}}else{delete x.returnValue;if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Failed to set video transition"})}}},onFailure:function(x){delete x.returnValue;if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Failed to set video transition: "+x.errorText})}}})}else{f.Request("luna://com.webos.service.tv.display/",{method:"setRotateDisplayWindow",parameters:{context:w,fullScreen:false,displayOutput:{positionX:s,positionY:q,width:t,height:u}},onSuccess:function(x){if(x.returnValue===true){if(typeof j==="function"){j()}}else{delete x.returnValue;if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Failed to set video transition"})}}},onFailure:function(x){delete x.returnValue;if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Failed to set video transition: "+x.errorText})}}})}}},onFailure:function(v){delete v.returnValue;if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Cannot found video area"})}}})},onFailure:function(q){if(typeof l==="function"){l({errorCode:"VSRVT",errorText:"Cannot check content rotation."})}}})})};b.exports=i});Video=cordova.require("cordova/plugin/video");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Configuration=(function(){var a,g;function e(l){}function k(l){return typeof l==="number"&&isFinite(l)}if(typeof window==="object"){cordova.define("cordova/plugin/configuration",function(m,l,n){a=function(){};if(window.PalmSystem){e("Window.PalmSystem Available");g=m("cordova/plugin/webos/service")}else{g={Request:function(o,p){e(o+" invoked. But I am a dummy because PalmSystem is not available");if(typeof p.onFailure==="function"){p.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}n.exports=a});a=cordova.require("cordova/plugin/configuration")}else{a=function(l){g=l;g.Request=function(m,o){var n=m+"/"+o.method;var p={};if(o.hasOwnProperty("parameters")===true){p=o.parameters}var q={};var r=function(s){console.log("res : "+JSON.stringify(s));if(s.payload.returnValue===true){q=s.payload;o.onSuccess(q)}else{q.returnValue=false;q.errorCode=s.payload.errorCode;q.errorText=s.payload.errorText;o.onFailure(q)}};if(g){g.call(n,p,r)}}};module.exports=a}function i(m,n,l){if(m.errorCode===undefined||m.errorCode===null){m.errorCode=n}if(m.errorText===undefined||m.errorText===null){m.errorText=l}}a.PictureMode={VIVID:"vivid",STANDARD:"normal",APS:"eco",CINEMA:"cinema",GAME:"game",SPORTS:"sports",EXPERT1:"expert1",EXPERT2:"expert2"};a.AppMode={LOCAL:"local",USB:"usb",REMOTE:"remote"};a.AppType={IPK:"ipk",ZIP:"zip"};a.LocaleList=[{language:"čeština",languageCode:"cs",countries:[{name:"",specifier:"cs-CZ"}]},{language:"dansk",languageCode:"da",countries:[{name:"",specifier:"da-DK"}]},{language:"Deutsch",languageCode:"de",countries:[{name:"",specifier:"de-DE"}]},{language:"English",languageCode:"en",countries:[{name:"",specifier:"en-US"}]},{language:"Español",languageCode:"es",countries:[{name:"",specifier:"es-ES"}]},{language:"ελληνική γλώσσα",languageCode:"el",countries:[{name:"",specifier:"el-GR"}]},{language:"Français",languageCode:"fr",countries:[{name:"",specifier:"fr-FR"}]},{language:"italiano",languageCode:"it",countries:[{name:"",specifier:"it-IT"}]},{language:"Nederlands",languageCode:"nl",countries:[{name:"",specifier:"nl-NL"}]},{language:"norsk",languageCode:"nb",countries:[{name:"",specifier:"nb-NO"}]},{language:"português",languageCode:"pt",countries:[{name:"Portugal",specifier:"pt-PT"},{name:"Brasil",specifier:"pt-BR"}]},{language:"русский",languageCode:"ru",countries:[{name:"",specifier:"ru-RU"}]},{language:"suomi",languageCode:"fi",countries:[{name:"",specifier:"fi-FI"}]},{language:"svenska",languageCode:"sv",countries:[{name:"",specifier:"sv-SE"}]},{language:"한국어",languageCode:"ko",countries:[{name:"",specifier:"ko-KR"}]},{language:"中文",languageCode:"zh-Hans",countries:[{name:"中国",specifier:"zh-Hans-CN"}]},{language:"日本語",languageCode:"ja",countries:[{name:"",specifier:"ja-JP"}]},{language:"中文",languageCode:"zh-Hant",countries:[{name:"香港",specifier:"zh-Hant-HK"}]}];function c(p){var l=a.LocaleList;for(var o=0;o<l.length;o++){var m=l[o].countries;for(var n=0;n<m.length;n++){if(m[n].specifier===p){return true}}}return false}function d(n){var l=a.LocaleList;for(var m=0;m<l.length;m++){if(l[m].languageCode===n){return true}}return false}var h=null;function j(l){if(h===null){g.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion"]},onSuccess:function(m){e("getPlatformInfo: onSuccess");var n=m.sdkVersion.split(".");if(n.length>=1&&n[0]==="1"){h=1}else{if(n.length>=1&&n[0]==="2"){h=2}else{if(n.length>=1&&n[0]==="3"){h=3}else{h=0}}}delete m.returnValue;l(h)},onFailure:function(m){e("getPlatformInfo: onFailure");delete m.returnValue;h=0;l(h)}})}else{l(h)}}a.prototype.setPictureMode=function(l,m,n){e("setPictureMode: "+JSON.stringify(n));g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:{pictureMode:n.mode}},onSuccess:function(o){e("setPictureMode: On Success");if(o.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(o){e("setPictureMode: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"CSPM","Configuration.setPictureMode returns failure.");m(o)}}});e("Configuration.setPictureMode Done")};a.prototype.getPictureMode=function(l,m){e("getPictureMode: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["pictureMode"]},onSuccess:function(n){e("getPictureMode: On Success");if(n.returnValue===true){if(typeof l==="function"){var o={};o.mode=n.settings.pictureMode;l(o)}}},onFailure:function(n){e("getPictureMode: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGPM","Configuration.getPictureMode returns failure.");m(n)}}});e("Configuration.getPictureMode Done")};a.prototype.setPictureProperty=function(l,m,n){e("setPictureProperty: "+JSON.stringify(n));j(function(p){var r={};if(!(k(n.backlight))){var o={};i(o,"CSPP","Configuration.setPictureProperty, backlight type is not number.");m(o);return}for(var q in n){if(q!==undefined&&q!==null){r[q]=n[q];if(q==="tint"||q==="colorTemperature"){r[q]-=50}else{if(q==="blackLevel"){r[q]={unknown:n[q]};if(n[q]!=="low"&&n[q]!=="high"){e("setPictureProperty: gamma value error "+JSON.stringify(n));var o={};i(o,"CSPP","Configuration.setPictureProperty, There is No matched item : blackLevel.");m(o);return}}else{if(q==="gamma"&&(p===2||p===3)&&n[q]==="high"){r[q]="high1"}}}}}e(JSON.stringify(r));g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"picture",settings:r},onSuccess:function(s){e("setPictureProperty: On Success");if(s.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(s){e("setPictureProperty: On Failure");delete s.returnValue;if(typeof m==="function"){i(s,"CSPP","Configuration.setPictureProperty returns failure.");m(s)}}});e("Configuration.setPictureProperty Done")})};a.prototype.getPictureProperty=function(l,m){e("getPictureProperty: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"picture",keys:["brightness","contrast","color","tint","backlight","sharpness","hSharpness","vSharpness","colorTemperature","dynamicContrast","superResolution","colorGamut","dynamicColor","noiseReduction","mpegNoiseReduction","blackLevel","gamma"]},onSuccess:function(n){e("getPictureProperty: On Success");if(n.returnValue===true){if(typeof l==="function"){var p={};for(var o in n.settings){if(o!==undefined&&o!==null){p[o]=(isNaN(n.settings[o])?n.settings[o]:Number(n.settings[o]));if(o==="tint"||o==="colorTemperature"){p[o]+=50}else{if(o==="blackLevel"){p[o]=n.settings[o].unknown}else{if(o==="gamma"&&n.settings[o]==="high1"){p[o]="high"}}}}}l(p)}}},onFailure:function(n){e("getPictureProperty: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGPP","Configuration.getPictureProperty returns failure.");m(n)}}});e("Configuration.getPictureProperty Done")};var b={alias:"signageName"};var f={key_delivery_to_simplink:"propertyKeyDeliveryToSimplink",cec_device_control:"propertyCecDeviceControl"};a.prototype.setProperty=function(l,m,o){e("setProperty: "+JSON.stringify(o));var n=JSON.parse(o);var p={};var r={};var q={};var s={};j(function(t){if(t===3){b.alias="deviceName";r.category="network"}else{b.alias="signageName";r.category="commercial"}for(var u in n){if(b[u]!==undefined){p[(b[u])]=n[u];s.category=r.category}else{if(f[u]!==undefined){p[f[u]]=n[u];s.category="commercial"}else{if(typeof m==="function"){i(q,"CSP","Configuration.setProperty returns failure.");m(q);return}}}}s.settings=p;g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:s,onSuccess:function(v){e("setProperty: On Success");if(v.returnValue===true){if(typeof l==="function"){l()}}},onFailure:function(v){e("setProperty: On Failure");delete v.returnValue;if(typeof m==="function"){i(v,"CSP","Configuration.setProperty returns failure.");m(v)}}})});e("Configuration.setProperty Done")};a.prototype.getProperty=function(l,o,v){e("getProperty: ");var q=JSON.parse(v);var t=q.keys;var p=Object.keys(t).length;var r=0;var n={};var s=[];var u={};var m={};if(v===null||typeof v==="undefined"||typeof v!=="string"){i(u,"CGP","Configuration.getProperty check Parameter.");o(u)}j(function(w){if(w===3){b.alias="deviceName";n.category="network"}else{b.alias="signageName";n.category="commercial"}e(s);var B=function(D){if(D){if(p===r){if(typeof l==="function"){l(JSON.stringify(m))}}}else{i(u,"CGP","Configuration.getProperty returns failure.");o(u)}};var A=function(D){for(var E in b){if(b[E]===D){return E}}for(var E in f){if(f[E]===D){return E}}return false};var C=function(D){g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:D,onSuccess:function(E){e("getProperty: On Success");if(E.returnValue===true){if(Object.prototype.hasOwnProperty.call(E,"settings")){for(var G in E.settings){var F=A(G);if(F!==false){m[F]=E.settings[G]}}r++;B(true)}else{B(false)}}else{B(false)}},onFailure:function(E){e("getProperty: On Failure");delete E.returnValue;B(false)}})};for(var z=0;z<t.length;z++){var y=t[z];if(y!==null&&y!==undefined){var x={};if(Object.prototype.hasOwnProperty.call(b,y)){x.category=n.category;x.keys=[];x.keys.push(b[y]);C(x)}else{if(Object.prototype.hasOwnProperty.call(f,y)){x.category="commercial";x.keys=[];x.keys.push(f[y]);C(x)}else{i(u,"CGP","Configuration.getProperty - wrong key!");o(u)}}}}});e("Configuration.getProperty Done")};a.prototype.setCurrentTime=function(n,p,q){e("setCurrentTime: "+JSON.stringify(q));var o=new Date(q.year,q.month-1,q.day,q.hour,q.minute,q.sec);if(q.year<2000||q.year>2037||q.month<1||q.month>12||q.day<1||q.day>31||q.hour<0||q.hour>23||q.minute<0||q.minute>59||q.sec<0||q.sec>59||o.getFullYear()!==q.year||o.getMonth()!==(q.month-1)||o.getDate()!==q.day||o.getHours()!==q.hour||o.getMinutes()!==q.minute||o.getSeconds()!==q.sec){if(typeof p==="function"){e("setCurrentTime: out of range or invalid parameter type");var m={};i(m,"CSCT","Configuration.setCurrentTime returns failure for out of range.");p(m);return}}e("setCurrentTime: "+JSON.stringify(q));var l={};var s={};s.year=q.year;s.month=q.month;s.day=q.day;s.hour=q.hour;s.minute=q.minute;s.sec=q.sec;l.time=s;l.ntp=(typeof q.ntp==="boolean")?q.ntp:false;var r=function(){g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setSystemTime",parameters:l,onSuccess:function(){e("setCurrentTime: On Success");if(typeof n==="function"){n()}},onFailure:function(t){e("setCurrentTime: On Failure");delete t.returnValue;if(typeof p==="function"){i(t,"CSCT","Configuration.setCurrentTime returns failure.");p(t)}}})};g.Request("luna://com.webos.service.config",{method:"getConfigs",parameters:{configNames:["commercial.com.palm.app.settings.supportNtpServerSetting"]},onSuccess:function(t){var u=false;if(t.returnValue===true&&t.configs&&t.configs["commercial.com.palm.app.settings.supportNtpServerSetting"]){u=t.configs["commercial.com.palm.app.settings.supportNtpServerSetting"]===true}if(u){l.ntpServerAddress=q.ntpServerAddress}r()},onFailure:function(t){r()}});e("Configuration.setCurrentTime Done")};a.prototype.getCurrentTime=function(l,m){e("getCurrentTime: ");g.Request("luna://com.palm.systemservice/time/",{method:"getEffectiveBroadcastTime",onSuccess:function(n){e("getCurrentTime : On Success");if(n.returnValue===true){var o={};var p=new Date(n.adjustedUtc*1000);o.year=p.getFullYear();o.month=p.getMonth()+1;o.day=p.getDate();o.hour=p.getHours();o.minute=p.getMinutes();o.sec=p.getSeconds();g.Request("luna://com.palm.systemservice/",{method:"getPreferences",parameters:{keys:["useNetworkTime"]},onSuccess:function(q){e("getPreferences : On Success");if(q.returnValue===true){o.ntp=q.useNetworkTime;g.Request("luna://com.webos.service.config",{method:"getConfigs",parameters:{configNames:["commercial.com.palm.app.settings.supportNtpServerSetting"]},onSuccess:function(r){var s=false;if(r.returnValue===true&&r.configs&&r.configs["commercial.com.palm.app.settings.supportNtpServerSetting"]){s=r.configs["commercial.com.palm.app.settings.supportNtpServerSetting"]===true}if(!s){if(typeof l==="function"){l(o)}return}g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["ntpServerMode","ntpServerType","ntpServerIpv4","ntpServerIpv6","ntpServerUrl"]},onSuccess:function(t){if(t.returnValue===true){if(o.ntp===true&&t.settings.ntpServerMode==="manual"){var u=t.settings.ntpServerType;if(u==="ipv4"){o.ntpServerAddress=t.settings.ntpServerIpv4}else{if(u==="ipv6"){o.ntpServerAddress=t.settings.ntpServerIpv6}else{if(u==="url"){o.ntpServerAddress=t.settings.ntpServerUrl}}}}if(typeof l==="function"){l(o)}return}},onFailure:function(t){delete t.returnValue;if(typeof l==="function"){l(o)}return}})},onFailure:function(r){delete r.returnValue;if(typeof l==="function"){l(o)}return}})}else{if(typeof m==="function"){i(n,"CGCT","Configuration.getCurrentTime returns failure.");m(n)}}},onFailure:function(q){e("getCurrentTime: On Failure");delete q.returnValue;if(typeof m==="function"){i(q,"CGCT","Configuration.getCurrentTime returns failure.");m(q)}}})}else{if(typeof m==="function"){i(n,"CGCT","Configuration.getCurrentTime returns failure.");m(n)}}},onFailure:function(n){e("getCurrentTime: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGCT","Configuration.getCurrentTime returns failure.");m(n)}}});e("Configuration.getCurrentTime Done")};a.prototype.restartApplication=function(l,m){e("restartApp: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"restart_application",onSuccess:function(n){e("restartApp: On Success");if(typeof l==="function"){l(n)}},onFailure:function(n){e("restartApp: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CRA","Configuration.restartApp returns failure.");m(n)}}});e("Configuration.restartApp Done")};a.prototype.getServerProperty=function(l,m){e("getServerProperty: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["serverIpPort","siServerIp","secureConnection","appLaunchMode","fqdnAddr","fqdnMode","appType"]},onSuccess:function(n){e("getPictureProperty: On Success");if(n.returnValue===true){if(typeof l==="function"){var o={};o.serverIp=n.settings.siServerIp;o.serverPort=parseInt(n.settings.serverIpPort,10);o.secureConnection=(n.settings.secureConnection==="off"?false:true);o.appLaunchMode=n.settings.appLaunchMode;o.appType=n.settings.appType;o.fqdnMode=(n.settings.fqdnMode==="off"?false:true);o.fqdnAddr=n.settings.fqdnAddr;l(o)}}},onFailure:function(n){e("getServerProperty: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGSP","Configuration.getServerProperty returns failure.");m(n)}}});e("Configuration.getServerProperty Done")};a.prototype.setServerProperty=function(m,n,o){e("setServerProperty: "+JSON.stringify(o));if(o===undefined||typeof o.serverIp!=="string"||/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(o.serverIp)===false||isNaN(o.serverPort)||o.serverPort<0||o.serverPort>65535||typeof o.serverPort!=="number"||typeof o.secureConnection!=="boolean"||typeof o.appLaunchMode!=="string"||(o.appLaunchMode!==a.AppMode.USB&&o.appLaunchMode!==a.AppMode.LOCAL&&o.appLaunchMode!==a.AppMode.REMOTE)){if(typeof n==="function"){var l={};i(l,"CSSP","Configuration.setServerProperty, Invalid parameters.");n(l);return}}var p={};p.siServerIp=o.serverIp;p.serverIpPort=o.serverPort+"";p.secureConnection=(o.secureConnection===true?"on":"off");p.appLaunchMode=o.appLaunchMode;if(typeof o.fqdnMode==="boolean"){p.fqdnMode=(o.fqdnMode===true?"on":"off")}if(typeof o.fqdnAddr==="string"){p.fqdnAddr=o.fqdnAddr}if(typeof o.appType!=="undefined"){p.appType=o.appType}e(JSON.stringify(p));g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:p},onSuccess:function(q){e("setServerProperty: On Success");if(q.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(q){e("setServerProperty: On Failure");delete q.returnValue;if(typeof n==="function"){i(q,"CSSP","Configuration.setServerProperty returns failure.");n(q)}}});e("Configuration.setServerProperty Done")};a.prototype.clearCache=function(l,m){e("clearCache: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"clearCache",onSuccess:function(n){e("clearCache: On Success");if(typeof l==="function"){l()}},onFailure:function(n){e("clearCache: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CCC","Configuration.clearCache returns failure.");m(n)}}});e("Configuration.clearCache Done")};a.prototype.getTimeZoneList=function(l,m){e("getTimeZoneList: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZoneList",onSuccess:function(n){e("getTimeZoneList: On Success");if(n.returnValue===true){if(typeof l==="function"){delete n.returnValue;l(n)}}},onFailure:function(n){e("getTimeZoneList: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGTL","Configuration.getTimeZoneList returns failure.");m(n)}}});e("Configuration.getTimeZoneList Done")};a.prototype.getTimeZone=function(l,m){e("getTimeZone: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"getTimeZone",onSuccess:function(n){e("getTimeZone: On Success");if(n.returnValue===true){if(typeof l==="function"){delete n.returnValue;l(n)}}},onFailure:function(n){e("getTimeZone: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGTZ","Configuration.getTimeZone returns failure.");m(n)}}});e("Configuration.getTimeZone Done")};a.prototype.setTimeZone=function(l,m,n){e("setTimeZone: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"time",keys:["autoClock"]},onSuccess:function(o){if(o.returnValue===true){if(typeof l==="function"){if(o.settings.autoClock==="off"){delete o.returnValue;if(typeof m==="function"){i(o,"CSTZ","Configuration.setTimeZone returns failure. autoClock is off");m(o)}}else{g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"setTimeZone",parameters:n,onSuccess:function(p){e("setTimeZone: On Success");if(p.returnValue===true){if(typeof l==="function"){delete p.returnValue;l(p)}}},onFailure:function(p){e("setTimeZone: On Failure");delete p.returnValue;if(typeof m==="function"){i(p,"CSTZ","Configuration.setTimeZone returns failure.");m(p)}}})}}}},onFailure:function(o){e("setTimeZone: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"CSTZ","Configuration.setTimeZone returns failure.");m(o)}}});e("Configuration.setTimeZone Done")};a.prototype.debug=function(l,m,n){e("debug: "+n.enabled);g.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"debug",parameters:{enabled:n.enabled},onSuccess:function(o){e("debug: On Success");if(typeof l==="function"){l(o)}},onFailure:function(o){e("debug: On Failure");delete o.returnValue;if(typeof m==="function"){i(o,"CD","Configuration.debug returns failure.");m(o)}}});e("Configuration.debug Done")};a.prototype.setUSBLock=function(m,n,o){e("setUSBLock: "+o.enabled);if(o.enabled===null&&typeof n==="function"){var l={};i(l,"CSUL","Configuration.setUSBLock returns failure. command was not defined.");n(l);e("Configuration.setUSBLock invalid ");return}g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{enableUsb:(o.enabled===true)?"off":"on"}},onSuccess:function(p){e("setUSBLock: On Success");if(p.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(p){e("setUSBLock: On Failure");delete p.returnValue;if(typeof n==="function"){i(p,"CSUL","Configuration.setUSBLock returns failure.");n(p)}}});e("Configuration.setUSBLock Done")};a.prototype.getUSBLock=function(l,m){e("getUSBLock: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["enableUsb"]},onSuccess:function(n){e("getUSBLock: On Success");if(n.returnValue===true){var o={};o.enabled=(n.settings.enableUsb==="off")?true:false;if(typeof l==="function"){l(o)}}},onFailure:function(n){e("getUSBLock: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGUL","Configuration.getUSBLock returns failure.");m(n)}}});e("Configuration.getUSBLock Done")};a.prototype.setOSDLock=function(m,n,o){e("setOSDLock: "+o.enabled);if(o.enabled===null&&typeof n==="function"){var l={};i(l,"CSOL","Configuration.setOSDLock returns failure. command was not defined.");n(l);e("Configuration.setOSDLock invalid ");return}g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"hotelMode",notifySelf:false,settings:{enableMrcu:(o.enabled===true)?"off":"on",enableOsdVisibility:(o.enabled===true)?"off":"on"}},onSuccess:function(p){e("setOSDLock: On Success");if(p.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(p){e("setOSDLock: On Failure");delete p.returnValue;if(typeof n==="function"){i(p,"CSOL","Configuration.setOSDLock returns failure.");n(p)}}});e("Configuration.setOSDLock Done")};a.prototype.getOSDLock=function(l,m){e("getOSDLock: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"hotelMode",keys:["enableMrcu","enableOsdVisibility"]},onSuccess:function(n){e("getOSDLock: On Success");if(n.returnValue===true){var o={};o.enabled=(n.settings.enableMrcu==="on"&&n.settings.enableOsdVisibility==="on")?false:true;if(typeof l==="function"){l(o)}}},onFailure:function(n){e("getOSDLock: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGOL","Configuration.getOSDLock returns failure.");m(n)}}});e("Configuration.getOSDLock Done")};a.prototype.getLocaleList=function(l,m){e("getLocaleList: ");var n={};n.localeList=a.LocaleList;if(typeof l==="function"){l(n)}e("Configuration.getLocaleList Done")};a.prototype.setOSDLanguage=function(m,n,o){e("setOSDLanguage: "+o.specifier);if((o.specifier===null||typeof o.specifier!=="string")&&typeof n==="function"){var l={};i(l,"CSOL","Configuration.setOSDLanguage returns failure. command was not defined.");n(l);e("Configuration.setOSDLanguage invalid ");return}if(c(o.specifier)===true){e("Specifier is valid");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{keys:["localeInfo"]},onSuccess:function(p){if(p.returnValue===true){var q={};q=p.settings.localeInfo;q.locales.UI=o.specifier;q.locales.FMT=o.specifier;q.locales.TV=o.specifier;e("localeInfo : "+JSON.stringify(q));g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{settings:{localeInfo:q}},onSuccess:function(r){e("setOSDLanguage: On Success");if(r.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(r){e("setOSDLanguage: On Failure");delete r.returnValue;if(typeof n==="function"){i(r,"CSOL","Configuration.setOSDLanguage returns failure.");n(r)}}})}},onFailure:function(p){delete p.returnValue;if(typeof n==="function"){i(p,"CSOL","Configuration.setOSDLanguage returns failure.");n(p)}}})}else{var l={};i(l,"CSOL","Configuration.setOSDLanguage returns failure. specifier is not valid.");n(l);e("Configuration.setOSDLanguage invalid ");return}e("Configuration.setOSDLanguage Done")};a.prototype.getOSDLanguage=function(l,m){e("getOSDLanguage: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{keys:["localeInfo"]},onSuccess:function(n){e("getOSDLanguage: On Success");if(n.returnValue===true){var o={};e("localeInfo : "+JSON.stringify(n.settings.localeInfo));o.specifier=n.settings.localeInfo.locales.UI;if(typeof l==="function"){l(o)}}},onFailure:function(n){e("getOSDLanguage: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGOL","Configuration.getOSDLanguage returns failure.");m(n)}}});e("Configuration.getOSDLanguage Done")};a.prototype.setVirtualKeyboardLanguage=function(m,n,o){e("setVirtualKeyboardLanguage: "+o.languageCodeList);if(o.languageCodeList===null&&typeof n==="function"){var l={};i(l,"CSKL","Configuration.setVirtualKeyboardLanguage returns failure. command was not defined.");n(l);e("Configuration.setVirtualKeyboardLanguage invalid ");return}for(var p=0;p<o.languageCodeList.length;p++){if(d(o.languageCodeList[p])===false){var l={};i(l,"CSKL","Configuration.setVirtualKeyboardLanguage returns failure. language code is not valid.");n(l);e("Configuration.setVirtualKeyboardLanguage invalid ");return}}e("languageCodeList is valid");g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"setVirtualKeyboardLanguage",parameters:{languageCodeList:o.languageCodeList},onSuccess:function(q){e("setVirtualKeyboardLanguage: On Success");if(q.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(q){e("setVirtualKeyboardLanguage: On Failure");delete q.returnValue;if(typeof n==="function"){i(q,"CSKL","Configuration.setVirtualKeyboardLanguage returns failure.");n(q)}}});e("Configuration.setVirtualKeyboardLanguage Done")};a.prototype.getVirtualKeyboardLanguage=function(l,m){e("getVirtualKeyboardLanguage: ");g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"getVirtualKeyboardLanguage",parameters:{},onSuccess:function(n){e("getVirtualKeyboardLanguage: On Success");if(n.returnValue===true){var o={};e("keyboards : "+JSON.stringify(n.languageCodeList));o.languageCodeList=n.languageCodeList;if(typeof l==="function"){l(o)}}},onFailure:function(n){e("getVirtualKeyboardLanguage: On Failure");delete n.returnValue;if(typeof m==="function"){i(n,"CGKL","Configuration.getVirtualKeyboardLanguage returns failure.");m(n)}}});e("Configuration.getVirtualKeyboardLanguage Done")};a.prototype.setProxyBypassList=function(m,n,o){if(typeof o.urlList==="undefined"&&typeof n==="function"){var l={};i(l,"CSPB","Configuration.setProxyBypassList returns failure. options.urlList is undefined.");n(l);return}g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"setProxyBypassList",parameters:{urlList:o.urlList},onSuccess:function(p){e("setProxyBypassList: On Success");if(p.returnValue===true){if(typeof m==="function"){m()}}},onFailure:function(p){e("setProxyBypassList: On Failure");delete p.returnValue;if(typeof n==="function"){i(p,"CSPB","Configuration.setProxyBypassList returns failure.");n(p)}}})};a.prototype.getProxyBypassList=function(l,m){g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration/",{method:"getProxyBypassList",parameters:{},onSuccess:function(n){if(n.returnValue===true){var o={};o.urlList=n.urlList;if(typeof l==="function"){l(o)}}},onFailure:function(n){delete n.returnValue;if(typeof m==="function"){i(n,"CGPB","Configuration.getProxyBypassList returns failure.");m(n)}}})};a.prototype.getMasterPinStatus=function(l,m){g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration",{method:"getMasterPinStatus",parameters:{},onSuccess:function(n){delete n.returnValue;if(typeof l==="function"){l(n)}},onFailure:function(n){delete n.returnValue;if(typeof m==="function"){m(n)}}})};a.prototype.setMasterPinStatus=function(l,m,n){g.Request("luna://com.webos.service.commercial.signage.storageservice/configuration",{method:"setMasterPinStatus",parameters:n,onSuccess:function(o){delete o.returnValue;if(typeof l==="function"){l()}},onFailure:function(o){delete o.returnValue;if(typeof m==="function"){m(o)}}})};return a}());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DeviceInfo=(function(){var d,a;function c(e){}if(typeof window==="object"){cordova.define("cordova/plugin/deviceInfo",function(f,e,g){d=function(){};if(window.PalmSystem){c("Window.PalmSystem Available");a=f("cordova/plugin/webos/service")}else{a={Request:function(h,i){c(h+" invoked. But I am a dummy because PalmSystem is not available");if(typeof i.onFailure==="function"){i.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}g.exports=d});d=cordova.require("cordova/plugin/deviceInfo")}else{d=function(e){a=e;a.Request=function(f,h){var g=f+"/"+h.method;var i={};if(h.hasOwnProperty("parameters")===true){i=h.parameters}var j={};var k=function(l){console.log("res : "+JSON.stringify(l));if(l.payload.returnValue===true){j=l.payload;h.onSuccess(j)}else{j.returnValue=false;j.errorCode=l.payload.errorCode;j.errorText=l.payload.errorText;h.onFailure(j)}};if(a){a.call(g,i,k)}}};module.exports=d}function b(f,g,e){if(f.errorCode===undefined||f.errorCode===null){f.errorCode=g}if(f.errorText===undefined||f.errorText===null){f.errorText=e}}d.EddystoneFrame={UUID:"uid",URL:"url"};d.prototype.getNetworkInfo=function(e,f){c("getNetworkInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getNetworkInfo",parameters:{},onSuccess:function(g){if(typeof e==="function"){delete g.returnValue;e(g)}},onFailure:function(g){c("getNetworkInfo: onFailure");if(g.errorText.indexOf("Unknown method")!==-1){a.Request("luna://com.palm.connectionmanager",{method:"getstatus",parameters:{},onSuccess:function(h){c("getNetworkInfo: onSuccess");delete h.returnValue;if(typeof e==="function"){e(h)}},onFailure:function(h){c("getNetworkInfo: onFailure");delete h.returnValue;if(typeof f==="function"){f(h)}}})}else{delete g.returnValue;if(typeof f==="function"){f(g)}}}});c("DeviceInfo.getNetworkInfo Done")};d.prototype.setNetworkInfo=function(e,f,g){c("setNetworkInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setNetworkInfo",parameters:g,onSuccess:function(h){c("setNetworkInfo: onSuccess");if(typeof e==="function"){e()}},onFailure:function(h){c("setNetworkInfo: onFailure");delete h.returnValue;if(typeof f==="function"){f(h)}}});c("DeviceInfo.setNetworkInfo Done")};d.prototype.getBeaconInfo=function(e,f){c("getBeaconInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getBeaconInfo",parameters:{},onSuccess:function(g){c("getBeaconInfo: onSuccess");delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getBeaconInfo: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.getBeaconInfo Done")};d.prototype.setBeaconInfo=function(f,g,h){c("setBeaconInfo: ");var i=function(k){if(typeof k==="undefined"||k===null||k.length!=32){return false}var j=new RegExp(/^[a-fA-F0-9]*$/g);return j.exec(k)!==null?true:false};if(h.enabled===true&&(i(h.uuid)===false||isNaN(h.major)||h.major<0||h.major>65535||isNaN(h.minor)||h.minor<0||h.minor>65535)){c("setBeaconInfo: options are invalid.");if(typeof g==="function"){var e={};b(e,"DSBI","DeviceInfo.setBeaconInfo. Invalid options.");g(e)}return}a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setBeaconInfo",parameters:h,onSuccess:function(j){c("setBeaconInfo: onSuccess");if(typeof f==="function"){f()}},onFailure:function(j){c("setBeaconInfo: onFailure");delete j.returnValue;if(typeof g==="function"){g(j)}}});c("DeviceInfo.setBeaconInfo Done")};d.prototype.getSoftApInfo=function(e,f){c("getSoftApInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getSoftApInfo",parameters:{},onSuccess:function(g){c("getSoftApInfo: onSuccess");delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getSoftApInfo: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.getSoftApInfo Done")};d.prototype.setSoftApInfo=function(f,g,h){c("setSoftApInfo: ");if(h.enabled===true&&((h.ssid!==null&&h.ssid.length>32)||(h.securityKey!==null&&h.securityKey.length!==6))){c("setSoftApInfo: options are invalid.");if(typeof g==="function"){var e={};b(e,"DSSI","DeviceInfo.setSoftApInfo. Invalid options.");g(e)}return}a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setSoftApInfo",parameters:h,onSuccess:function(i){c("setSoftApInfo: onSuccess");if(typeof f==="function"){f()}},onFailure:function(i){c("setSoftApInfo: onFailure");delete i.returnValue;if(typeof g==="function"){g(i)}}});c("DeviceInfo.setSoftApInfo Done")};d.prototype.getWifiList=function(e,f){c("getWifiList: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getWifiList",parameters:{},onSuccess:function(g){c("getWifiList: onSuccess");delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getWifiList: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.getWifiList Done")};d.prototype.connectWifi=function(e,f,g){c("connectWifi: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"connectWifi",parameters:g,onSuccess:function(h){c("connectWifi: onSuccess");if(typeof e==="function"){e()}},onFailure:function(h){c("connectWifi: onFailure");delete h.returnValue;if(typeof f==="function"){f(h)}}});c("DeviceInfo.connectWifi Done")};d.prototype.startWps=function(e,f,g){c("startWps: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"startWps",parameters:g,onSuccess:function(h){c("startWps: onSuccess");delete h.returnValue;if(typeof e==="function"){e(h)}},onFailure:function(h){c("startWps: onFailure");delete h.returnValue;if(typeof f==="function"){f(h)}}});c("DeviceInfo.startWps Done")};d.prototype.stopWps=function(e,f){c("stopWps: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"stopWps",parameters:{},onSuccess:function(g){c("stopWps: onSuccess");if(typeof e==="function"){e()}},onFailure:function(g){c("stopWPS: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.stopWps Done")};d.prototype.getNetworkMacInfo=function(e,f){c("getNetworkMacInfo: ");a.Request("luna://com.webos.service.tv.signage",{method:"getinfo",parameters:{},onSuccess:function(g){c("getNetworkMacInfo: onSuccess");delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getNetworkMacInfo: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.getNetworkMacInfo Done")};d.prototype.getPlatformInfo=function(e,f){c("getPlatformInfo: ");a.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName","serialNumber","firmwareVersion","hardwareVersion","sdkVersion"]},onSuccess:function(g){c("getPlatformInfo: onSuccess");g.manufacturer="LGE";g.sdkVersion="1.5.12";delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getPlatformInfo: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}});c("DeviceInfo.getPlatformInfo Done")};d.prototype.getSystemUsageInfo=function(e,f,g){c("getSystemUsageInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice",{method:"getSystemUsageInfo",parameters:{cpus:g.cpus,memory:g.memory},onSuccess:function(h){if(h.returnValue===true){var i={};if(typeof h.memory!=="undefined"){i.memory=h.memory}if(typeof h.cpus!=="undefined"){i.cpus=h.cpus}if(typeof e==="function"){e(i)}}else{if(typeof f==="function"){f({errorCode:h.errorCode,errorText:h.errorText})}}},onFailure:function(h){if(typeof f==="function"){f({errorCode:h.errorCode,errorText:h.errorText})}}});c("DeviceInfo.getSystemUsageInfo Done")};d.prototype.setProxyInfo=function(f,g,h){var i={};c("setProxyInfo: "+h.enabled);if(typeof h.enabled!=="boolean"&&typeof g==="function"){var e={};b(e,"DSPI","DeviceInfo.setProxyInfo returns failure. enabled is not boolean.");g(e);return}if(h.enabled==false){i.proxyEnable="off";if(typeof h.ipAddress==="string"&&h.ipAddress.length<=512){i.proxySingleAddress=h.ipAddress}if(isNaN(h.port)===false){i.proxySinglePort=h.port.toString()}}else{i.proxyEnable="on";if((typeof h.ipAddress!=="string"||h.ipAddress.length>512)&&typeof g==="function"){var e={};b(e,"DSPI","DeviceInfo.setProxyInfo returns failure. ipAddress is not valid.");g(e);return}else{if(isNaN(h.port)&&typeof g==="function"){var e={};b(e,"DSPI","DeviceInfo.setProxyInfo returns failure. port is not number.");g(e);return}}i.proxySingleAddress=h.ipAddress;i.proxySinglePort=h.port.toString()}if(typeof h.userName==="string"){i.proxySingleUsername=h.userName}if(typeof h.password==="string"){i.proxySinglePassword=h.password}c("proxyInfo : "+JSON.stringify(i));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:i},onSuccess:function(j){c("setProxyInfo: On Success");if(j.returnValue===true){if(typeof f==="function"){f()}}},onFailure:function(j){c("setSoundOut: On Failure");delete j.returnValue;if(typeof g==="function"){b(j,"DSPI","DeviceInfo.setProxyInfo returns failure.");g(j)}}});c("DeviceInfo.setProxyInfo Done")};d.prototype.getProxyInfo=function(e,f){c("getProxyInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["proxyEnable","proxySingleAddress","proxySinglePort"]},onSuccess:function(g){c("getProxyInfo: On Success");if(g.returnValue===true){var h={};h.enabled=(g.settings.proxyEnable==="on")?true:false;h.ipAddress=g.settings.proxySingleAddress;h.port=parseInt(g.settings.proxySinglePort);if(typeof e==="function"){e(h)}}},onFailure:function(g){c("getProxyInfo: On Failure");delete g.returnValue;if(typeof f==="function"){b(g,"DGPI","DeviceInfo.getProxyInfo returns failure.");f(g)}}});c("DeviceInfo.getProxyInfo Done")};d.prototype.setiBeaconInfo=function(f,h,i){var j=function(l){if(typeof l==="undefined"||l===null||l.length!=32){return false}var k=new RegExp(/^[a-fA-F0-9]*$/g);return k.exec(l)!==null?true:false};var g={};if((i.enabled===null||i.enabled===undefined||typeof i.enabled!=="boolean")&&typeof h==="function"){var e={};b(e,"DSIB","DeviceInfo.setiBeaconInfo returns failure. enabled is required.");h(e);c("DeviceInfo.setiBeaconInfo invalid ");return}if(i.enabled==false){g.beaconMode="off"}else{if((i.uuid===null||i.uuid===undefined||j(i.uuid)===false)&&typeof h==="function"){var e={};b(e,"DSIB","DeviceInfo.setiBeaconInfo returns failure. uuid is not valid.");h(e);c("DeviceInfo.setiBeaconInfo invalid ");return}if((i.major===null||i.major===undefined||isNaN(i.major)||i.major<0||i.major>65535||i.minor===null||i.minor===undefined||isNaN(i.minor)||i.minor<0||i.minor>65535)&&typeof h==="function"){var e={};b(e,"DSIB","DeviceInfo.setiBeaconInfo returns failure. major and minor are not valid.");h(e);c("DeviceInfo.setiBeaconInfo invalid ");return}g.beaconMode="on";g.beaconType="iBeacon";g.iBeaconUuid=i.uuid;g.iBeaconMajor=i.major.toString();g.iBeaconMinor=i.minor.toString()}c("iBeaconInfo: "+JSON.stringify(g));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:g},onSuccess:function(k){c("setiBeaconInfo: On Success");if(k.returnValue===true){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"notifyUpdatingBeaconInfo",parameters:{},onSuccess:function(l){c("notifyUpdatingBeaconInfo: onSuccess");delete l.returnValue;if(typeof f==="function"){f(l)}},onFailure:function(l){c("notifyUpdatingBeaconInfo: onFailure");delete l.returnValue;if(typeof h==="function"){h(l)}}})}},onFailure:function(k){c("setiBeaconInfo: On Failure");delete k.returnValue;if(typeof h==="function"){b(k,"DSIB","DeviceInfo.setiBeaconInfo returns failure.");h(k)}}});c("DeviceInfo.setiBeaconInfo Done")};d.prototype.getiBeaconInfo=function(e,f){c("getiBeaconInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["beaconMode","iBeaconUuid","iBeaconMajor","iBeaconMinor"]},onSuccess:function(g){c("getiBeaconInfo: On Success");if(g.returnValue===true){var h={};h.enabled=(g.settings.beaconMode==="on")?true:false;h.uuid=g.settings.iBeaconUuid;h.major=parseInt(g.settings.iBeaconMajor);h.minor=parseInt(g.settings.iBeaconMinor);if(typeof e==="function"){e(h)}}},onFailure:function(g){c("getiBeaconInfo: On Failure");delete g.returnValue;if(typeof f==="function"){b(g,"DGIB","DeviceInfo.getiBeaconInfo returns failure.");f(g)}}});c("DeviceInfo.getiBeaconInfo Done")};d.prototype.setEddystoneInfo=function(h,i,j){var g=function(m){if(typeof m==="undefined"||m===null||m.length!=32){return false}var l=new RegExp(/^[a-fA-F0-9]*$/g);return l.exec(m)!==null?true:false};var k={};c("setEddystoneInfo: "+j.enabled);if((j.enabled===null||j.enabled===undefined||typeof j.enabled!=="boolean")&&typeof i==="function"){var f={};b(f,"DSEI","DeviceInfo.setEddystoneInfo returns failure. enabled is required.");i(f);c("DeviceInfo.setEddystoneInfo invalid ");return}if(j.enabled===false){k.beaconMode="off"}else{k.beaconMode="on";k.beaconType="eddystone";if(j.frame===d.EddystoneFrame.UUID){if(g(j.frameData)===false&&typeof i==="function"){var f={};b(f,"DSEI","DeviceInfo.setEddystoneInfo returns failure. frameData is not valid.");i(f);c("DeviceInfo.setEddystoneInfo invalid ");return}k.eddyStoneFrame=j.frame;k.eddyStoneUuid=j.frameData}else{if(j.frame===d.EddystoneFrame.URL){if((j.frameData===null||j.frameData===undefined||typeof j.frameData!=="string"||j.frameData.search("://")<0||j.frameData.substring(0,4).toUpperCase()!=="HTTP")&&typeof i==="function"){var f={};b(f,"DSEI","DeviceInfo.setEddystoneInfo returns failure. frameData is not valid.");i(f);c("DeviceInfo.setEddystoneInfo invalid ");return}k.eddyStoneFrame=j.frame;k.eddyStoneUrlPrefix=j.frameData.substring(0,j.frameData.search("://"));if(j.frameData.substring(j.frameData.search("://")+3,3).toUpperCase()==="WWW"){k.eddyStoneUrlPrefix=k.eddyStoneUrlPrefix+"Ex"}var e=0;if(k.eddyStoneUrlPrefix.toUpperCase()==="HTTP"){e=7}else{if(k.eddyStoneUrlPrefix.toUpperCase()==="HTTPEX"){e=11}else{if(k.eddyStoneUrlPrefix.toUpperCase()==="HTTPS"){e=8}else{if(k.eddyStoneUrlPrefix.toUpperCase()==="HTTPSEX"){e=12}}}}if(j.frameData.length-e>17){var f={};b(f,"DSEI","DeviceInfo.setEddystoneInfo returns failure. url size is over.");i(f);c("DeviceInfo.setEddystoneInfo invalid ");return}k.eddyStoneUrl=j.frameData.substring(e,j.frameData.length);k.eddyStoneUrlExCode="noneValue"}else{var f={};b(f,"DSEI","DeviceInfo.setEddystoneInfo returns failure. frame is not valid.");i(f);c("DeviceInfo.setEddystoneInfo invalid ");return}}}c("eddystoneInfo : "+JSON.stringify(k));a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:k},onSuccess:function(l){c("setEddystoneInfo: On Success");if(l.returnValue===true){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"notifyUpdatingBeaconInfo",parameters:{},onSuccess:function(m){c("notifyUpdatingBeaconInfo: onSuccess");delete m.returnValue;if(typeof h==="function"){h(m)}},onFailure:function(m){c("notifyUpdatingBeaconInfo: onFailure");delete m.returnValue;if(typeof i==="function"){i(m)}}})}},onFailure:function(l){c("setEddystoneInfo: On Failure");delete l.returnValue;if(typeof i==="function"){b(l,"DSEI","DeviceInfo.setEddystoneInfo returns failure.");i(l)}}})};d.prototype.getEddystoneInfo=function(e,f){c("getEddystoneInfo: ");a.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["beaconMode","eddyStoneFrame","eddyStoneUuid","eddyStoneUrlPrefix","eddyStoneUrl","eddyStoneUrlExCode"]},onSuccess:function(g){c("getEddystoneInfo: On Success");if(g.returnValue===true){var h={};h.enabled=(g.settings.beaconMode==="on")?true:false;h.frame=g.settings.eddyStoneFrame;if(g.settings.eddyStoneFrame===d.EddystoneFrame.UUID){h.frameData=g.settings.eddyStoneUuid}else{if(g.settings.eddyStoneUrlPrefix==="http"){h.frameData="http://"+g.settings.eddyStoneUrl}else{if(g.settings.eddyStoneUrlPrefix==="httpEx"){h.frameData="http://www."+g.settings.eddyStoneUrl}else{if(g.settings.eddyStoneUrlPrefix==="https"){h.frameData="https://"+g.settings.eddyStoneUrl}else{h.frameData="https://www."+g.settings.eddyStoneUrl}}}}if(typeof e==="function"){e(h)}}},onFailure:function(g){c("getEddystoneInfo: On Failure");delete g.returnValue;if(typeof f==="function"){b(g,"DGEI","DeviceInfo.getEddystoneInfo returns failure.");f(g)}}});c("DeviceInfo.getEddystoneInfo Done")};d.prototype.getBlockedPortList=function(e,f){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getBlockedPortList",parameters:{},onSuccess:function(g){delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){delete g.returnValue;if(typeof f==="function"){b(g,"DGEI","DeviceInfo.getBlockedPortList returns failure.");f(g)}}})};d.prototype.addBlockedPortList=function(e,f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"addBlockedPortList",parameters:g,onSuccess:function(h){if(typeof e==="function"){e()}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){f(h)}}})};d.prototype.deleteBlockedPortList=function(e,f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"deleteBlockedPortList",parameters:g,onSuccess:function(h){if(typeof e==="function"){e()}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){f(h)}}})};d.prototype.getNetworkCheckupInfo=function(e,f){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"getNetworkCheckupInfo",parameters:{},onSuccess:function(g){c("getNetworkCheckupInfo: onSuccess");delete g.returnValue;if(typeof e==="function"){e(g)}},onFailure:function(g){c("getNetworkCheckupInfo: onFailure");delete g.returnValue;if(typeof f==="function"){f(g)}}})};d.prototype.setNetworkCheckupInfo=function(e,f,g){a.Request("luna://com.webos.service.commercial.signage.storageservice/network/",{method:"setNetworkCheckupInfo",parameters:g,onSuccess:function(h){delete h.returnValue;if(typeof e==="function"){e()}},onFailure:function(h){delete h.returnValue;if(typeof f==="function"){b(h,"DSIB","DeviceInfo.setNetworkCheckupInfo returns failure.");f(h)}}})};return d}());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cordova.define("cordova/plugin/broadcast",function(i,t,a){var u=i("cordova/plugin/webos/service"),s=i("cordova/utils"),j=i("cordova/argscheck"),n=function(l){this.isATSC=false;this.tokenChannelChange=0;this.tokenSignalState=0;this.broadcastDivId=null;this.broadcastElement=null;this.currentInput=null;this.currentSource=null;this.isLastInput=true;this.isLastChannel=true;var h=this;u.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["atsc"]},onSuccess:function(v){h.isATSC=v.atsc},onFailure:function(v){}})};n.prototype.onchannelchange=function(h){},n.prototype.onsignalstatuschange=function(h){},n.prototype.initialize=function(h,x,l){j.checkArgs("fFo","broadcastCordova.initialize",arguments);var v=s.clone(l);this.broadcastDivId=document.getElementById(v.divId);v.broadcastPlugin=this;if(1!=v.isLastInput&&v.src){this.isLastInput=false;if(-1!=v.src.indexOf("tv://")){if(1==v.isLastChannel){this.isLastChannel=true;v.type="service/webos-broadcast"}else{this.isLastChannel=false;v.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=v.src.substr(5)}else{v.type="service/webos-external";var w=v.src.split(":");this.currentInput=w[1].substr(2).toLowerCase();this.currentSource=w[2]}c(v);h&&h()}else{this.isLastInput=true;d(h,x,v)}},n.prototype.channelUp=function(h,v){j.checkArgs("fF","broadcastCordova.channelUp",arguments);var l={broadcastId:this.broadcastElement.mediaId};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelUp",parameters:l,onSuccess:function(w){h&&h()},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.channelDown=function(h,v){j.checkArgs("fF","broadcastCordova.channelDown",arguments);var l={broadcastId:this.broadcastElement.mediaId};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannelDown",parameters:l,onSuccess:function(w){h&&h()},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.setChannel=function(h,w,l){j.checkArgs("fFo","broadcastCordova.setChannel",arguments);var v={broadcastId:this.broadcastElement.mediaId,channelId:l.id};u.Request("luna://com.webos.service.tv.broadcast",{method:"changeChannel",parameters:v,onSuccess:function(x){h&&h()},onFailure:function(x){delete x.returnValue;w&&w(x)}})},n.prototype.getCurrentChannel=function(h,v){j.checkArgs("fF","broadcastCordova.getCurrentChannel",arguments);var l={broadcastId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:l,onSuccess:function(x){var w={};w=e(x.channel,"api");h&&h(w)},onFailure:function(w){delete w.returnValue;v&&v(w)}})},n.prototype.getSignalStatus=function(h,v){j.checkArgs("fF","broadcastCordova.getSignalStatus",arguments);var l;if("tv"==this.currentInput){l={broadcastId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:l,onSuccess:function(x){var w=x.channelState;w.screensaverType=w.channelScreensaverType;delete w.channelScreensaverType;h&&h(w)},onFailure:function(w){delete w.returnValue;v&&v(w)}})}else{l={externalInputId:this.broadcastElement.mediaId,subscribe:false};u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:l,onSuccess:function(w){h&&h(w.signalState)},onFailure:function(w){delete w.returnValue;v&&v(w)}})}},n.prototype.getCurrentProgram=function(h,v,l){j.checkArgs("fFo","broadcastCordova.getCurrentProgram",arguments),u.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var w={};w.id=l.id;w.startTime=x.localtime;w.endTime=x.localtime;w.request="nowInfo";b(h,v,w)},onFailure:function(w){delete w.returnValue,v&&v(w)}})},n.prototype.getNextProgram=function(h,v,l){j.checkArgs("fFo","broadcastCordova.getNextProgram",arguments),u.Request("luna://com.palm.systemservice/time",{method:"getEffectiveBroadcastTime",parameters:{},onSuccess:function(x){var w={};w.id=l.id,w.startTime=x.localtime,w.endTime=x.localtime,w.request="nextInfo",b(h,v,w)},onFailure:function(w){delete w.returnValue,v&&v(w)}})},n.prototype.getProgramCount=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getProgramCount",arguments);var v=s.clone(l);v.request="count";b(h,w,v)},n.prototype.getProgramList=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getProgramList",arguments);var v=s.clone(l);v.request="list";b(h,w,v)},n.prototype.getChannelCount=function(h,w,l){j.checkArgs("fFo","broadcastCordova.getChannelCount",arguments);var v={from:"com.webos.service.tv.channel.dblist:1",select:[""],where:[{prop:"channelType",op:"=",val:l.type}],filter:[{prop:"Invisible",op:"=",val:!1}]};u.Request("luna://com.palm.db/",{method:"search",parameters:{query:v},onSuccess:function(y){var x={};x.count=y.results.length;h&&h(x)},onFailure:function(x){delete x.returnValue,w&&w(x)}})},n.prototype.getChannelList=function(h,x,v){j.checkArgs("fFo","broadcastCordova.getChannelList",arguments);var l=v.startIndex-1;if(0>l){l=0}var y=l+v.count,w={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelType",op:"=",val:v.type}],filter:[{prop:"Invisible",op:"=",val:!1}],limit:y};u.Request("luna://com.palm.db/",{method:"search",parameters:{query:w},onSuccess:function(C){var z={};z.channel=[];var A=C.results.length-l;if(A>0){for(var B=0;A>B;B++){z.channel[B]=e(C.results[B+l],"db8")}}h&&h(z)},onFailure:function(z){delete z.returnValue;x&&x(z)}})},n.prototype.getChannelListByName=function(h,w,v){j.checkArgs("fFo","broadcastCordova.getChannelListByName",arguments);var l={from:"com.webos.service.tv.channel.dblist:1",select:["channelId","channelName","channelMode","channelNumber","channelType","skipped","locked","descrambled","scrambled"],where:[{prop:"channelName",op:"%",val:v.name}],filter:[{prop:"Invisible",op:"=",val:false}]};v.type&&l.filter.push({prop:"channelType",op:"=",val:v.type}),u.Request("luna://com.palm.db/",{method:"search",parameters:{query:l},onSuccess:function(z){var x={};if(x.channel=[],z.results.length>0){for(var y=0;y<z.results.length;y++){x.channel[y]=e(z.results[y],"db8")}}h&&h(x)},onFailure:function(x){delete x.returnValue;w&&w(x)}})},n.prototype.setInput=function(l){j.checkArgs("o","broadcastCordova.setInput",arguments);var w=false;if(-1!=l.src.indexOf("tv://")){if(1==this.isLastChannel){l.type="service/webos-broadcast"}else{l.type="service/webos-broadcast-standalone"}this.currentInput="tv";this.currentSource=l.src.substr(5)}else{l.type="service/webos-external";var v=l.src.split(":");this.currentInput=v[1].substr(2).toLowerCase();this.currentSource=v[2]}for(var h=0;h<this.broadcastElement.childNodes.length;h++){if("SOURCE"==this.broadcastElement.childNodes[h].nodeName){this.broadcastElement.childNodes[h].src=l.src;this.broadcastElement.childNodes[h].type=l.type;this.broadcastElement.load();w=true}}return w},n.prototype.addEventListener=function(h,v,l){if("channelchange"==h){this.tokenChannelChange=u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:false},onSuccess:function(x){var w=x.channel;v&&v(w)},onFailure:function(w){}})}else{if("signalstatus"==h){if("tv"==this.currentInput){this.tokenSignalState=u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:this.broadcastElement.mediaId,subscribe:false},onSuccess:function(x){var w=x.channelState;w.screensaverType=w.channelScreensaverType;delete w.channelScreensaverType;v&&v(w)},onFailure:function(w){}})}else{this.tokenSignalState=u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:this.broadcastElement.mediaId,subscribe:true},onSuccess:function(x){var w=x.signalState;v&&v(w)},onFailure:function(w){}})}}}};var k=function(h,l){r(h);if("tv"==h.currentInput){p(h);f(h)}else{o(h);l()}},c=function(h){var v=document.createElement("VIDEO");v.setAttribute("id",h.videoId);v.setAttribute("width","100%");v.setAttribute("height","100%");v.setAttribute("autoplay","");v.addEventListener("loadedmetadata",function(){k(h.broadcastPlugin,h.callback)},false);var l=document.createElement("SOURCE");l.setAttribute("src",h.src);l.setAttribute("type",h.type);v.appendChild(l);h.broadcastPlugin.broadcastDivId.appendChild(v);h.broadcastPlugin.broadcastElement=v},d=function(h,l,v){u.Request("luna://com.webos.service.eim",{method:"getCurrentInput",parameters:{},onSuccess:function(x){if("ATV"==x.mainInputSourceId||"DTV"==x.mainInputSourceId){v.broadcastPlugin.currentInput="tv";q(h,l,v)}else{var w=x.mainInputSourceId.split("_");v.broadcastPlugin.currentInput=w[0].toLowerCase();v.broadcastPlugin.currentSource=w[1];v.src="ext://"+v.broadcastPlugin.currentInput+":"+v.broadcastPlugin.currentSource;v.type="service/webos-external";c(v);h&&h()}},onFailure:function(w){delete w.returnValue;l&&l(w)}})},q=function(l,h,v){},p=function(h){h.tokenChannelChange=u.Request("luna://com.webos.service.tv.broadcast",{method:"getCurrentChannel",parameters:{broadcastId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(l){h.currentSource=l.channel.channelId;var v={};v=e(l.channel,"api"),h.onchannelchange(v)},onFailure:function(l){}})},f=function(h){h.tokenSignalState=u.Request("luna://com.webos.service.tv.broadcast",{method:"getChannelState",parameters:{broadcastId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(v){var l=v.channelState;l.screensaverType=l.channelScreensaverType;delete l.channelScreensaverType;h.onsignalstatuschange(l)},onFailure:function(l){}})},o=function(h){h.tokenSignalState=u.Request("luna://com.webos.service.tv.externaldevice/input/",{method:"getSignalState",parameters:{externalInputId:h.broadcastElement.mediaId,subscribe:true},onSuccess:function(l){var v=l.signalState;h.onsignalstatuschange(v)},onFailure:function(l){}})},r=function(h){if(h.tokenChannelChange){h.tokenChannelChange.cancel()}if(h.tokenSignalState){h.tokenSignalState.cancel()}},m=function(h,y,v){var w=g(v.startTime),l=g(v.endTime),x={};if("count"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:[""],where:[{prop:"signalChannelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:l},{prop:"localEndTime",op:">=",val:w}]}}else{if("nextInfo"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:">",val:w}],orderBy:"localStartTime",limit:1}}else{if("list"==v.request||"nowInfo"==v.request){x={from:"com.webos.service.tv.programSCH:4",select:["programId","eventId","localStartTime","localEndTime","duration","programName","description"],where:[{prop:"channelId",op:"=",val:v.signalChannelId}],filter:[{prop:"localStartTime",op:"<=",val:l},{prop:"localEndTime",op:">=",val:w}]}}}}},b=function(h,l,v){var w={from:"com.webos.service.tv.channel.dblist:1",select:["signalChannelId"],where:[{prop:"channelId",op:"=",val:v.id}]};u.Request("luna://com.palm.db/",{method:"find",parameters:{query:w},onSuccess:function(x){v.signalChannelId=x.results[0].signalChannelId;m(h,l,v)},onFailure:function(x){delete x.returnValue;l&&l(x)}})},e=function(v,l){var h={};h.id=v.channelId;h.number=v.channelNumber;h.name=v.channelName;if("api"==l){h.mode=v.channelModeName;h.type=v.channelTypeName;h.isSkipped=v.isSkipped;h.isLocked=v.isLocked;h.isDescrambled=v.isDescrambled;h.isScrambled=v.isScrambled}else{h.mode=v.channelMode;h.type=v.channelType;h.isSkipped=v.skipped;h.isLocked=v.locked;h.isDescrambled=v.descrambled;h.isScrambled=v.scrambled}return h},g=function(h){var l=h.year+",";l+=(h.month<10?"0":"")+h.month+",";l+=(h.day<10?"0":"")+h.day+",";l+=(h.hour<10?"0":"")+h.hour+",";l+=(h.minute<10?"0":"")+h.minute+",";l+=(h.second<10?"0":"")+h.second;return l};a.exports=n});var Broadcast=cordova.require("cordova/plugin/broadcast");cordova.define("cordova/plugin/inputSource",function(c,e,b){function d(p){}var i;if(window.PalmSystem){d("Window.PalmSystem Available");i=c("cordova/plugin/webos/service")}else{i={Request:function(p,q){d(p+" invoked. But I am a dummy because PalmSystem is not available");if(typeof q.onFailure==="function"){q.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}var k=function(){};var n=false;var h="";var g=null;function m(q,r,p){if(q.errorCode===undefined||q.errorCode===null){q.errorCode=r}if(q.errorText===undefined||q.errorText===null){q.errorText=p}}function f(r){var p=1;var q=r.length;if(!isNaN(parseInt(r.charAt(q-1),10))){p=r.charAt(q-1);q--}r=r.substring(0,q)+":"+p;r="ext://"+r.toLowerCase();return r}var j=null;var a={};function o(p){if(j===null){i.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(q){d("getPlatformInfo: onSuccess");d("version : "+q.sdkVersion);var r=q.sdkVersion.split(".");if(r.length>=1&&r[0]==="1"){a={webOSVer:1,chipset:q.boardType.split("_")[0]}}else{if(r.length>=1&&r[0]==="2"){a={webOSVer:2,chipset:q.boardType.split("_")[0]}}else{if(r.length>=1&&r[0]==="3"){a={webOSVer:3,chipset:q.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}j=a.webOSVer;p(a)},onFailure:function(q){d("getPlatformInfo: onFailure");a={webOSVer:0,chipset:""};p(a)}})}else{p(a)}}function l(r,p,q){var s=r.toUpperCase().substring(6).split(":")[0];if(s==="DP"){s="DISPLAYPORT"}i.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(t){d("convertInputSource: On Success "+r);if(t.returnValue===true){if(typeof p==="function"){var u=new Array(t.totalCount);o(function(D){var B=D.webOSVer;d("convertInputSource: "+JSON.stringify(t.devices));d("version: "+B);if(B>=3){for(var y=0;y<t.devices.length;y++){var z=r.substring(6).split(":");var C=t.devices[y].deviceName;var w="1";if(isNaN(C.substring(C.length-1,C.length))===false){w=C.substring(C.length-1,C.length);C=C.substring(0,C.length-1)}if(C.toLowerCase()==="displayport"){C="dp"}if(C.toLowerCase().indexOf(z[0].toLowerCase())>=0&&w===z[1]){var A=t.devices[y].id.split("_");convertedInput="ext://"+A[0].toLowerCase()+":"+A[1];p(convertedInput);return}}d("convertInputSource: On Failure "+r);var v={};m(v,"IGISS","convertInputSource. It does not support inputsource type.");q(v)}else{switch(B){case 1:if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:4"}}break;case 2:if(a.chipset==="H15"){if(r==="ext://dvi:1"){r="ext://hdmi:3"}else{if(r==="ext://ops:1"){r="ext://hdmi:3"}else{if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://hdmi:4"){r="ext://dp:1"}}}}}else{if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:2"}else{if(r==="ext://ops:1"){r="ext://hdmi:4"}}}}break;case 3:if(r==="ext://dp:1"){r="ext://hdmi:3"}else{if(r==="ext://dvi:1"){r="ext://hdmi:2"}else{if(r==="ext://ops:1"){r="ext://hdmi:4"}}}break;default:break}for(var y=0;y<u.length;y++){u[y]={};if(a.chipset==="H15"){u[y].inputPort=f(t.devices[y].deviceName)}else{u[y].inputPort=f(t.devices[y].label)}var A=t.devices[y].id.split("_");u[y].id="ext://"+A[0].toLowerCase()+":"+A[1];if(r===u[y].id){d("convertInputSource: On Success ok "+r);p(r);return}}for(var x=0;x<u.length;x++){if(r===u[x].inputPort){r=u[x].id;d("convertInputSource: On Success converted "+r);p(r);return}}d("convertInputSource: On Failure "+r);var v={};m(v,"IGISS","convertInputSource. It does not support inputsource type.");q(v)}})}}},onFailure:function(t){d("convertInputSource: On Failure");delete t.returnValue;if(typeof q==="function"){m(t,"IGISS","convertInputSource returns failure on gathering input list.");q(t)}}})}k.prototype.initialize=function(q,r,t){d("initialize: "+JSON.stringify(t));if(t.divId===undefined||typeof t.divId!=="string"||t.divId===null||t.divId.length<=0||t.videoId===undefined||typeof t.videoId!=="string"||t.videoId===null||t.videoId.length<=0||t.callback===undefined||typeof t.callback!=="function"||t.src===undefined||typeof t.src!=="string"||t.src===null||t.src.length<=0){if(typeof r==="function"){var p={};m(p,"II","InputSource.initialize returns failure. invalid parameters.");r(p)}return}if(document.getElementById(t.divId)===null||document.getElementById(t.divId)===undefined){if(typeof r==="function"){r({errorCode:"II",errorText:"options.divId:["+t.divId+"] element not exists or cannot approach"})}return}else{if(document.getElementById(t.videoId)){if(typeof r==="function"){r({errorCode:"II",errorText:"options.videoId:["+t.videoId+"] element already exists."})}return}}l(t.src,function u(v){var w={};w.divId=t.divId;w.videoId=t.videoId;w.callback=t.callback;w.src=v;g=new Broadcast();g.initialize(q,r,w);n=true;h=t.videoId},function s(w){d("initialize: failure "+JSON.stringify(w));if(typeof r==="function"){var v={};m(v,"II","InputSource.initialize returns failure. invalid parameters.");r(v)}});d("initialize: Done")};k.prototype.changeInputSource=function(q,r,t){if(t.src===undefined||typeof t.src!=="string"||t.src===null||t.src.length<=0){if(typeof r==="function"){var p={};m(p,"ICIS","InputSource.changeInputSource returns failure. invalid argument.");r(p)}return}if((n===false)||(document.getElementById(h)===null||document.getElementById(h)===undefined)){if(typeof r==="function"){var p={};m(p,"ICIS","InputSource.changeInputSource returns failure. Call initialize() first.");r(p)}return}d("changeInputSource: "+JSON.stringify(t));l(t.src,function u(w){var x={};x.divId=t.divId;x.videoId=t.videoId;x.callback=t.callback;x.src=w;if(g.setInput(x)){d("changeInputSource: On Success");if(typeof q==="function"){q()}}else{if(typeof r==="function"){var v={};d("changeInputSource: On Failure");m(v,"ICIS","InputSource.changeInputSource returns failure.");r(v)}}},function s(w){d("changeInputSource: failure "+JSON.stringify(w));if(typeof r==="function"){var v={};m(v,"ICIS","InputSource.changeInputSource returns failure. invalid argument. ");r(v)}});d("changeInputSource: Done")};k.prototype.getInputSourceStatus=function(p,q){d("getInputSourceStatus: ");i.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(r){d("getInputSourceStatus: On Success");if(r.returnValue===true){o(function(A){var x=A.webOSVer;d("convertInputSource: "+JSON.stringify(r.totalCount));d("convertInputSource: "+JSON.stringify(r.devices));d("version: "+x);var u={};var s=new Array(r.totalCount);var z=new Array(r.totalCount);for(var v=0;v<s.length;v++){s[v]={};s[v].inputPort=f(r.devices[v].label);var w=null;switch(x){case 1:w=r.devices[v].id.split("_");s[v].inputPort="ext://"+w[0].toLowerCase()+":"+w[1];if(s[v].inputPort==="ext://hdmi:3"){s[v].inputPort="ext://dp:1"}else{if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://dvi:1"}}break;case 2:w=r.devices[v].id.split("_");s[v].inputPort="ext://"+w[0].toLowerCase()+":"+w[1];if(A.chipset==="H15"){if(s[v].inputPort==="ext://dvi:4"){s[v].inputPort="ext://hdmi:3"}if(s[v].inputPort==="ext://ops:1"){s[v].inputPort="ext://hdmi:3"}if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://dp:1"}}else{if(s[v].inputPort==="ext://hdmi:3"){s[v].inputPort="ext://dp:1"}else{if(s[v].inputPort==="ext://hdmi:2"){s[v].inputPort="ext://dvi:1"}else{if(s[v].inputPort==="ext://hdmi:4"){s[v].inputPort="ext://ops:1"}}}}break;case 3:default:var y=r.devices[v].deviceName.toLowerCase();var t=1;if(isNaN(y.substring(y.length-1,y.length))===false){y=y.substring(0,y.length-1);t=r.devices[v].id.split("_")[1]}if(y.toLowerCase()==="displayport"){y="dp"}else{if(y.toLowerCase()==="ops/dvi"){y="ops"}}s[v].inputPort="ext://"+y.toLowerCase()+":"+t;break}z[v]={};z[v].inputPort=s[v].inputPort;z[v].id=r.devices[v].id}u.inputSourceList=s;i.Request("luna://com.webos.service.eim/",{method:"getCurrentInput",parameters:{},onSuccess:function(B){d("InputSource.getInputSourceStatus: On Success 3");if(B.returnValue===true){if(typeof p==="function"){u.currentInputSource={};for(var C=0;C<z.length;C++){if(z[C].id===B.mainInputSourceId){u.currentInputSource=z[C].inputPort;break}}u.currentSignalState="unknown";if(g!==null){d("InputSource.getInputSourceStatus : broadcast is not null");g.getSignalStatus(function D(F){u.currentSignalState=F.videoSignalState;d("InputSource.getInputSourceStatus: On Success 2");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}},function E(){d("InputSource.getInputSourceStatus : signal state is fail.");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}})}else{d("InputSource.getInputSourceStatus : it does not initialize.");if(typeof p==="function"){d("getInputSourceStatus: On Success"+JSON.stringify(u));p(u);return}}}}},onFailure:function(B){d("InputSource.getInputSourceStatus: On Failure 2");delete B.returnValue;if(typeof q==="function"){m(B,"IGISS","InputSource.getInputSourceStatus returns failure.");q(B);return}}})})}},onFailure:function(r){d("getInputSourceStatus: On Failure");delete r.returnValue;if(typeof q==="function"){m(r,"IGISS","InputSource.changeInputSource returns failure on gathering input list.");q(r)}}});d("InputSource.getInputSourceStatus Done")};k.prototype.getExternalInputList=function(p,q,r){d("getExternalInputList: ");i.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getExternalInputList",parameters:r,onSuccess:function(s){if(typeof p==="function"){delete s.returnValue;p(s)}},onFailure:function(s){d("getExternalInputList: onFailure");delete s.returnValue;if(typeof q==="function"){q(s)}}});d("InputSource.getExternalInputList Done")};b.exports=k});InputSource=cordova.require("cordova/plugin/inputSource");
|
package/files/templates/signage-sdk-templates/Local_Content_Scheduling/js/cordova-cd/1.5.12/power.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Power=(function(){var h,e;function b(j){}if(typeof window==="object"){cordova.define("cordova/plugin/power",function(k,j,l){h=function(){};if(window.PalmSystem){b("Window.PalmSystem Available");e=k("cordova/plugin/webos/service")}else{e={Request:function(m,n){b(m+" invoked. But I am a dummy because PalmSystem is not available");if(typeof n.onFailure==="function"){n.onFailure({returnValue:false,errorText:"PalmSystem Not Available. Cordova is not installed?"})}}}}l.exports=h});h=cordova.require("cordova/plugin/power")}else{h=function(j){e=j;e.Request=function(k,m){var l=k+"/"+m.method;var n={};if(m.hasOwnProperty("parameters")===true){n=m.parameters}var o={};var p=function(q){console.log("res : "+JSON.stringify(q));if(q.payload.returnValue===true){o=q.payload;m.onSuccess(o)}else{o.returnValue=false;o.errorCode=q.payload.errorCode;o.errorText=q.payload.errorText;m.onFailure(o)}};if(e){e.call(l,n,p)}}};module.exports=h}function g(k,l,j){if(k.errorCode===undefined||k.errorCode===null){k.errorCode=l}if(k.errorText===undefined||k.errorText===null){k.errorText=j}}function c(k,j){if(k===j){return true}if(k==null||j==null){return false}if(k.length!=j.length){return false}k.sort();j.sort();for(var l=0;l<k.length;l++){if(k[l]!==j[l]){return false}}return true}var f=null;var a={};function i(j){if(f===null){e.Request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["sdkVersion","boardType"]},onSuccess:function(k){b("getPlatformInfo: onSuccess");b("version : "+k.sdkVersion);var l=k.sdkVersion.split(".");if(l.length>=1&&l[0]==="1"){a={webOSVer:1,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="2"){a={webOSVer:2,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="3"){a={webOSVer:3,chipset:k.boardType.split("_")[0]}}else{if(l.length>=1&&l[0]==="4"){a={webOSVer:4,chipset:k.boardType.split("_")[0]}}else{a={webOSVer:0,chipset:""}}}}}f=a.webOSVer;delete k.returnValue;j(a)},onFailure:function(k){b("getPlatformInfo: onFailure");delete k.returnValue;a={webOSVer:0,chipset:""};j(a)}})}else{j(a)}}function d(j){if(a.chipset=="H15"){switch(j){case"ext://hdmi:1":return"HDMI1";case"ext://hdmi:2":return"HDMI2";case"ext://hdmi:3":return"OPS/HDMI3/DVI";case"ext://dvi:1":return"OPS/HDMI3/DVI";case"ext://dp:1":return"DISPLAYPORT";case"ext://rgb:1":return"RGB";case"ext://ops:1":return"OPS/HDMI3/DVI";case"HDMI1":return"ext://hdmi:1";case"HDMI2":return"ext://hdmi:2";case"HDMI3":return"ext://hdmi:3";case"DVI":return"ext://dvi:1";case"DISPLAYPORT":return"ext://dp:1";case"RGB":return"ext://rgb:1";case"OPS":return"ext://ops:1";case"OPS/HDMI3/DVI":return"ext://hdmi:3"}}else{switch(j){case"ext://hdmi:1":return"HDMI1";case"ext://hdmi:2":return"HDMI2";case"ext://hdmi:3":return"HDMI3";case"ext://dvi:1":return"DVI";case"ext://dp:1":return"DISPLAYPORT";case"ext://rgb:1":return"RGB";case"ext://ops:1":return"OPS";case"HDMI1":return"ext://hdmi:1";case"HDMI":return"ext://hdmi:1";case"HDMI2":return"ext://hdmi:2";case"HDMI3":return"ext://hdmi:3";case"DVI":return"ext://dvi:1";case"DISPLAYPORT":return"ext://dp:1";case"RGB":return"ext://rgb:1";case"OPS":return"ext://ops:1";case"OPS/HDMI3/DVI":return"ext://hdmi:3"}}return null}h.PowerCommand={SHUTDOWN:"powerOff",REBOOT:"reboot"};h.DisplayMode={DISPLAY_OFF:"Screen Off",DISPLAY_ON:"Active"};h.TimerWeek={MONDAY:1,TUESDAY:2,WEDNESDAY:4,THURSDAY:8,FRIDAY:16,SATURDAY:32,SUNDAY:64,EVERYDAY:127};h.DPMSignalType={CLOCK:"clock",CLOCK_WITH_DATA:"clockAndData"};h.PMMode={PowerOff:"powerOff",SustainAspectRatio:"sustainAspectRatio",ScreenOff:"screenOff",ScreenOffAlways:"screenOffAlways",ScreenOffBacklight:"screenOffBacklight"};h.prototype.getPowerStatus=function(j,k){b("getPowerStatus: ");e.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(l){b("getPowerStatus: On Success");var m={};if(l.returnValue===true){m.displayMode=l.state}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["wolEnable"]},onSuccess:function(n){b("getPowerStatus: On Success 2");if(n.returnValue===true){m.wakeOnLan=(n.settings.wolEnable==="1"?true:false)}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"time",keys:["onTimerEnable","offTimerEnable"]},onSuccess:function(o){b("getPowerStatus: On Success 3");if(o.returnValue===true){m.allOnTimer=(o.settings.onTimerEnable==="on"?true:false);m.allOffTimer=(o.settings.offTimerEnable==="on"?true:false);if(typeof j==="function"){j(m)}}},onFailure:function(o){b("getPowerStatus: On Failure 3");delete o.returnValue;if(typeof k==="function"){g(o,"PGPS","Power.getPowerStatus returns failure.");k(o)}}})},onFailure:function(n){b("getPowerStatus: On Failure 2");delete n.returnValue;if(typeof k==="function"){g(n,"PGPS","Power.getPowerStatus returns failure.");k(n)}}})},onFailure:function(l){b("getPowerStatus: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"PGPS","Power.getPowerStatus returns failure.");k(l)}}});b("Power.getPowerStatus Done")};h.prototype.enableAllOnTimer=function(k,l,m){b("enableAllOnTimer: "+JSON.stringify(m));var n=null;switch(m.allOnTimer){case true:n="on";break;case false:n="off";break;default:if(typeof l==="function"){var j={};g(j,"PEAOT","Power.enableAllOnTimer returns failure. Invalid option value.");l(j)}return}i(function(o){if(o.webOSVer===4||o.webOSVer>4){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"time",settings:{onTimerEnable:n}},onSuccess:function(){if(m.clearOnTimer===true){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(p){if(p.returnValue===true){var s=0;var q={};q.onTime=[];q.offTime=[];var r={};var t=(p.settings.onOffTimeSchedule.offTime===null||p.settings.onOffTimeSchedule.offTime===undefined?0:p.settings.onOffTimeSchedule.offTime.length);for(s=0;s<t;s++){if(p.settings.onOffTimeSchedule.offTime[s].day!==undefined&&p.settings.onOffTimeSchedule.offTime[s].day!==null){r.day=p.settings.onOffTimeSchedule.offTime[s].day}if(p.settings.onOffTimeSchedule.offTime[s].hour!==undefined&&p.settings.onOffTimeSchedule.offTime[s].hour!==null){r.hour=p.settings.onOffTimeSchedule.offTime[s].hour}if(p.settings.onOffTimeSchedule.offTime[s].minute!==undefined&&p.settings.onOffTimeSchedule.offTime[s].minute!==null){r.minute=p.settings.onOffTimeSchedule.offTime[s].minute}q.offTime.push(r);r={}}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:q}},onSuccess:function(){b("enableAllOnTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(u){b("enableAllOnTimer: On Failure 2");delete u.returnValue;if(typeof l==="function"){g(u,"PAOT","Power.enableAllOnTimer returns failure.");l(u)}return}})}else{if(typeof k==="function"){b("enableAllOnTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOnTimer: On Failure");g(p,"PEAOT","Power.enableAllOnTimer returns failure.");l(p)}}})}else{if(typeof k==="function"){b("enableAllOnTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOnTimer: On Failure");g(p,"PEAOT","Power.enableAllOnTimer returns failure.");l(p)}}})}else{e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{onTimerEnable:n}},onSuccess:function(){if(m.clearOnTimer===true){var s=0;var p=["0","0","0","0","0","0","0"],r=["0","0","0","0","0","0","0"],q=["0","0","0","0","0","0","0"],t=["0","0","0","0","0","0","0"],u=[];e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:p,multiOnTimerMinute:r,multiOnTimerWeekday:q,multiOnTimerSource:t,onTimerCount:s,onTimerSchedule:u}},onSuccess:function(){b("enableAllOnTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(v){b("enableAllOnTimer: On Failure 2");delete v.returnValue;if(typeof l==="function"){g(v,"PEAOT","Power.enableAllOnTimer returns failure. / clearOnTimer");l(v)}}})}else{if(typeof k==="function"){b("enableAllOnTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOnTimer: On Failure");g(p,"PEAOT","Power.enableAllOnTimer returns failure.");l(p)}}})}});b("Power.enableAllOnTimer Done")};h.prototype.enableAllOffTimer=function(k,l,m){b("enableAllOffTimer: "+JSON.stringify(m));var n=null;switch(m.allOffTimer){case true:n="on";break;case false:n="off";break;default:if(typeof l==="function"){var j={};g(j,"PEAOT","Power.enableAllOffTimer returns failure. Invalid option value.");l(j)}return}i(function(o){if(o.webOSVer===4||o.webOSVer>4){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"time",settings:{offTimerEnable:n}},onSuccess:function(){if(m.clearOffTimer===true){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(p){if(p.returnValue===true){var s=0;var q={};q.onTime=[];q.offTime=[];var r={};var t=(p.settings.onOffTimeSchedule.onTime===null||p.settings.onOffTimeSchedule.onTime===undefined?0:p.settings.onOffTimeSchedule.onTime.length);for(s=0;s<t;s++){if(p.settings.onOffTimeSchedule.onTime[s].day!==undefined&&p.settings.onOffTimeSchedule.onTime[s].day!==null){r.day=p.settings.onOffTimeSchedule.onTime[s].day}if(p.settings.onOffTimeSchedule.onTime[s].hour!==undefined&&p.settings.onOffTimeSchedule.onTime[s].hour!==null){r.hour=p.settings.onOffTimeSchedule.onTime[s].hour}if(p.settings.onOffTimeSchedule.onTime[s].minute!==undefined&&p.settings.onOffTimeSchedule.onTime[s].minute!==null){r.minute=p.settings.onOffTimeSchedule.onTime[s].minute}q.onTime.push(r);r={}}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:q}},onSuccess:function(){b("enableAllOffTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(u){b("enableAllOffTimer: On Failure 2");delete u.returnValue;if(typeof l==="function"){g(u,"PAOT","Power.enableAllOffTimer returns failure.");l(u)}return}})}else{if(typeof k==="function"){b("enableAllOffTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOffTimer: On Failure");g(p,"PEAOT","Power.enableAllOffTimer returns failure.");l(p)}}})}else{if(typeof k==="function"){b("enableAllOffTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOffTimer: On Failure");g(p,"PEAOT","Power.enableAllOffTimer returns failure.");l(p)}}})}else{e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"time",settings:{offTimerEnable:n}},onSuccess:function(){if(m.clearOffTimer===true){var s=0;var p=["0","0","0","0","0","0","0"],r=["0","0","0","0","0","0","0"],q=["0","0","0","0","0","0","0"],t=[];e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:p,multiOffTimerMinute:r,multiOffTimerWeekday:q,offTimerCount:s,offTimerSchedule:t}},onSuccess:function(){b("enableAllOffTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(u){b("enableAllOffTimer: On Failure 2");delete u.returnValue;if(typeof l==="function"){g(u,"PEAOT","Power.enableAllOffTimer returns failure. / clearOffTimer");l(u)}}})}else{if(typeof k==="function"){b("enableAllOffTimer: On Success");k()}}},onFailure:function(p){delete p.returnValue;if(typeof l==="function"){b("enableAllOffTimer: On Failure");g(p,"PEAOT","Power.enableAllOffTimer returns failure.");l(p)}}})}});b("Power.enableAllOffTimer Done")};h.prototype.enableWakeOnLan=function(k,l,m){b("enableWakeOnLan: "+JSON.stringify(m));var n=null;switch(m.wakeOnLan){case true:n="1";break;case false:n="0";break;default:if(typeof l==="function"){var j={};g(j,"PSWOL","Power.enableWakeOnLan returns failure. Invalid option value.");l(j)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{wolEnable:n}},onSuccess:function(){if(typeof k==="function"){b("enableWakeOnLan: On Success");k()}},onFailure:function(o){delete o.returnValue;if(typeof l==="function"){b("enableWakeOnLan: On Failure");g(o,"PSWOL","Power.enableWakeOnLan returns failure.");l(o)}}});b("Power.enableWakeOnLan Done")};h.prototype.addOnTimer=function(j,k,l){b("addOnTimer: "+JSON.stringify(l));i(function(n){if(n.webOSVer===4||n.webOSVer>4){if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<=0||l.week>127){if(typeof k==="function"){var m={};g(m,"PAOT","Power.addOnTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(o){if(o.returnValue===true){var t=0;var q={};q.onTime=[];q.offTime=[];var v=[];var s={};var p=1;while(l.week!==0){if(l.week&1){console.log("AddonTimer - options.week - "+l.week);switch(p){case 1:v.push("mon");break;case 2:v.push("tue");break;case 4:v.push("wed");break;case 8:v.push("thu");break;case 16:v.push("fri");break;case 32:v.push("sat");break;case 64:v.push("sun");break}}l.week=l.week>>>1;p=p<<1;if(l.week===0){break}}s.day=v;s.hour=l.hour;s.minute=l.minute;q.onTime.push(s);s={};var r=(o.settings.onOffTimeSchedule.onTime===null||o.settings.onOffTimeSchedule.onTime===undefined?0:o.settings.onOffTimeSchedule.onTime.length);for(t=0;t<r;t++){if(o.settings.onOffTimeSchedule.onTime[t].day!==undefined&&o.settings.onOffTimeSchedule.onTime[t].day!==null){s.day=o.settings.onOffTimeSchedule.onTime[t].day}if(o.settings.onOffTimeSchedule.onTime[t].hour!==undefined&&o.settings.onOffTimeSchedule.onTime[t].hour!==null){s.hour=o.settings.onOffTimeSchedule.onTime[t].hour}if(o.settings.onOffTimeSchedule.onTime[t].minute!==undefined&&o.settings.onOffTimeSchedule.onTime[t].minute!==null){s.minute=o.settings.onOffTimeSchedule.onTime[t].minute}q.onTime.push(s);s={}}var u=(o.settings.onOffTimeSchedule.offTime===null||o.settings.onOffTimeSchedule.offTime===undefined?0:o.settings.onOffTimeSchedule.offTime.length);for(t=0;t<u;t++){if(o.settings.onOffTimeSchedule.offTime[t].day!==undefined&&o.settings.onOffTimeSchedule.offTime[t].day!==null){s.day=o.settings.onOffTimeSchedule.offTime[t].day}if(o.settings.onOffTimeSchedule.offTime[t].hour!==undefined&&o.settings.onOffTimeSchedule.offTime[t].hour!==null){s.hour=o.settings.onOffTimeSchedule.offTime[t].hour}if(o.settings.onOffTimeSchedule.offTime[t].minute!==undefined&&o.settings.onOffTimeSchedule.offTime[t].minute!==null){s.minute=o.settings.onOffTimeSchedule.offTime[t].minute}q.offTime.push(s);s={}}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:q}},onSuccess:function(){b("addOnTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(w){b("addOnTimer: On Failure 2");delete w.returnValue;if(typeof k==="function"){g(w,"PAOT","Power.addOnTimer returns failure.");k(w)}return}})}},onFailure:function(o){b("addOnTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PAOT","Power.addOnTimer returns failure.");k(o)}return}})}else{if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<0||l.week>127||l.inputSource===undefined||typeof l.inputSource!=="string"||l.inputSource.indexOf("ext://")!==0){if(typeof k==="function"){var m={};g(m,"PAOT","Power.addOnTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(o){b("getInputSourceStatus: On Success");if(o.returnValue===true){var t=false;for(var s=0;s<o.totalCount;s++){var r=o.devices[s].deviceName.toLowerCase();var u=r;var p=l.inputSource.substring(6).split(":");var q="1";if(isNaN(r.substring(r.length-1,r.length))===false){r=r.substring(0,r.length-1);q=o.devices[s].id.split("_")[1]}if(r.toUpperCase()==="DISPLAYPORT"){r="DP"}if(r.toUpperCase().indexOf(p[0].toUpperCase())>=0&&q===p[1]){t=true;break}}if(t===false){b("addOnTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PAOT","Power.addOnTimer returns failure.");k(o)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(v){if(v.returnValue===true){b("version : "+n.webOSVer);if(typeof v.settings.multiOnTimerHour==="string"){v.settings.multiOnTimerHour=JSON.parse(v.settings.multiOnTimerHour)}if(typeof v.settings.multiOnTimerMinute==="string"){v.settings.multiOnTimerMinute=JSON.parse(v.settings.multiOnTimerMinute)}if(typeof v.settings.multiOnTimerWeekday==="string"){v.settings.multiOnTimerWeekday=JSON.parse(v.settings.multiOnTimerWeekday)}if(typeof v.settings.multiOnTimerSource==="string"){v.settings.multiOnTimerSource=JSON.parse(v.settings.multiOnTimerSource)}if(typeof v.settings.onTimerSchedule==="string"){v.settings.onTimerSchedule=JSON.parse(v.settings.onTimerSchedule)}var x=(v.settings.onTimerSchedule===null||v.settings.onTimerSchedule===undefined?0:v.settings.onTimerSchedule.length);if(v.settings.multiOnTimerHour.length<=x){if(typeof k==="function"){g(v,"PSOT","Power.addOnTimer returns failure. No space to add timer.");k(v)}return}if(n.webOSVer===3){if(l.week>=64){l.week=1+(l.week-64)*2}else{l.week=l.week*2}}v.settings.multiOnTimerHour[x]=l.hour;v.settings.multiOnTimerMinute[x]=l.minute;v.settings.multiOnTimerWeekday[x]=l.week;v.settings.multiOnTimerSource[x]=u.toUpperCase();var w=360;v.settings.onTimerSchedule[x]={_id:""+w++,hour:l.hour,input:u.toUpperCase(),minute:l.minute,weekday:l.week};e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:v.settings.multiOnTimerHour,multiOnTimerMinute:v.settings.multiOnTimerMinute,multiOnTimerWeekday:v.settings.multiOnTimerWeekday,multiOnTimerSource:v.settings.multiOnTimerSource,onTimerCount:x+1,onTimerSchedule:v.settings.onTimerSchedule}},onSuccess:function(){b("addOnTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(y){b("addOnTimer: On Failure 2");delete y.returnValue;if(typeof k==="function"){g(y,"PAOT","Power.addOnTimer returns failure.");k(y)}return}})}},onFailure:function(v){b("addOnTimer: On Failure");delete v.returnValue;if(typeof k==="function"){g(v,"PAOT","Power.addOnTimer returns failure.");k(v)}return}})}},onFailure:function(o){b("getInputSourceStatus: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PAOT","Power.addOnTimer returns failure on gathering input list.");k(o)}return}})}});b("Power.addOnTimer Done")};h.prototype.deleteOnTimer=function(j,k,l){b("deleteOnTimer: "+JSON.stringify(l));i(function(n){if(n.webOSVer===4||n.webOSVer>4){if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<0||l.week>127){if(typeof k==="function"){var m={};g(m,"PAOT","Power.deleteOnTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(x){if(x.returnValue===true){var r=0;var s={};s.onTime=[];s.offTime=[];var w=[];var q={};var v={};var o=1;while(l.week!==0){if(l.week&1){switch(o){case 1:w.push("mon");break;case 2:w.push("tue");break;case 4:w.push("wed");break;case 8:w.push("thu");break;case 16:w.push("fri");break;case 32:w.push("sat");break;case 64:w.push("sun");break}}l.week=l.week>>>1;o=o<<1;if(l.week===0){break}}o=0;q.day=w;q.hour=l.hour;q.minute=l.minute;var t=(x.settings.onOffTimeSchedule.onTime===null||x.settings.onOffTimeSchedule.onTime===undefined?0:x.settings.onOffTimeSchedule.onTime.length);var p=false;for(r=0;r<t;r++){if(x.settings.onOffTimeSchedule.onTime[r].day!==undefined&&x.settings.onOffTimeSchedule.onTime[r].day!==null){if(c(x.settings.onOffTimeSchedule.onTime[r].day,q.day)){o++}else{v.day=x.settings.onOffTimeSchedule.onTime[r].day}}if(x.settings.onOffTimeSchedule.onTime[r].hour!==undefined&&x.settings.onOffTimeSchedule.onTime[r].hour!==null){if(x.settings.onOffTimeSchedule.onTime[r].hour===q.hour){o++}else{v.hour=x.settings.onOffTimeSchedule.onTime[r].hour}}if(x.settings.onOffTimeSchedule.onTime[r].minute!==undefined&&x.settings.onOffTimeSchedule.onTime[r].minute!==null){if(x.settings.onOffTimeSchedule.onTime[r].minute===q.minute){o++}else{v.minute=x.settings.onOffTimeSchedule.onTime[r].minute}}if(o!==3){s.onTime.push(v)}else{p=true}o=0;v={}}var u=(x.settings.onOffTimeSchedule.offTime===null||x.settings.onOffTimeSchedule.offTime===undefined?0:x.settings.onOffTimeSchedule.offTime.length);for(r=0;r<u;r++){if(x.settings.onOffTimeSchedule.offTime[r].day!==undefined&&x.settings.onOffTimeSchedule.offTime[r].day!==null){v.day=x.settings.onOffTimeSchedule.offTime[r].day}if(x.settings.onOffTimeSchedule.offTime[r].hour!==undefined&&x.settings.onOffTimeSchedule.offTime[r].hour!==null){v.hour=x.settings.onOffTimeSchedule.offTime[r].hour}if(x.settings.onOffTimeSchedule.offTime[r].minute!==undefined&&x.settings.onOffTimeSchedule.offTime[r].minute!==null){v.minute=x.settings.onOffTimeSchedule.offTime[r].minute}s.offTime.push(v);v={}}if(p){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:s}},onSuccess:function(){b("deleteOnTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(y){b("deleteOnTimer: On Failure 2");delete y.returnValue;if(typeof k==="function"){g(y,"PAOT","Power.deleteOnTimer returns failure.");k(y)}return}})}else{var x={};g(x,"PAOT","Power.deleteOnTimer returns failure. / No matched found");k(x)}}},onFailure:function(o){b("deleteOnTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PAOT","Power.deleteOnTimer returns failure.");k(o)}return}})}else{if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<0||l.week>127||l.inputSource===undefined||typeof l.inputSource!=="string"||l.inputSource.indexOf("ext://")!==0){if(typeof k==="function"){var m={};g(m,"PDOT","Power.deleteOnTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOnTimerHour","multiOnTimerMinute","multiOnTimerWeekday","multiOnTimerSource","onTimerSchedule","onTimerCount"]},onSuccess:function(o){if(o.returnValue===true){i(function(p){e.Request("luna://com.webos.service.eim/",{method:"getAllInputStatus",onSuccess:function(t){b("getInputSourceStatus: On Success");if(o.returnValue===true){b("version : "+p.webOSVer);if(typeof o.settings.multiOnTimerHour==="string"){o.settings.multiOnTimerHour=JSON.parse(o.settings.multiOnTimerHour)}if(typeof o.settings.multiOnTimerMinute==="string"){o.settings.multiOnTimerMinute=JSON.parse(o.settings.multiOnTimerMinute)}if(typeof o.settings.multiOnTimerWeekday==="string"){o.settings.multiOnTimerWeekday=JSON.parse(o.settings.multiOnTimerWeekday)}if(typeof o.settings.multiOnTimerSource==="string"){o.settings.multiOnTimerSource=JSON.parse(o.settings.multiOnTimerSource)}if(typeof o.settings.onTimerSchedule==="string"){o.settings.onTimerSchedule=JSON.parse(o.settings.onTimerSchedule)}var E=0,C=(o.settings.onTimerSchedule===null||o.settings.onTimerSchedule===undefined?0:o.settings.onTimerSchedule.length);var x=["0","0","0","0","0","0","0"],y=["0","0","0","0","0","0","0"],r=["0","0","0","0","0","0","0"],q=["0","0","0","0","0","0","0"],B=[];var w=d(l.inputSource);for(var A=0;A<t.totalCount;A++){var D=t.devices[A].deviceName;var v=D;var z=l.inputSource.substring(6).split(":");var u="1";if(isNaN(D.substring(D.length-1,D.length))===false){D=D.substring(0,D.length-1);u=t.devices[A].id.split("_")[1]}if(D.toUpperCase()==="DISPLAYPORT"){D="DP"}if(D.toUpperCase().indexOf(z[0].toUpperCase())>=0&&u===z[1]){w=v;break}}var s=false;if(p.webOSVer===3){if(l.week>=64){l.week=1+(l.week-64)*2}else{l.week=l.week*2}}for(var A=0;A<C;A++){b("deleteOnTimer: "+w);if(o.settings.onTimerSchedule[A]===null){continue}b("options.week : "+l.week+" result.settings.onTimerSchedule["+A+"].weekday : "+o.settings.onTimerSchedule[A].weekday);if(s===false&&l.hour===o.settings.onTimerSchedule[A].hour&&l.minute===o.settings.onTimerSchedule[A].minute&&l.week==o.settings.onTimerSchedule[A].weekday&&o.settings.onTimerSchedule[A].input.toUpperCase()===w.toUpperCase()){b("deleteOnTimer: index "+A);s=true}else{x[E]=o.settings.multiOnTimerHour[A];y[E]=o.settings.multiOnTimerMinute[A];r[E]=o.settings.multiOnTimerWeekday[A];q[E]=o.settings.multiOnTimerSource[A];B[E]=o.settings.onTimerSchedule[A];E++}}if(s===true){C--}if(C===0){B=[]}if(o.settings.onTimerSchedule.length===C){if(typeof k==="function"){g(o,"PDOT","Power.deleteOnTimer returns failure. There is no 'on timer' matched in the list.");k(o)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOnTimerHour:x,multiOnTimerMinute:y,multiOnTimerWeekday:r,multiOnTimerSource:q,onTimerCount:C,onTimerSchedule:B}},onSuccess:function(){b("deleteOnTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(F){b("deleteOnTimer: On Failure 2");delete F.returnValue;if(typeof k==="function"){g(F,"PDOT","Power.deleteOnTimer returns failure.");k(F)}}})}},onFailure:function(q){b("getInputSourceStatus: On Failure");delete q.returnValue;if(typeof k==="function"){g(q,"PDOT","Power.deleteOnTimer returns failure");k(q)}return}})})}},onFailure:function(o){b("deleteOnTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PDOT","Power.deleteOnTimer returns failure.");k(o)}}})}});b("Power.deleteOnTimer Done")};h.prototype.addOffTimer=function(k,l,m){b("addOffTimer: "+JSON.stringify(m));if(m.hour===undefined||isNaN(m.hour)||typeof m.hour!=="number"||m.hour<0||m.hour>23||m.minute===undefined||isNaN(m.minute)||typeof m.minute!=="number"||m.minute<0||m.minute>59||m.week===undefined||isNaN(m.week)||typeof m.week!=="number"||m.week<=0||m.week>127){if(typeof l==="function"){var j={};g(j,"PAOT","Power.addOffTimer returns failure. Invalid parameter.");l(j)}return}i(function(n){if(n.webOSVer===4||n.webOSVer>4){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(o){if(o.returnValue===true){var t=0;var q={};q.onTime=[];q.offTime=[];var v=[];var s={};var p=1;while(m.week!==0){if(m.week&1){switch(p){case 1:v.push("mon");break;case 2:v.push("tue");break;case 4:v.push("wed");break;case 8:v.push("thu");break;case 16:v.push("fri");break;case 32:v.push("sat");break;case 64:v.push("sun");break}}m.week=m.week>>>1;p=p<<1;if(m.week===0){break}}s.day=v;s.hour=m.hour;s.minute=m.minute;q.offTime.push(s);s={};var r=(o.settings.onOffTimeSchedule.onTime===null||o.settings.onOffTimeSchedule.onTime===undefined?0:o.settings.onOffTimeSchedule.onTime.length);for(t=0;t<r;t++){if(o.settings.onOffTimeSchedule.onTime[t].day!==undefined&&o.settings.onOffTimeSchedule.onTime[t].day!==null){s.day=o.settings.onOffTimeSchedule.onTime[t].day}if(o.settings.onOffTimeSchedule.onTime[t].hour!==undefined&&o.settings.onOffTimeSchedule.onTime[t].hour!==null){s.hour=o.settings.onOffTimeSchedule.onTime[t].hour}if(o.settings.onOffTimeSchedule.onTime[t].minute!==undefined&&o.settings.onOffTimeSchedule.onTime[t].minute!==null){s.minute=o.settings.onOffTimeSchedule.onTime[t].minute}q.onTime.push(s);s={}}var u=(o.settings.onOffTimeSchedule.offTime===null||o.settings.onOffTimeSchedule.offTime===undefined?0:o.settings.onOffTimeSchedule.offTime.length);for(t=0;t<u;t++){if(o.settings.onOffTimeSchedule.offTime[t].day!==undefined&&o.settings.onOffTimeSchedule.offTime[t].day!==null){s.day=o.settings.onOffTimeSchedule.offTime[t].day}if(o.settings.onOffTimeSchedule.offTime[t].hour!==undefined&&o.settings.onOffTimeSchedule.offTime[t].hour!==null){s.hour=o.settings.onOffTimeSchedule.offTime[t].hour}if(o.settings.onOffTimeSchedule.offTime[t].minute!==undefined&&o.settings.onOffTimeSchedule.offTime[t].minute!==null){s.minute=o.settings.onOffTimeSchedule.offTime[t].minute}q.offTime.push(s);s={}}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:q}},onSuccess:function(){b("addOffTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(w){b("addOffTimer: On Failure 2");delete w.returnValue;if(typeof l==="function"){g(w,"PAOT","Power.addOffTimer returns failure.");l(w)}return}})}},onFailure:function(o){b("addOffTimer: On Failure");delete o.returnValue;if(typeof l==="function"){g(o,"PAOT","Power.addOffTimer returns failure.");l(o)}return}})}else{e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(o){if(o.returnValue===true){if(typeof o.settings.multiOffTimerHour==="string"){o.settings.multiOffTimerHour=JSON.parse(o.settings.multiOffTimerHour)}if(typeof o.settings.multiOffTimerMinute==="string"){o.settings.multiOffTimerMinute=JSON.parse(o.settings.multiOffTimerMinute)}if(typeof o.settings.multiOffTimerWeekday==="string"){o.settings.multiOffTimerWeekday=JSON.parse(o.settings.multiOffTimerWeekday)}if(typeof o.settings.offTimerSchedule==="string"){o.settings.offTimerSchedule=JSON.parse(o.settings.offTimerSchedule)}var p=(o.settings.offTimerSchedule===null||o.settings.offTimerSchedule===undefined?0:o.settings.offTimerSchedule.length);if(o.settings.multiOffTimerHour.length<=p){if(typeof l==="function"){g(o,"PAOT","Power.addOffTimer returns failure. No space to add timer.");l(o)}return}i(function(r){b("version : "+r.webOSVer);if(r.webOSVer===3){if(m.week>=64){m.week=1+(m.week-64)*2}else{m.week=m.week*2}}o.settings.multiOffTimerHour[p]=m.hour;o.settings.multiOffTimerMinute[p]=m.minute;o.settings.multiOffTimerWeekday[p]=m.week;b("add hour: "+m.hour+", min : "+m.minute+", week : "+m.week);var q=360;o.settings.offTimerSchedule[p]={_id:""+q++,hour:m.hour,minute:m.minute,weekday:m.week};e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:o.settings.multiOffTimerHour,multiOffTimerMinute:o.settings.multiOffTimerMinute,multiOffTimerWeekday:o.settings.multiOffTimerWeekday,offTimerCount:p+1,offTimerSchedule:o.settings.offTimerSchedule}},onSuccess:function(){b("addOffTimer: On Success 2");if(typeof k==="function"){k()}},onFailure:function(s){b("addOffTimer: On Failure 2");delete s.returnValue;if(typeof l==="function"){g(s,"PAOT","Power.addOffTimer returns failure.");l(s)}}})})}},onFailure:function(o){b("addOffTimer: On Failure");delete o.returnValue;if(typeof l==="function"){g(o,"PAOT","Power.addOffTimer returns failure.");l(o)}}})}});b("Power.addOffTimer Done")};h.prototype.deleteOffTimer=function(j,k,l){b("deleteOffTimer: "+JSON.stringify(l));i(function(n){if(n.webOSVer===4||n.webOSVer>4){if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<0||l.week>127){if(typeof k==="function"){var m={};g(m,"PAOT","Power.deleteOffTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(x){if(x.returnValue===true){var r=0;var s={};s.onTime=[];s.offTime=[];var w=[];var q={};var v={};var o=1;while(l.week!==0){if(l.week&1){switch(o){case 1:w.push("mon");break;case 2:w.push("tue");break;case 4:w.push("wed");break;case 8:w.push("thu");break;case 16:w.push("fri");break;case 32:w.push("sat");break;case 64:w.push("sun");break}}l.week=l.week>>>1;o=o<<1;if(l.week===0){break}}o=0;q.day=w;q.hour=l.hour;q.minute=l.minute;var t=(x.settings.onOffTimeSchedule.onTime===null||x.settings.onOffTimeSchedule.onTime===undefined?0:x.settings.onOffTimeSchedule.onTime.length);var p=false;for(r=0;r<t;r++){if(x.settings.onOffTimeSchedule.onTime[r].day!==undefined&&x.settings.onOffTimeSchedule.onTime[r].day!==null){v.day=x.settings.onOffTimeSchedule.onTime[r].day}if(x.settings.onOffTimeSchedule.onTime[r].hour!==undefined&&x.settings.onOffTimeSchedule.onTime[r].hour!==null){v.hour=x.settings.onOffTimeSchedule.onTime[r].hour}if(x.settings.onOffTimeSchedule.onTime[r].minute!==undefined&&x.settings.onOffTimeSchedule.onTime[r].minute!==null){v.minute=x.settings.onOffTimeSchedule.onTime[r].minute}s.onTime.push(v);v={}}var u=(x.settings.onOffTimeSchedule.offTime===null||x.settings.onOffTimeSchedule.offTime===undefined?0:x.settings.onOffTimeSchedule.offTime.length);for(r=0;r<u;r++){if(x.settings.onOffTimeSchedule.offTime[r].day!==undefined&&x.settings.onOffTimeSchedule.offTime[r].day!==null){if(c(x.settings.onOffTimeSchedule.offTime[r].day,q.day)){o++}else{v.day=x.settings.onOffTimeSchedule.offTime[r].day}}if(x.settings.onOffTimeSchedule.offTime[r].hour!==undefined&&x.settings.onOffTimeSchedule.offTime[r].hour!==null){if(x.settings.onOffTimeSchedule.offTime[r].hour===q.hour){o++}else{v.hour=x.settings.onOffTimeSchedule.offTime[r].hour}}if(x.settings.onOffTimeSchedule.offTime[r].minute!==undefined&&x.settings.onOffTimeSchedule.offTime[r].minute!==null){if(x.settings.onOffTimeSchedule.offTime[r].minute===q.minute){o++}else{v.minute=x.settings.onOffTimeSchedule.offTime[r].minute}}if(o!==3){s.offTime.push(v)}else{p=true}o=0;v={}}if(p){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"set",parameters:{category:"commercial",settings:{onOffTimeSchedule:s}},onSuccess:function(){b("deleteOffTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(y){b("deleteOffTimer: On Failure 2");delete y.returnValue;if(typeof k==="function"){g(y,"PAOT","Power.deleteOffTimer returns failure.");k(y)}return}})}else{var x={};g(x,"PAOT","Power.deleteOffTimer returns failure. / No matched found.");k(x)}}},onFailure:function(o){b("deleteOffTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PAOT","Power.deleteOffTimer returns failure.");k(o)}return}})}else{if(l.hour===undefined||isNaN(l.hour)||typeof l.hour!=="number"||l.hour<0||l.hour>23||l.minute===undefined||isNaN(l.minute)||typeof l.minute!=="number"||l.minute<0||l.minute>59||l.week===undefined||isNaN(l.week)||typeof l.week!=="number"||l.week<0||l.week>127){if(typeof k==="function"){var m={};g(m,"PDOT","Power.deleteOffTimer returns failure. invalid parameters or out of range.");k(m)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["multiOffTimerHour","multiOffTimerMinute","multiOffTimerWeekday","offTimerSchedule","offTimerCount"]},onSuccess:function(w){if(w.returnValue===true){if(typeof w.settings.multiOffTimerHour==="string"){w.settings.multiOffTimerHour=JSON.parse(w.settings.multiOffTimerHour)}if(typeof w.settings.multiOffTimerMinute==="string"){w.settings.multiOffTimerMinute=JSON.parse(w.settings.multiOffTimerMinute)}if(typeof w.settings.multiOffTimerWeekday==="string"){w.settings.multiOffTimerWeekday=JSON.parse(w.settings.multiOffTimerWeekday)}if(typeof w.settings.offTimerSchedule==="string"){w.settings.offTimerSchedule=JSON.parse(w.settings.offTimerSchedule)}var v=0,u=(w.settings.offTimerSchedule===null||w.settings.offTimerSchedule===undefined?0:w.settings.offTimerSchedule.length);var q=["0","0","0","0","0","0","0"],r=["0","0","0","0","0","0","0"],o=["0","0","0","0","0","0","0"],t=[];var p=false;i(function(x){b("version : "+x.webOSVer);if(x.webOSVer===3){if(l.week>=64){l.week=1+(l.week-64)*2}else{l.week=l.week*2}}});for(var s=0;s<u;s++){if(w.settings.offTimerSchedule[s]===null){continue}b("options.week : "+l.week+" result.settings.offTimerSchedule["+s+"].weekday : "+w.settings.offTimerSchedule[s].weekday);if(p===false&&l.hour===w.settings.offTimerSchedule[s].hour&&l.minute===w.settings.offTimerSchedule[s].minute&&l.week===w.settings.offTimerSchedule[s].weekday){p=true}else{q[v]=w.settings.multiOffTimerHour[s];r[v]=w.settings.multiOffTimerMinute[s];o[v]=w.settings.multiOffTimerWeekday[s];t[v]=w.settings.offTimerSchedule[s];v++}}if(p===true){u--}if(u===0){t=[]}if(w.settings.offTimerSchedule.length===u){if(typeof k==="function"){g(w,"PDOT","Power.deleteOffTimer returns failure. There is no 'off timer' matched in the list.");k(w)}return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{multiOffTimerHour:q,multiOffTimerMinute:r,multiOffTimerWeekday:o,offTimerCount:u,offTimerSchedule:t}},onSuccess:function(){b("deleteOffTimer: On Success 2");if(typeof j==="function"){j()}},onFailure:function(x){b("deleteOffTimer: On Failure 2");delete x.returnValue;if(typeof k==="function"){g(x,"PDOT","Power.deleteOffTimer returns failure.");k(x)}}})}},onFailure:function(o){b("deleteOffTimer: On Failure");delete o.returnValue;if(typeof k==="function"){g(o,"PDOT","Power.deleteOffTimer returns failure.");k(o)}}})}});b("Power.deleteOffTimer Done")};h.prototype.getOnTimerList=function(j,k){b("getOnTimerList: ");i(function(l){if(l.webOSVer===4||l.webOSVer>4){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(m){if(m.returnValue===true){var s={};var t=new Array(m.settings.onOffTimeSchedule.onTime===null||m.settings.onOffTimeSchedule.onTime===undefined?0:m.settings.onOffTimeSchedule.onTime.length);for(var p=0,q=0;q<t.length;q++,p++){if(m.settings.onOffTimeSchedule.onTime[q]===null||m.settings.onOffTimeSchedule.onTime[q]===undefined){continue}t[p]={hour:0,minute:0,week:0};var r=m.settings.onOffTimeSchedule.onTime[q].day;var n=0;for(var o=0;o<r.length;o++){if(r[o]==="mon"){n+=1}if(r[o]==="tue"){n+=2}if(r[o]==="wed"){n+=4}if(r[o]==="thu"){n+=8}if(r[o]==="fri"){n+=16}if(r[o]==="sat"){n+=32}if(r[o]==="sun"){n+=64}}t[p].hour=m.settings.onOffTimeSchedule.onTime[q].hour;t[p].minute=m.settings.onOffTimeSchedule.onTime[q].minute;t[p].week=n}s.timerList=t;if(typeof j==="function"){j(s)}}},onFailure:function(m){b("getOnTimerList: On Failure");delete m.returnValue;if(typeof k==="function"){g(m,"PGOTL","Power.getOnTimerList returns failure.");k(m)}}})}else{e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["onTimerSchedule"]},onSuccess:function(m){if(m.returnValue===true){i(function(p){b("version : "+p.webOSVer);var q={};if(typeof m.settings.onTimerSchedule==="string"){m.settings.onTimerSchedule=JSON.parse(m.settings.onTimerSchedule)}var v=new Array(m.settings.onTimerSchedule===null||m.settings.onTimerSchedule===undefined?0:m.settings.onTimerSchedule.length);for(var t=0,r=0;r<v.length;r++){if(m.settings.onTimerSchedule[r]===null||m.settings.onTimerSchedule[r]===undefined){continue}v[t]={hour:0,minute:0,week:0,inputSource:0};if(p.webOSVer===3){var n=m.settings.onTimerSchedule[r].weekday;if(n%2){var w=n%2;n=64+((n-w)/2)}else{n=n/2}}else{n=m.settings.onTimerSchedule[r].weekday}v[t].hour=m.settings.onTimerSchedule[r].hour;v[t].minute=m.settings.onTimerSchedule[r].minute;v[t].week=n;var s="ext://";var u=m.settings.onTimerSchedule[r].input.toUpperCase();var o="1";if(isNaN(u.substring(u.length-1,u.length))===false){o=u.substring(u.length-1,u.length);u=u.substring(0,u.length-1)}u=u.split("/")[0];if(u.toUpperCase()==="DISPLAYPORT"){s=s+"dp:"+o}else{s=s+u.toLowerCase()+":"+o}v[t++].inputSource=s}q.timerList=v;if(typeof j==="function"){j(q)}})}},onFailure:function(m){b("getOnTimerList: On Failure");delete m.returnValue;if(typeof k==="function"){g(m,"PGOTL","Power.getOnTimerList returns failure.");k(m)}}})}});b("Power.getOnTimerList Done")};h.prototype.getOffTimerList=function(j,k){b("getOffTimerList: ");i(function(l){if(l.webOSVer===4||l.webOSVer>4){e.Request("luna://com.webos.service.commercial.scapadapter/settings/",{method:"get",parameters:{category:"commercial",keys:["onOffTimeSchedule"]},onSuccess:function(m){if(m.returnValue===true){var s={};var t=new Array(m.settings.onOffTimeSchedule.offTime===null||m.settings.onOffTimeSchedule.offTime===undefined?0:m.settings.onOffTimeSchedule.offTime.length);for(var p=0,q=0;q<t.length;q++,p++){if(m.settings.onOffTimeSchedule.offTime[q]===null||m.settings.onOffTimeSchedule.offTime[q]===undefined){continue}t[p]={hour:0,minute:0,week:0};var r=m.settings.onOffTimeSchedule.offTime[q].day;var n=0;for(var o=0;o<r.length;o++){if(r[o]==="mon"){n+=1}if(r[o]==="tue"){n+=2}if(r[o]==="wed"){n+=4}if(r[o]==="thu"){n+=8}if(r[o]==="fri"){n+=16}if(r[o]==="sat"){n+=32}if(r[o]==="sun"){n+=64}}t[p].hour=m.settings.onOffTimeSchedule.offTime[q].hour;t[p].minute=m.settings.onOffTimeSchedule.offTime[q].minute;t[p].week=n}s.timerList=t;if(typeof j==="function"){j(s)}}},onFailure:function(m){b("getOffTimerList: On Failure");delete m.returnValue;if(typeof k==="function"){g(m,"PGOTL","Power.getOffTimerList returns failure.");k(m)}}})}else{e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["offTimerSchedule"]},onSuccess:function(m){b("getOffTimerList: On Success");i(function(s){b("version : "+s.webOSVer);if(m.returnValue===true){var r={};if(typeof m.settings.offTimerSchedule==="string"){m.settings.offTimerSchedule=JSON.parse(m.settings.offTimerSchedule)}var t=new Array(m.settings.offTimerSchedule===null||m.settings.offTimerSchedule===undefined?0:m.settings.offTimerSchedule.length);for(var n=0,o=0;o<t.length;o++){if(m.settings.offTimerSchedule[o]===null||m.settings.offTimerSchedule[o]===undefined){continue}t[n]={hour:0,minute:0,week:0};if(s.webOSVer===3){var p=m.settings.offTimerSchedule[o].weekday;if(p%2){var q=p%2;p=64+((p-q)/2)}else{p=p/2}}else{p=m.settings.offTimerSchedule[o].weekday}t[n].hour=m.settings.offTimerSchedule[o].hour;t[n].minute=m.settings.offTimerSchedule[o].minute;t[n++].week=p}r.timerList=t;if(typeof j==="function"){j(r)}}})},onFailure:function(m){b("getOffTimerList: On Failure");delete m.returnValue;if(typeof k==="function"){g(m,"PGOTL","Power.getOffTimerList returns failure.");k(m)}}})}});b("Power.getOffTimerList Done")};h.prototype.setDisplayMode=function(k,l,m){b("setDisplayMode: "+JSON.stringify(m));var n=null;switch(m.displayMode){case h.DisplayMode.DISPLAY_OFF:n="turnOffScreen";break;case h.DisplayMode.DISPLAY_ON:n="turnOnScreen";break;default:if(typeof l==="function"){var j={};g(j,"PSDM","Power.setDisplayMode returns failure. Invalid option value.");l(j)}return}b("setDisplayMode: "+n);if(n===null&&typeof l==="function"){var j={};g(j,"PSDM","Power.setDisplayMode returns failure. command was not defined.");l(j);b("Power.setDisplayMode invalid ");return}e.Request("luna://com.webos.service.tv.signage/",{method:"getPowerState",onSuccess:function(o){b("setDisplayMode: On Success");if(o.returnValue===true&&o.state===m.displayMode){if(typeof k==="function"){b("setDisplayMode: no need to do any action.");k()}return}e.Request("luna://com.webos.service.tv.signage/",{method:n,onSuccess:function(p){b("setDisplayMode: On Success");if(p.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(p){b("setDisplayMode: On Failure");delete p.returnValue;if(typeof l==="function"){g(p,"PSDM","Power.setDisplayMode returns failure.");l(p)}}})},onFailure:function(o){b("setDisplayMode: On Failure 2");delete o.returnValue;if(typeof l==="function"){g(o,"PSDM","Power.setDisplayMode returns failure.");l(o)}}});b("Power.setDisplayMode Done")};h.prototype.executePowerCommand=function(k,l,m){b("executePowerCommand: "+JSON.stringify(m));if(m.powerCommand===undefined||typeof m.powerCommand!=="string"||m.powerCommand===null||m.powerCommand.length<=0){if(typeof l==="function"){var j={};g(j,"PEPM","Power.executePowerCommand returns failure. invalid argument or out of range. ");l(j)}return}if((m.powerCommand!==h.PowerCommand.REBOOT)&&(m.powerCommand!==h.PowerCommand.SHUTDOWN)){var j={};g(j,"PEPM","Power.executePowerCommand returns failure. invalid argument.");l(j);return}e.Request("luna://com.webos.service.tv.signage/",{method:m.powerCommand,parameters:{reason:"unknown"},onSuccess:function(n){b("executePowerCommand: On Success");if(n.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(n){b("executePowerCommand: On Failure");delete n.returnValue;if(typeof l==="function"){g(n,"PEPM","Power.executePowerCommand returns failure.");l(n)}}});b("Power.executePowerCommand Done")};h.prototype.setDPMWakeup=function(k,m,n){var l=null;switch(n.dpmSignalType){case h.DPMSignalType.CLOCK:l="clock";break;case h.DPMSignalType.CLOCK_WITH_DATA:l="clockAndData";break}b("setDPMWakeup: "+l);if(l===null&&typeof m==="function"){var j={};g(j,"PSDW","Power.setDPMWakeup returns failure. command was not defined.");m(j);b("Power.setDPMWakeup invalid ");return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{dpmWakeUpControl:l}},onSuccess:function(o){b("setDPMWakeup: On Success");if(o.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(o){b("setDPMWakeup: On Failure");delete o.returnValue;if(typeof m==="function"){g(o,"PSDW","Power.setDPMWakeup returns failure.");m(o)}}});b("Power.setDPMWakeup Done")};h.prototype.getDPMWakeup=function(j,k){b("getDPMWakeup: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["dpmWakeUpControl"]},onSuccess:function(l){b("getDPMWakeup: On Success");if(l.returnValue===true){var m={};m.dpmSignalType=l.settings.dpmWakeUpControl;if(typeof j==="function"){j(m)}}},onFailure:function(l){b("getDPMWakeup: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"PGDW","Power.getDPMWakeup returns failure.");k(l)}}});b("Power.getDPMWakeup Done")};h.prototype.setPMMode=function(k,l,m){var n=null;switch(m.mode){case h.PMMode.PowerOff:n="powerOff";break;case h.PMMode.SustainAspectRatio:n="sustainAspectRatio";break;case h.PMMode.ScreenOff:n="screenOff";break;case h.PMMode.ScreenOffAlways:n="screenOffAlways";break;case h.PMMode.ScreenOffBacklight:n="screenOffBacklight";break}b("setPMMode: "+n);if(n===null&&typeof l==="function"){var j={};g(j,"PSPM","Power.setPMMode returns failure. command was not defined.");l(j);b("Power.setPMMode invalid ");return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{pmMode:n}},onSuccess:function(o){b("setPMMode: On Success");if(o.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(o){b("setPMMode: On Failure");delete o.returnValue;if(typeof l==="function"){g(o,"PSPM","Power.setPMMode returns failure.");l(o)}}});b("Power.setPMMode Done")};h.prototype.getPMMode=function(j,k){b("getPMMode: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["pmMode"]},onSuccess:function(l){b("getPMMode: On Success");if(l.returnValue===true){var m={};m.mode=l.settings.pmMode;if(typeof j==="function"){j(m)}}},onFailure:function(l){b("getPMMode: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"PGPM","Power.getPMMode returns failure.");k(l)}}});b("Power.getPMMode Done")};h.prototype.setPowerOnDelay=function(k,l,m){b("setPowerOnDelay: "+m.delayTime);if(m.delayTime===null&&typeof l==="function"){var j={};g(j,"PSPD","Power.setPowerOnDelay returns failure. command was not defined.");l(j);b("Power.setPowerOnDelay invalid ");return}if(typeof m.delayTime!=="number"){var j={};g(j,"PSPD","Power.setPowerOnDelay returns failure. delayTime is not a number.");l(j);b("Power.setPowerOnDelay invalid type");return}if((m.delayTime<0)||(m.delayTime>250)){var j={};g(j,"PSPD","Power.setPowerOnDelay returns failure. Out of range.");l(j);b("Power.setPowerOnDelay invalid range");return}e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"set",parameters:{category:"commercial",settings:{powerOnDelay:m.delayTime}},onSuccess:function(n){b("setPowerOnDelay: On Success");if(n.returnValue===true){if(typeof k==="function"){k()}}},onFailure:function(n){b("setPowerOnDelay: On Failure");delete n.returnValue;if(typeof l==="function"){g(n,"PSPD","Power.setPowerOnDelay returns failure.");l(n)}}});b("Power.setPowerOnDelay Done")};h.prototype.getPowerOnDelay=function(j,k){b("getPowerOnDelay: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/settings/",{method:"get",parameters:{category:"commercial",keys:["powerOnDelay"]},onSuccess:function(l){b("getPowerOnDelay: On Success");if(l.returnValue===true){var m={};m.delayTime=l.settings.powerOnDelay;if(typeof j==="function"){j(m)}}},onFailure:function(l){b("getPowerOnDelay: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"PGPD","Power.getPowerOnDelay returns failure.");k(l)}}});b("Power.getPowerOnDelay Done")};h.prototype.getOnOffTimeSchedule=function(j,k){b("getOnOffTimeSchedule: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"getOnOffTimeSchedule",parameters:{},onSuccess:function(l){b("getOnOffTimeSchedule: On Success");if(l.returnValue===true){if(typeof j==="function"){var m={};m.onOffTimeScheduleList=l.settings.onOffTimeSchedule;if(typeof j==="function"){j(m)}}}},onFailure:function(l){b("getOnOffTimeSchedule: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"TGAS","Power.getOnOffTimeSchedule returns failure.");k(l)}}});b("Power.getOnOffTimeSchedule Done")};h.prototype.setOnOffTimeSchedule=function(j,k,l){b("setOnOffTimeSchedule: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"setOnOffTimeSchedule",parameters:l,onSuccess:function(m){b("setOnOffTimeSchedule: On Success");if(m.returnValue===true){if(typeof j==="function"){if(typeof j==="function"){j()}}}},onFailure:function(m){b("setOnOffTimeSchedule: On Failure");delete m.returnValue;if(typeof k==="function"){g(m,"TGAS","Power.setOnOffTimeSchedule returns failure.");k(m)}}});b("Power.setOnOffTimeSchedule Done")};h.prototype.unsetOnOffTimeSchedule=function(j,k){b("unsetOnOffTimeSchedule: ");e.Request("luna://com.webos.service.commercial.signage.storageservice/",{method:"unsetOnOffTimeSchedule",parameters:{},onSuccess:function(l){b("unsetOnOffTimeSchedule: On Success");if(l.returnValue===true){if(typeof j==="function"){if(typeof j==="function"){j()}}}},onFailure:function(l){b("unsetOnOffTimeSchedule: On Failure");delete l.returnValue;if(typeof k==="function"){g(l,"TGAS","Power.unsetOnOffTimeSchedule returns failure.");k(l)}}});b("Power.unsetHolidaySchedule Done")};return h}());
|