summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNataliia Sydorchuk <n.sydorchuk@samsung.com>2017-09-26 13:38:53 +0300
committerNataliia Sydorchuk <n.sydorchuk@samsung.com>2017-09-26 17:47:31 +0300
commit8100738e76c89e429336d346d36de6449a5e6768 (patch)
treef9fc2799a2759050ccdd4c3924690f53fa88ca1f
parent17d658586352b019fac12398f3d83c439c069030 (diff)
downloadvoice-control-8100738e76c89e429336d346d36de6449a5e6768.tar.gz
voice-control-8100738e76c89e429336d346d36de6449a5e6768.tar.bz2
voice-control-8100738e76c89e429336d346d36de6449a5e6768.zip
Implement TODO's in VoiceInputController.
Change-Id: I39e5b9d6c3ec9051e7ba8e94c1430e2898ac171d Signed-off-by: Nataliia Sydorchuk <n.sydorchuk@samsung.com>
-rw-r--r--voice-app/src/Voice/VoiceInputController.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/voice-app/src/Voice/VoiceInputController.cpp b/voice-app/src/Voice/VoiceInputController.cpp
index 54a386e..292a596 100644
--- a/voice-app/src/Voice/VoiceInputController.cpp
+++ b/voice-app/src/Voice/VoiceInputController.cpp
@@ -18,6 +18,8 @@
#include "Utils/Logger.h"
+#include <app.h>
+
using namespace Model;
using namespace Voice;
using namespace std::placeholders;
@@ -99,17 +101,13 @@ void VoiceInputController::unsubscribe()
void VoiceInputController::cancelActivity()
{
- //TODO: Cancel feedback.
+ m_FeedbackView->cancelFeedback();
m_VoiceControl.cancel();
}
void VoiceInputController::onServiceChanged(vc_service_state_e state)
{
- if (state == VC_SERVICE_STATE_RECORDING) {
- //TODO: Start imitate recording in Floating view.
- } else {
- //TODO: Stop imitate recording in Floating view.
- }
+ m_FloatingView->setVoiceAnimation(state == VC_SERVICE_STATE_RECORDING);
}
void VoiceInputController::onError(int error, const char *message)
@@ -121,7 +119,8 @@ void VoiceInputController::onError(int error, const char *message)
} else {
m_FeedbackView->showFeedback("Fatal error occurred. I'm closing, bye.", [this] {
onInterrupted();
- //TODO: Close the application.
+ m_FloatingView->close();
+ ui_app_exit();
});
}
}