diff options
author | AKalinich-Luxoft <AKalinich@luxoft.com> | 2017-12-22 15:23:38 +0200 |
---|---|---|
committer | AKalinich-Luxoft <AKalinich@luxoft.com> | 2018-01-29 09:05:11 +0200 |
commit | b82fb0657f0964053ad5994831cd28deb78bb97d (patch) | |
tree | 5f2bcb15b6e4119daf0b95591aac28eb439c24f9 /src/components/protocol_handler/include | |
parent | ff52d04eb98aeb40d13dd8fd596a82ed9158e99f (diff) | |
download | sdl_core-b82fb0657f0964053ad5994831cd28deb78bb97d.tar.gz |
ProtocolHandlerImpl was extended with PolicyHandlerObserver
ProtocolHandlerImpl was extended with PolicyHandlerObserver
logic and added function with related implementation.
Also was updated logic of NotifySessionStartedResult with
case when PTU should be triggered.
Diffstat (limited to 'src/components/protocol_handler/include')
-rw-r--r-- | src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h index 65f03900db..0efb81cdd7 100644 --- a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h +++ b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h @@ -56,6 +56,7 @@ #include "transport_manager/transport_manager.h" #include "transport_manager/transport_manager_listener_empty.h" #include "connection_handler/connection_handler.h" +#include "application_manager/policies/policy_handler_observer.h" #ifdef TELEMETRY_MONITOR #include "protocol_handler/telemetry_observer.h" @@ -143,6 +144,7 @@ typedef threads::MessageLoopThread< class ProtocolHandlerImpl : public ProtocolHandler, public TransportManagerListenerEmpty, + public policy::PolicyHandlerObserver, public impl::FromMobileQueue::Handler, public impl::ToMobileQueue::Handler #ifdef TELEMETRY_MONITOR @@ -471,6 +473,14 @@ class ProtocolHandlerImpl const transport_manager::ConnectionUID connection_id) OVERRIDE; /** + * @brief OnPTUFinished the callback which signals PTU has finished + * + * @param ptu_result the result from the PTU - true if successful, + * otherwise false. + */ + void OnPTUFinished(const bool ptu_result) OVERRIDE; + + /** * @brief Notifies subscribers about message * received from mobile device. * @param message Message with already parsed header. |