summaryrefslogtreecommitdiff
path: root/src/components/config_profile/include/config_profile/profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/config_profile/include/config_profile/profile.h')
-rw-r--r--src/components/config_profile/include/config_profile/profile.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h
index 14983a46b2..42b0d10ceb 100644
--- a/src/components/config_profile/include/config_profile/profile.h
+++ b/src/components/config_profile/include/config_profile/profile.h
@@ -137,7 +137,7 @@ class Profile : public protocol_handler::ProtocolHandlerSettings,
/**
* @brief Sets the path to the config file
*/
- void config_file_name(const std::string& fileName);
+ void set_config_file_name(const std::string& file_name);
/**
* @brief Returns server address
@@ -620,11 +620,18 @@ class Profile : public protocol_handler::ProtocolHandlerSettings,
*/
const bool enable_app_launch_ios() const OVERRIDE;
- /*
+ /**
* @brief Updates all related values from ini file
*/
void UpdateValues();
+ /**
+ * @brief Gets reading result of all related values from ini file
+ * @returns TRUE if no error appeared during updating
+ * otherwise FALSE
+ */
+ const bool ErrorOccured() const;
+
const uint32_t& list_files_response_size() const OVERRIDE;
const std::string& recording_file_source() const OVERRIDE;
@@ -637,8 +644,21 @@ class Profile : public protocol_handler::ProtocolHandlerSettings,
const std::pair<uint32_t, int32_t>& start_stream_retry_amount()
const OVERRIDE;
+ /**
+ * @brief Returns error description
+ * @return Actual error description if error appears otherwise empty line
+ */
+ const std::string ErrorDescription() const;
+
private:
/**
+ * @brief Checks that filename consists of portable symbols
+ * @param file_name - file name to check
+ * @return FALSE if file name has unportable symbols otherwise TRUE
+ */
+ bool IsFileNamePortable(const std::string& file_name) const;
+
+ /**
* @brief Reads a string value from the profile and interpret it
* as \c true on "true" value or as \c false on any other value
*
@@ -855,6 +875,8 @@ class Profile : public protocol_handler::ProtocolHandlerSettings,
uint16_t max_number_of_ios_device_;
uint16_t wait_time_between_apps_;
bool enable_app_launch_ios_;
+ bool error_occured_;
+ std::string error_description_;
DISALLOW_COPY_AND_ASSIGN(Profile);
};