diff options
Diffstat (limited to 'src/components/application_manager/include/application_manager/resumption/resume_ctrl.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/resumption/resume_ctrl.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/src/components/application_manager/include/application_manager/resumption/resume_ctrl.h b/src/components/application_manager/include/application_manager/resumption/resume_ctrl.h index 0b744eec7f..e572eaec39 100644 --- a/src/components/application_manager/include/application_manager/resumption/resume_ctrl.h +++ b/src/components/application_manager/include/application_manager/resumption/resume_ctrl.h @@ -47,8 +47,6 @@ namespace app_mngr = application_manager; namespace resumption { -class LastState; - /** * @brief Contains logic for storage/restore data of applications. */ @@ -81,6 +79,13 @@ class ResumeCtrl { application_manager::ApplicationSharedPtr application) = 0; /** + * @brief Restore widgets HMI level on the resumption response from HMI + * @param response_message smart_object with HMI message + */ + virtual void RestoreWidgetsHMIState( + const smart_objects::SmartObject& response_message) = 0; + + /** * @brief Set application HMI Level as stored in policy * @param application is application witch HMI Level is need to setup * @return true if success, otherwise return false @@ -103,6 +108,16 @@ class ResumeCtrl { bool check_policy = true) = 0; /** + * @brief RestoreAppWidgets add widgets for the application + * @param application application which will be resumed + * @param saved_app application specific section from backup file + * @return the number of widget windows to be resumed + */ + virtual size_t RestoreAppWidgets( + application_manager::ApplicationSharedPtr application, + const smart_objects::SmartObject& saved_app) = 0; + + /** * @brief Remove application from list of saved applications * @param application is application which need to be removed * @return return true, if success, otherwise return false @@ -233,7 +248,7 @@ class ResumeCtrl { * @param application - application to restore hmi level * and audio streaming state */ - virtual void StartAppHmiStateResumption( + virtual bool StartAppHmiStateResumption( application_manager::ApplicationSharedPtr application) = 0; /** @@ -255,12 +270,15 @@ class ResumeCtrl { */ virtual void RemoveFromResumption(uint32_t app_id) = 0; + DEPRECATED + virtual bool Init(resumption::LastState& last_state) = 0; + /** * @brief Initialization data for Resume controller * @return true if initialization is success otherwise * returns false */ - virtual bool Init(LastState& last_state) = 0; + virtual bool Init(resumption::LastStateWrapperPtr last_state_wrapper) = 0; /** * @brief Notify resume controller about new application @@ -282,6 +300,9 @@ class ResumeCtrl { virtual int32_t GetSavedAppHmiLevel(const std::string& app_id, const std::string& device_id) const = 0; + virtual void StartWaitingForDisplayCapabilitiesUpdate( + app_mngr::ApplicationSharedPtr application) = 0; + virtual time_t LaunchTime() const = 0; #ifdef BUILD_TESTS |