diff options
author | Shobhit Adlakha <adlakhashobhit@gmail.com> | 2019-09-24 14:27:26 -0400 |
---|---|---|
committer | Shobhit Adlakha <adlakhashobhit@gmail.com> | 2019-09-24 14:27:26 -0400 |
commit | d1c5f3032b170f0c5f536427217026a981b97307 (patch) | |
tree | fd6b7138000b37d30213ea1059f407355b4c4017 /src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h | |
parent | c282368612d4a6f3b8fa0ef1538c0e2f64c65e12 (diff) | |
download | sdl_core-d1c5f3032b170f0c5f536427217026a981b97307.tar.gz |
Restructure how moduleIds are filtered in the forwarded HMI request and readded for the mobile_responsefix/givd_different_allowmultipleaccess_values
Diffstat (limited to 'src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h')
-rw-r--r-- | src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h index fd8c191387..c41169d027 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/include/rc_rpc_plugin/commands/mobile/get_interior_vehicle_data_consent_request.h @@ -91,10 +91,30 @@ class GetInteriorVehicleDataConsentRequest * output smart object, otherwise returns false */ bool GetCalculatedVehicleDataConsent( - const smart_objects::SmartObject& location_consents, smart_objects::SmartObject& out_response) const; - void GetLocationConsents(smart_objects::SmartObject& location_consents); + /** + * @brief Checks whether the user_location is covered by the module's + * serviceArea + * @param module_uid module key(module_type + module_id) + * @return true if the user_location is covered by the module's serviceArea or + * the user is the driver (or if seatLocationCapabilities don't exists) + * otherwise false + */ + bool IsUserLocationValid(const ModuleUid& module_uid) const; + + /** + * @brief Checks whether user should have access to module using the specific + * accessMode's rules + * @param module_uid module key(moudle_type + module_id) + * @param access_mode current HMI accessMode + * @return consent enum value + */ + rc_rpc_types::ModuleConsent GetModuleConsentByAccessMode( + const ModuleUid& module_uid, + const hmi_apis::Common_RCAccessMode::eType access_mode) const; + + smart_objects::SmartObject hmi_request_consents_; }; } // namespace commands |