summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/application_manager_impl.h
diff options
context:
space:
mode:
authorYana Chernysheva <ychernysheva@luxoft.com>2020-09-10 11:41:13 +0300
committerYana Chernysheva <ychernysheva@luxoft.com>2020-09-10 11:41:13 +0300
commit98da72fbc909a6bc2ff8e163a328bf11d36379be (patch)
treed397c2885c850726de89b8a14301b650354015b4 /src/components/application_manager/include/application_manager/application_manager_impl.h
parent6f1ee2ea1322e8106fb3d88534dbce657fd60b0a (diff)
parenta36ea82740e648debf1b0367c24fed85d6ef2d80 (diff)
downloadsdl_core-98da72fbc909a6bc2ff8e163a328bf11d36379be.tar.gz
Merge branch 'develop' into fix/move_duplicate_conversion_functions_to_message_helper
Diffstat (limited to 'src/components/application_manager/include/application_manager/application_manager_impl.h')
-rw-r--r--src/components/application_manager/include/application_manager/application_manager_impl.h64
1 files changed, 56 insertions, 8 deletions
diff --git a/src/components/application_manager/include/application_manager/application_manager_impl.h b/src/components/application_manager/include/application_manager/application_manager_impl.h
index c24460943b..31040aca72 100644
--- a/src/components/application_manager/include/application_manager/application_manager_impl.h
+++ b/src/components/application_manager/include/application_manager/application_manager_impl.h
@@ -132,7 +132,7 @@ struct AppIconInfo {
: endpoint(ws_endpoint), pending_request(pending) {}
};
-CREATE_LOGGERPTR_GLOBAL(logger_, "ApplicationManager")
+SDL_CREATE_LOG_VARIABLE("ApplicationManager")
typedef std::shared_ptr<timer::Timer> TimerSPtr;
class ApplicationManagerImpl
@@ -279,11 +279,11 @@ class ApplicationManagerImpl
/**
* @brief Checks if Application is subscribed for way points
- * @param Application pointer
+ * @param Application reference
* @return true if Application is subscribed for way points
* otherwise false
*/
- bool IsAppSubscribedForWayPoints(ApplicationSharedPtr app) const OVERRIDE;
+ bool IsAppSubscribedForWayPoints(Application& app) const OVERRIDE;
void SaveWayPointsMessage(
smart_objects::SmartObjectSPtr way_points_message) OVERRIDE;
@@ -983,6 +983,13 @@ class ApplicationManagerImpl
*/
void RemoveAppFromTTSGlobalPropertiesList(const uint32_t app_id) OVERRIDE;
+ ResetGlobalPropertiesResult ResetGlobalProperties(
+ const smart_objects::SmartObject& global_properties_ids,
+ const uint32_t app_id) OVERRIDE;
+
+ ResetGlobalPropertiesResult ResetAllApplicationGlobalProperties(
+ const uint32_t app_id) OVERRIDE;
+
// TODO(AOleynik): Temporary added, to fix build. Should be reworked.
connection_handler::ConnectionHandler& connection_handler() const OVERRIDE;
protocol_handler::ProtocolHandler& protocol_handler() const OVERRIDE;
@@ -1241,14 +1248,12 @@ class ApplicationManagerImpl
void PrepareApplicationListSO(ApplicationList app_list,
smart_objects::SmartObject& applications,
ApplicationManager& app_mngr) {
- CREATE_LOGGERPTR_LOCAL(logger_, "ApplicationManager");
-
smart_objects::SmartArray* app_array = applications.asArray();
uint32_t app_count = NULL == app_array ? 0 : app_array->size();
typename ApplicationList::const_iterator it;
for (it = app_list.begin(); it != app_list.end(); ++it) {
if (it->use_count() == 0) {
- LOG4CXX_ERROR(logger_, "Application not found ");
+ SDL_LOG_ERROR("Application not found");
continue;
}
@@ -1262,12 +1267,12 @@ class ApplicationManagerImpl
app_mngr)) {
applications[app_count++] = hmi_application;
} else {
- LOG4CXX_DEBUG(logger_, "Can't CreateHMIApplicationStruct ");
+ SDL_LOG_DEBUG("Can't CreateHMIApplicationStruct");
}
}
if (0 == app_count) {
- LOG4CXX_WARN(logger_, "Empty applications list");
+ SDL_LOG_WARN("Empty applications list");
}
}
@@ -1328,6 +1333,39 @@ class ApplicationManagerImpl
*/
void SendMobileMessage(smart_objects::SmartObjectSPtr message);
+ /**
+ * @brief Sets default value of the HELPPROMT global property
+ * to the first vrCommand of the Command Menu registered in application
+ *
+ * @param app Registered application
+ * @param is_timeout_promp Flag indicating that timeout prompt
+ * should be reset
+ *
+ * @return TRUE on success, otherwise FALSE
+ */
+ bool ResetHelpPromt(ApplicationSharedPtr app) const;
+
+ /**
+ * @brief Sets default value of the TIMEOUTPROMT global property
+ * to the first vrCommand of the Command Menu registered in application
+ *
+ * @param app Registered application
+ *
+ * @return TRUE on success, otherwise FALSE
+ */
+ bool ResetTimeoutPromt(ApplicationSharedPtr app) const;
+
+ /**
+ * @brief Sets default value of the VRHELPTITLE global property
+ * to the application name and value of the VRHELPITEMS global property
+ * to value equal to registered command -1(default command “Help / Cancel”.)
+ *
+ * @param app Registered application
+ *
+ * @return TRUE on success, otherwise FALSE
+ */
+ bool ResetVrHelpTitleItems(ApplicationSharedPtr app) const;
+
private:
/*
* NaviServiceStatusMap shows which navi service (audio/video) is opened
@@ -1352,6 +1390,16 @@ class ApplicationManagerImpl
const std::string& policy_app_id) const;
/**
+ * @brief CreateAllAppGlobalPropsIDList creates an array of all application
+ * global properties IDs. Used as utility to call
+ * ApplicationManger::ResetGlobalProperties
+ * with all global properties.
+ * @return array smart object with global properties identifiers.
+ */
+ const smart_objects::SmartObjectSPtr CreateAllAppGlobalPropsIDList(
+ const uint32_t app_id) const;
+
+ /**
* @brief Removes suspended and stopped timers from timer pool
*/
void ClearTimerPool();