summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/hmi_state.cc
diff options
context:
space:
mode:
authorIra Lytvynenko <ILytvynenko@luxoft.com>2018-03-16 11:18:26 +0200
committerElvis Kuliiev <ekuliiev@luxoft.com>2018-05-17 18:00:42 +0300
commit6b43ffcdc661eb97a973c3a028af10076dd5e927 (patch)
tree02719679109d9cf52c4ef4a4eafcd21bd618d870 /src/components/application_manager/src/hmi_state.cc
parent859fc6c0fcb4d659c55034c41476a55fd7e259ad (diff)
downloadsdl_core-6b43ffcdc661eb97a973c3a028af10076dd5e927.tar.gz
Initial implementation
Diffstat (limited to 'src/components/application_manager/src/hmi_state.cc')
-rw-r--r--src/components/application_manager/src/hmi_state.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/application_manager/src/hmi_state.cc b/src/components/application_manager/src/hmi_state.cc
index bc1ccd8f42..17cbdb429d 100644
--- a/src/components/application_manager/src/hmi_state.cc
+++ b/src/components/application_manager/src/hmi_state.cc
@@ -45,6 +45,7 @@ HmiState::HmiState(utils::SharedPtr<Application> app,
, app_mngr_(app_mngr)
, hmi_level_(mobile_apis::HMILevel::INVALID_ENUM)
, audio_streaming_state_(mobile_apis::AudioStreamingState::INVALID_ENUM)
+ , video_streaming_state_(mobile_apis::VideoStreamingState::INVALID_ENUM)
, system_context_(mobile_apis::SystemContext::INVALID_ENUM) {}
HmiState::HmiState(utils::SharedPtr<Application> app,
@@ -54,6 +55,7 @@ HmiState::HmiState(utils::SharedPtr<Application> app,
, app_mngr_(app_mngr)
, hmi_level_(mobile_apis::HMILevel::INVALID_ENUM)
, audio_streaming_state_(mobile_apis::AudioStreamingState::INVALID_ENUM)
+ , video_streaming_state_(mobile_apis::VideoStreamingState::INVALID_ENUM)
, system_context_(mobile_apis::SystemContext::INVALID_ENUM) {}
DEPRECATED HmiState::HmiState(uint32_t app_id,
@@ -159,6 +161,18 @@ NaviStreamingHmiState::audio_streaming_state() const {
return expected_state;
}
+mobile_apis::VideoStreamingState::eType
+NaviStreamingHmiState::video_streaming_state() const {
+ using namespace helpers;
+ using namespace mobile_apis;
+
+ VideoStreamingState::eType expected_state = parent()->video_streaming_state();
+ if (!is_navi_app() && VideoStreamingState::STREAMABLE == expected_state) {
+ expected_state = VideoStreamingState::NOT_STREAMABLE;
+ }
+ return expected_state;
+}
+
PhoneCallHmiState::PhoneCallHmiState(utils::SharedPtr<Application> app,
const ApplicationManager& app_mngr)
: HmiState(app, app_mngr, STATE_ID_PHONE_CALL) {}