diff options
Diffstat (limited to 'src/components/include/connection_handler/connection_handler_observer.h')
-rw-r--r-- | src/components/include/connection_handler/connection_handler_observer.h | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/src/components/include/connection_handler/connection_handler_observer.h b/src/components/include/connection_handler/connection_handler_observer.h index 1bd919f30e..154a2a8e34 100644 --- a/src/components/include/connection_handler/connection_handler_observer.h +++ b/src/components/include/connection_handler/connection_handler_observer.h @@ -86,19 +86,6 @@ class ConnectionHandlerObserver { /** * \brief Callback function used by connection_handler * when Mobile Application initiates start of new service. - * \param deviceHandle Device identifier within which session has to be - * started. - * \param sessionKey Key of started session. - * \param type Established service type - */ - virtual bool OnServiceStartedCallback( - const connection_handler::DeviceHandle& device_handle, - const int32_t& session_key, - const protocol_handler::ServiceType& type) = 0; - - /** - * \brief Callback function used by connection_handler - * when Mobile Application initiates start of new service. * Result must be notified through NotifyServiceStartedResult(). * \param deviceHandle Device identifier within which session has to be * started. @@ -140,6 +127,13 @@ class ConnectionHandlerObserver { */ virtual void OnDeviceSwitchingFinish(const std::string& device_uid) = 0; + /** + * @brief Check if application with specified app_id has NAVIGATION HMI type + * @param app_id id of application to check + * @return true if application is navi otherwise returns false + */ + virtual bool CheckAppIsNavi(const uint32_t app_id) const = 0; + #ifdef ENABLE_SECURITY /** * @brief Get unique handshake context by application id @@ -149,14 +143,24 @@ class ConnectionHandlerObserver { */ virtual security_manager::SSLContext::HandshakeContext GetHandshakeContext( uint32_t key) const = 0; +#endif // ENABLE_SECURITY /** - * @brief Check if application with specified app_id has NAVIGATION HMI type - * @param app_id id of application to check - * @return true if application is navi otherwise returns false + * \brief Called when secondary transport for a particular app is started. + * \param device_handle Device identifier on which the secondary transport is + * started. + * \param session_key session ID representing the app */ - virtual bool CheckAppIsNavi(const uint32_t app_id) const = 0; -#endif // ENABLE_SECURITY + virtual void OnSecondaryTransportStartedCallback( + const connection_handler::DeviceHandle device_handle, + const int32_t session_key) = 0; + + /** + * \brief Called when secondary transport for a particular app is terminated. + * \param session_key session ID representing the app + */ + virtual void OnSecondaryTransportEndedCallback(const int32_t session_key) = 0; + protected: /** * \brief Destructor |