diff options
author | mked-luxoft <mked@luxoft.com> | 2019-08-15 18:03:22 +0300 |
---|---|---|
committer | Andriy Byzhynar (GitHub) <AByzhynar@luxoft.com> | 2019-08-20 21:17:13 +0300 |
commit | 91346a591982f8764f9136aa46e892ed00f5a15f (patch) | |
tree | 41291b49554521d9c53c9c674b7276137bf07297 /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin | |
parent | 1ff190e79fb2a5eaa530ffa824a1a5a59a432ab9 (diff) | |
download | sdl_core-91346a591982f8764f9136aa46e892ed00f5a15f.tar.gz |
Add validation to CreateWindow request
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin')
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin/commands/mobile/create_window_request.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin/commands/mobile/create_window_request.h b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin/commands/mobile/create_window_request.h index 7a851b4d84..cfbfc460b7 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin/commands/mobile/create_window_request.h +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/include/sdl_rpc_plugin/commands/mobile/create_window_request.h @@ -79,6 +79,28 @@ class CreateWindowRequest : public app_mngr::commands::CommandRequestImpl { const std::string& window_name) const; /** + * @brief ValidateWindowCreation checks whether window can be created + * @return true if window can be created, otherwise returns false + */ + bool ValidateWindowCreation(app_mngr::ApplicationSharedPtr app, + const app_mngr::WindowID window_id); + + /** + * @brief IsWindowForAssociatedServiceCreated check whether a window with + * current associated type has already been created + * @return true if window has been created, otherwise returns false + */ + bool IsWindowForAssociatedServiceCreated( + app_mngr::ApplicationSharedPtr app) const; + + /** + * @brief DoesExceedMaxAllowedWindows check wheter max allowed amount of + * windows is exceeded + * @return true if amount us exceeded, otherwise returns false + */ + bool DoesExceedMaxAllowedWindows(app_mngr::ApplicationSharedPtr app) const; + + /** * @brief ApplyWindowInitialState apply changes related to window HMI state * initialization * @param app pointer to application owns affected window |