diff options
Diffstat (limited to 'src/components/include/transport_manager/transport_manager.h')
-rw-r--r-- | src/components/include/transport_manager/transport_manager.h | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/src/components/include/transport_manager/transport_manager.h b/src/components/include/transport_manager/transport_manager.h index eabb4f7028..ce92bfd9cb 100644 --- a/src/components/include/transport_manager/transport_manager.h +++ b/src/components/include/transport_manager/transport_manager.h @@ -33,10 +33,10 @@ #ifndef SRC_COMPONENTS_INCLUDE_TRANSPORT_MANAGER_TRANSPORT_MANAGER_H_ #define SRC_COMPONENTS_INCLUDE_TRANSPORT_MANAGER_TRANSPORT_MANAGER_H_ +#include "protocol/common.h" #include "transport_manager/common.h" -#include "transport_manager/transport_manager_listener.h" #include "transport_manager/transport_adapter/transport_adapter_event.h" -#include "protocol/common.h" +#include "transport_manager/transport_manager_listener.h" namespace resumption { class LastState; @@ -69,10 +69,25 @@ class TransportManager { virtual int Reinit() = 0; /** - * @brief Start scanning for new devices. - * - * @return Code error. - **/ + * @brief Deinitializes all transport adapters and device instances + */ + virtual void Deinit() = 0; + + /** + * @brief Stops transport events processing handler threads + */ + virtual void StopEventsProcessing() = 0; + + /** + * @brief Resumes transport events processing handler threads + */ + virtual void StartEventsProcessing() = 0; + + /** + * @brief Start scanning for new devices. + * + * @return Code error. + **/ virtual int SearchDevices() = 0; virtual void AddCloudDevice( @@ -193,13 +208,13 @@ class TransportManager { virtual int RemoveDevice(const DeviceHandle device_handle) = 0; /** - * @brief Turns on or off visibility of SDL to mobile devices - * when visibility is ON (on_off = true) mobile devices are able to connect - * otherwise ((on_off = false)) SDL is not visible from outside - * - * @return Code error. + * @brief Performs specified action on connected clients + * @param required_action is the action which should be performed for the + * connected clients + * @return error code */ - virtual int Visibility(const bool& on_off) const = 0; + virtual int PerformActionOnClients( + const TransportAction required_action) const = 0; }; } // namespace transport_manager #endif // SRC_COMPONENTS_INCLUDE_TRANSPORT_MANAGER_TRANSPORT_MANAGER_H_ |