diff options
Diffstat (limited to 'src/components/config_profile/include/config_profile/profile.h')
-rw-r--r-- | src/components/config_profile/include/config_profile/profile.h | 69 |
1 files changed, 64 insertions, 5 deletions
diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h index 5be14d400..7dee0540e 100644 --- a/src/components/config_profile/include/config_profile/profile.h +++ b/src/components/config_profile/include/config_profile/profile.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, Ford Motor Company + * Copyright (c) 2015, Ford Motor Company * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -78,6 +78,27 @@ class Profile : public utils::Singleton<Profile> { const std::string& app_resourse_folder() const; /** + * @brief Returns true, if SDL 4.0 is enabled + */ + bool enable_protocol_4() const; + + /** + * @brief Returns application icons folder path + */ + const std::string& app_icons_folder() const; + + /** + * @brief Returns application icons folder maximum size + */ + const uint32_t& app_icons_folder_max_size() const; + + /** + * @brief Returns application icons amount to remove from icon folder, + * if maximum size exceeded + */ + const uint32_t& app_icons_amount_to_remove() const; + + /** * @brief Returns the path to the config file */ const std::string& config_file_name() const; @@ -108,6 +129,11 @@ class Profile : public utils::Singleton<Profile> { const uint16_t& audio_streaming_port() const; /** + * @brief Returns streaming timeout + */ + uint32_t stop_streaming_timeout() const; + + /** * @brief Returns port for time reports */ const uint16_t& time_testing_port() const; @@ -147,6 +173,7 @@ class Profile : public utils::Singleton<Profile> { * @brief Default timeout for waiting for resuming */ const uint32_t& app_resuming_timeout() const; + const uint32_t& app_resumption_save_persistent_data_timeout() const; /** * @brief Returns desirable thread stack size @@ -439,6 +466,31 @@ class Profile : public utils::Singleton<Profile> { */ int iap_hub_connection_wait_timeout() const; + /* + * ProtocolHandler section + */ + size_t maximum_payload_size() const; + + size_t message_frequency_count() const; + + size_t message_frequency_time() const; + + uint16_t attempts_to_open_policy_db() const; + + uint16_t open_attempt_timeout_ms() const; + + uint32_t resumption_delay_before_ign() const; + + uint32_t resumption_delay_after_ign() const; + + uint32_t hash_string_size() const; + + /* + * @brief Updates all related values from ini file + */ + void UpdateValues(); + + private: /** * Default constructor @@ -448,10 +500,6 @@ class Profile : public utils::Singleton<Profile> { */ Profile(); - /* - * @brief Updates all related values from ini file - */ - void UpdateValues(); /** * @brief Reads a boolean value from the profile @@ -537,11 +585,16 @@ class Profile : public utils::Singleton<Profile> { std::string app_config_folder_; std::string app_storage_folder_; std::string app_resourse_folder_; + bool enable_protocol_4_; + std::string app_icons_folder_; + uint32_t app_icons_folder_max_size_; + uint32_t app_icons_amount_to_remove_; std::string config_file_name_; std::string server_address_; uint16_t server_port_; uint16_t video_streaming_port_; uint16_t audio_streaming_port_; + uint32_t stop_streaming_timeout_; uint16_t time_testing_port_; std::string hmi_capabilities_file_name_; std::vector<std::string> help_prompt_; @@ -553,6 +606,7 @@ class Profile : public utils::Singleton<Profile> { uint32_t max_cmd_id_; uint32_t default_timeout_; uint32_t app_resuming_timeout_; + uint32_t app_resumption_save_persistent_data_timeout_; std::string vr_help_title_; uint32_t app_dir_quota_; std::string video_consumer_type_; @@ -614,6 +668,11 @@ class Profile : public utils::Singleton<Profile> { int iap2_hub_connect_attempts_; int iap_hub_connection_wait_timeout_; uint16_t tts_global_properties_timeout_; + uint16_t attempts_to_open_policy_db_; + uint16_t open_attempt_timeout_ms_; + uint32_t resumption_delay_before_ign_; + uint32_t resumption_delay_after_ign_; + uint32_t hash_string_size_; FRIEND_BASE_SINGLETON_CLASS(Profile); DISALLOW_COPY_AND_ASSIGN(Profile); |