summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/commands/hmi
diff options
context:
space:
mode:
authorDmitrii Trunov (GitHub) <dtrunov@luxoft.com>2016-07-06 11:34:18 +0300
committerAnton Hrytsevich (GitHub) <AGritsevich@users.noreply.github.com>2016-07-06 11:34:18 +0300
commit1e691a7fd3b81fedeb95ba2a8e4237cb4e40a6d9 (patch)
treefa25ab29440380a5aa7b6c8b39248c5f5dc7ad63 /src/components/application_manager/include/application_manager/commands/hmi
parentf5a824c986e527594a6e98ff7fd2c667d5d4f3ec (diff)
downloadsdl_core-1e691a7fd3b81fedeb95ba2a8e4237cb4e40a6d9.tar.gz
Fix SDL crashes at request for PTU when transport is disconnected (#672)
* Fix SDL crashes at request for PTU when transport is disconnected Fixed problem with sending incorrect message from get url command. Message contain incorrect message type which led to endless loop and after that to core crash. Change structure message for case when applications aren't connected. Structure of message was changed according with https://adc.luxoft.com/jira/browse/APPLINK-18111 Closes bug [APPLINK-24773](https://adc.luxoft.com/jira/browse/APPLINK-24773) * Fix review comments Fixed name of variable, fixed code style, added namespace Related issue [APPLINK-24773](https://adc.luxoft.com/jira/browse/APPLINK-24773)
Diffstat (limited to 'src/components/application_manager/include/application_manager/commands/hmi')
-rw-r--r--src/components/application_manager/include/application_manager/commands/hmi/get_urls.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/application_manager/include/application_manager/commands/hmi/get_urls.h b/src/components/application_manager/include/application_manager/commands/hmi/get_urls.h
index 4060fa2d71..5f75f42d5c 100644
--- a/src/components/application_manager/include/application_manager/commands/hmi/get_urls.h
+++ b/src/components/application_manager/include/application_manager/commands/hmi/get_urls.h
@@ -38,7 +38,7 @@
namespace application_manager {
namespace commands {
-
+namespace smart_objects = NsSmartDeviceLink::NsSmartObjects;
/**
* @brief GetUrls command class
**/
@@ -83,6 +83,14 @@ class GetUrls : public RequestFromHMI {
*/
void SendResponseToHMI(hmi_apis::Common_Result::eType result);
+ /**
+ * @brief fills structure for sending to HMI with default urls
+ * @param urls structure for filling
+ * @param endpoints Endpoints section of policy table
+ */
+ void FillSODefaultUrls(smart_objects::SmartObject& urls,
+ const policy::EndpointUrls& endpoints);
+
DISALLOW_COPY_AND_ASSIGN(GetUrls);
};