summaryrefslogtreecommitdiff
path: root/src/components/HMI/app/controller/PhoneController.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/app/controller/PhoneController.js')
-rw-r--r--src/components/HMI/app/controller/PhoneController.js34
1 files changed, 30 insertions, 4 deletions
diff --git a/src/components/HMI/app/controller/PhoneController.js b/src/components/HMI/app/controller/PhoneController.js
index dd722df80d..c29cae064d 100644
--- a/src/components/HMI/app/controller/PhoneController.js
+++ b/src/components/HMI/app/controller/PhoneController.js
@@ -33,24 +33,50 @@
SDL.PhoneController = Em.Object.create( {
- /** Model binding */
+ /**
+ * Model binding
+ */
modelBinding: "SDL.PhoneModel",
- /** Dialpad delete key press handeler */
+ /**
+ * Dialpad delete key press handeler
+ */
onDelete: function() {
this.model.deleteDialpadNumber();
},
- /** Dial call handeler */
+ /**
+ * Dial call handeler
+ */
onEndCall: function() {
+ FFW.BasicCommunication.OnPhoneCall(false);
this.model.endCall();
},
- /** Dial call handeler */
+ /**
+ * Dial call handeler
+ */
onDialCall: function() {
+ FFW.BasicCommunication.OnPhoneCall(true);
this.model.dialCall();
+ },
+
+ /**
+ * Dialpad key press handler
+ */
+ keyPress: function(element) {
+ this.model.setDialpadNumber(element.text)
+ },
+
+ /**
+ *
+ */
+ incomingCall: function(request) {
+
+ this.model.setDialpadNumber(request.params.number);
+ this.onDialCall();
}
}); \ No newline at end of file