summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/view/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/view/settings')
-rw-r--r--src/components/HMI/app/view/settings/policies/appPermissionsListView.js126
-rw-r--r--src/components/HMI/app/view/settings/policies/appPermissionsView.js136
-rw-r--r--src/components/HMI/app/view/settings/policies/deviceConfigView.js135
-rw-r--r--src/components/HMI/app/view/settings/policies/deviceStateChangeView.js113
-rw-r--r--src/components/HMI/app/view/settings/policies/statisticsInfoView.js88
-rw-r--r--src/components/HMI/app/view/settings/policies/systemErrorView.js88
-rw-r--r--src/components/HMI/app/view/settings/policiesView.js152
7 files changed, 838 insertions, 0 deletions
diff --git a/src/components/HMI/app/view/settings/policies/appPermissionsListView.js b/src/components/HMI/app/view/settings/policies/appPermissionsListView.js
new file mode 100644
index 0000000000..4fc83ad261
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/appPermissionsListView.js
@@ -0,0 +1,126 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.AppPermissionsListView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_appPermissionsList',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.appPermissionsList.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'appList',
+ 'label'
+ ],
+
+ globalConfigurationValue: false,
+
+ globalConfigurationMessage: function() {
+ if (this.globalConfigurationValue === true) {
+ return "All devices Allowed";
+ } else if (this.globalConfigurationValue === false) {
+ return "All devices Not Allowed";
+ } else {
+ return "All devices manual Configuration";
+ }
+ }.property('this.globalConfigurationValue'),
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ classNames: 'label',
+
+ content: 'Choose devices to be allowed for SDL functionality:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } ),
+
+ /**
+ * Function to add application to application list
+ */
+ showAppList: function() {
+
+ this.get('appList.list').removeAllChildren();
+
+ this.appList.list.refresh();
+
+ var i,
+ appIndex,
+ apps = SDL.SDLModel.registeredApps
+ len = apps.length;
+
+ for (i = 0; i < len; i++) {
+
+ appIndex = SDL.SDLModel.registeredApps.indexOf(apps[i]);
+
+ this.get('appList.list.childViews').pushObject(SDL.Button.create( {
+ action: 'GetListOfPermissions',
+ target: 'SDL.SettingsController',
+ text: apps[i].appName,
+ appID: apps[i].appID,
+ classNames: 'list-item button',
+ iconBinding: 'SDL.SDLModel.registeredApps.' + appIndex
+ + '.appIcon'
+ }));
+ }
+
+ this.appList.list.refresh();
+
+ },
+
+ appList: SDL.List.extend( {
+
+ elementId: 'polocies_app_permissions_list',
+
+ itemsOnPage: 5,
+
+ /** Items */
+ items: new Array()
+ })
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policies/appPermissionsView.js b/src/components/HMI/app/view/settings/policies/appPermissionsView.js
new file mode 100644
index 0000000000..165ae90008
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/appPermissionsView.js
@@ -0,0 +1,136 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.AppPermissionsView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_appPermissions',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.appPermissions.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'appList',
+ 'label'
+ ],
+
+ currentAppId: null,
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ classNames: 'label',
+
+ content: 'Choose devices to be allowed for SDL functionality:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: function(element){
+
+ SDL.SettingsController.onState(element);
+
+ var permissions = [];
+
+ for (var i = 0; i < SDL.AppPermissionsView.appList.list._childViews.length; i++) {
+ permissions.push({
+ "name": SDL.AppPermissionsView.appList.list._childViews[i].name,
+ "id": SDL.AppPermissionsView.appList.list._childViews[i].id,
+ "allowed": SDL.AppPermissionsView.appList.list._childViews[i].allowed
+ });
+ }
+
+ FFW.BasicCommunication.OnAppPermissionConsent(permissions, "GUI", SDL.AppPermissionsView.currentAppId);
+
+ SDL.AppPermissionsView.currentAppId = null;
+ },
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } ),
+
+ /**
+ * Function to add application to application list
+ */
+ update: function(message, appID) {
+
+ SDL.AppPermissionsView.currentAppId = appID;
+
+ this.appList.items = [];
+
+ for (var i = 0; i < message.length; i++) {
+
+ var text = " - Undefined";
+
+ if (message[i].allowed === true) {
+ text = " - Allowed";
+ } else if (message[i].allowed === false) {
+ text = " - Not allowed";
+ }
+
+ this.appList.items.push({
+ type: SDL.Button,
+ params: {
+ action: 'changeAppPermission',
+ target: 'SDL.SettingsController',
+ text: message[i].name + text,
+ name: message[i].name,
+ allowed: message[i].allowed,
+ id: message[i].id,
+ appID: appID
+ }
+ });
+ }
+
+ this.appList.list.refresh();
+
+ },
+
+ appList: SDL.List.extend( {
+
+ elementId: 'polocies_app_permissions_list',
+
+ itemsOnPage: 5,
+
+ /** Items */
+ items: new Array()
+ })
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policies/deviceConfigView.js b/src/components/HMI/app/view/settings/policies/deviceConfigView.js
new file mode 100644
index 0000000000..37cb33d338
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/deviceConfigView.js
@@ -0,0 +1,135 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.DeviceConfigView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_deviceConfig',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.deviceConfig.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'listOfDevices',
+ 'label'
+ ],
+
+ globalConfigurationValue: false,
+
+ globalConfigurationMessage: function() {
+ if (this.globalConfigurationValue === true) {
+ return "All devices Allowed";
+ } else if (this.globalConfigurationValue === false) {
+ return "All devices Not Allowed";
+ } else {
+ return "All devices manual Configuration";
+ }
+ }.property('this.globalConfigurationValue'),
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ elementId: 'label',
+
+ classNames: 'label',
+
+ content: 'Choose devices to be allowed for SDL functionality:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } ),
+
+ /**
+ * Function to add application to application list
+ */
+ showDeviceList: function() {
+
+ this.listOfDevices.items = [];
+
+ this.listOfDevices.items.push({
+ type: SDL.Button,
+ params: {
+ action: 'allDeviceAccess',
+ target: 'SDL.SettingsController',
+ textBinding: 'SDL.DeviceConfigView.globalConfigurationMessage',
+ classNameBinding: 'SDL.DeviceConfigView.globalConfigurationValue:disabled'
+ }
+ });
+
+ var dev = SDL.SDLModel.connectedDevices;
+
+ for (var key in dev) {
+
+ if (dev.hasOwnProperty(key)) {
+
+ this.listOfDevices.items.push({
+ type: SDL.Button,
+ params: {
+ action: 'changeDeviceAccess',
+ target: 'SDL.SettingsController',
+ text: dev[key].allowed ? dev[key].name + " - Allowed" : dev[key].name + " - Not allowed",
+ name: dev[key].name,
+ id: dev[key].id
+ }
+ });
+ }
+ }
+
+ this.listOfDevices.list.refresh();
+
+ },
+
+ listOfDevices: SDL.List.extend( {
+
+ elementId: 'polocies_device_list',
+
+ itemsOnPage: 5,
+
+ /** Items */
+ items: new Array()
+ })
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policies/deviceStateChangeView.js b/src/components/HMI/app/view/settings/policies/deviceStateChangeView.js
new file mode 100644
index 0000000000..44e61066bf
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/deviceStateChangeView.js
@@ -0,0 +1,113 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.DeviceStateChangeView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_deviceStateChange',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.deviceStateChange.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'listOfDevices',
+ 'label'
+ ],
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ elementId: 'label',
+
+ classNames: 'label',
+
+ content: 'Choose devices to be Unpaired:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } ),
+
+ /**
+ * Function to add application to application list
+ */
+ showDeviceList: function() {
+
+ this.listOfDevices.items = [];
+
+ var dev = SDL.SDLModel.connectedDevices;
+
+ for (var key in dev) {
+
+ if (dev.hasOwnProperty(key)) {
+
+ this.listOfDevices.items.push({
+ type: SDL.Button,
+ params: {
+ action: 'OnDeviceStateChanged',
+ target: 'FFW.BasicCommunication',
+ text: dev[key].name,
+ deviceName: dev[key].name,
+ deviceID: dev[key].id
+ }
+ });
+ }
+ }
+
+ this.listOfDevices.list.refresh();
+
+ },
+
+ listOfDevices: SDL.List.extend( {
+
+ elementId: 'polocies_device_list',
+
+ itemsOnPage: 5,
+
+ /** Items */
+ items: new Array()
+ })
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policies/statisticsInfoView.js b/src/components/HMI/app/view/settings/policies/statisticsInfoView.js
new file mode 100644
index 0000000000..52ae2847b9
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/statisticsInfoView.js
@@ -0,0 +1,88 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.StatisticsInfoView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_status_info',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.statisticsInfo.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'label',
+ 'listSelect'
+ ],
+
+ /**
+ * HMI element Select with parameters of transmission state from VehicleInfo
+ * Model
+ */
+ listSelect: Em.Select.extend( {
+
+ elementId: 'listSelect',
+
+ classNames: 'listSelect',
+
+ contentBinding: 'SDL.SDLModel.settingsInfoList',
+
+ valueBinding: 'SDL.SDLModel.settingsInfoListState'
+ } ),
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ elementId: 'label',
+
+ classNames: 'label',
+
+ content: 'Choose devices to be allowed for SDL functionality:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } )
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policies/systemErrorView.js b/src/components/HMI/app/view/settings/policies/systemErrorView.js
new file mode 100644
index 0000000000..2ccae596cf
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policies/systemErrorView.js
@@ -0,0 +1,88 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.DeviceConfigView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/policies/deviceConfigView.js
+ * @version 1.0
+ */
+
+SDL.SystemErrorView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings_system_error',
+
+ classNames: 'in_settings_separate_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.systemError.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'backButton',
+ 'label',
+ 'listSelect'
+ ],
+
+ /**
+ * HMI element Select with parameters of transmission state from VehicleInfo
+ * Model
+ */
+ listSelect: Em.Select.extend( {
+
+ elementId: 'systemErrorListSelect',
+
+ classNames: 'listSelect',
+
+ contentBinding: 'SDL.SDLModel.systemErrorList',
+
+ valueBinding: 'SDL.SDLModel.systemErrorListState'
+ } ),
+
+ /**
+ * Label in title
+ */
+ label: SDL.Label.extend( {
+
+ elementId: 'label',
+
+ classNames: 'label',
+
+ content: 'Send OnSystemError notification:'
+ }),
+
+ backButton: SDL.Button.extend( {
+ classNames:
+ [
+ 'backButton'
+ ],
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ goToState: 'policies',
+ icon: 'images/media/ico_back.png',
+ onDown: false
+ } )
+}); \ No newline at end of file
diff --git a/src/components/HMI/app/view/settings/policiesView.js b/src/components/HMI/app/view/settings/policiesView.js
new file mode 100644
index 0000000000..cb1b59be30
--- /dev/null
+++ b/src/components/HMI/app/view/settings/policiesView.js
@@ -0,0 +1,152 @@
+/*
+ * Copyright (c) 2013, Ford Motor Company All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met: ·
+ * Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer. · Redistributions in binary
+ * form must reproduce the above copyright notice, this list of conditions and
+ * the following disclaimer in the documentation and/or other materials provided
+ * with the distribution. · Neither the name of the Ford Motor Company nor the
+ * names of its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+/**
+ * @name SDL.PoliciesSettingsView
+ * @desc Info Apps visual representation
+ * @category View
+ * @filesource app/view/settings/AppsView.js
+ * @version 1.0
+ */
+
+SDL.PoliciesView = Em.ContainerView.create( {
+
+ elementId: 'policies_settings',
+
+ classNames: 'in_settings_view',
+
+ classNameBindings: [
+ 'SDL.States.settings.policies.active:active_state:inactive_state'
+ ],
+
+ childViews: [
+ 'SettingsList'
+ ],
+
+ SettingsList: SDL.List.extend( {
+
+ elementId: 'policies_settings_list',
+
+ classNames: 'policies_settings_list',
+
+ itemsOnPage: 5,
+
+ /** Items */
+ items: [
+ {
+ type: SDL.Button,
+ params: {
+ goToState: 'policies.deviceConfig',
+ text: 'Allow SDL Functionality',
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ templateName: 'arrow',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Update SDL',
+ action: 'updateSDL',
+ target: 'SDL.SettingsController',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Policy table update status',
+ action: 'getStatusUpdate',
+ target: 'SDL.SettingsController',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Send request GetURLS',
+ action: 'getURLS',
+ target: 'SDL.SettingsController',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Statistics Info settings',
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ templateName: 'arrow',
+ goToState: 'policies.statisticsInfo',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'App permissions',
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ templateName: 'arrow',
+ goToState: 'policies.appPermissionsList',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Get list of permissions',
+ click: function () {
+ FFW.BasicCommunication.GetListOfPermissions();
+ },
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'Device state change',
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ templateName: 'arrow',
+ goToState: 'policies.deviceStateChange',
+ onDown: false
+ }
+ },
+ {
+ type: SDL.Button,
+ params: {
+ text: 'System Error',
+ action: 'onState',
+ target: 'SDL.SettingsController',
+ templateName: 'arrow',
+ goToState: 'policies.systemError',
+ onDown: false
+ }
+ }
+ ]
+ })
+}); \ No newline at end of file