Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::CfConnectionObserverFactory Class Reference

#include <connection_observer.h>

Inheritance diagram for cuttlefish::CfConnectionObserverFactory:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::CfConnectionObserverFactory:
Collaboration graph
[legend]

Public Member Functions

 CfConnectionObserverFactory (InputConnector &input_connector, KernelLogEventsHandler &kernel_log_events_handler, webrtc_streaming::SensorsHandler &sensors_handler, std::shared_ptr< webrtc_streaming::LightsObserver > lights_observer)
 
 ~CfConnectionObserverFactory () override=default
 
std::shared_ptr< webrtc_streaming::ConnectionObserverCreateObserver () override
 
void AddCustomActionServer (SharedFD custom_action_server_fd, const std::vector< std::string > &commands)
 
void SetDisplayHandler (std::weak_ptr< DisplayHandler > display_handler)
 
void SetCameraHandler (CameraController *controller)
 
- Public Member Functions inherited from cuttlefish::webrtc_streaming::ConnectionObserverFactory
virtual ~ConnectionObserverFactory ()=default
 
virtual std::shared_ptr< ConnectionObserverCreateObserver ()=0
 

Private Attributes

InputConnectorinput_connector_
 
KernelLogEventsHandlerkernel_log_events_handler_
 
std::map< std::string, SharedFDcommands_to_custom_action_servers_
 
std::weak_ptr< DisplayHandlerweak_display_handler_
 
cuttlefish::CameraControllercamera_controller_ = nullptr
 
webrtc_streaming::SensorsHandlersensors_handler_
 
std::shared_ptr< webrtc_streaming::LightsObserverlights_observer_
 

Constructor & Destructor Documentation

◆ CfConnectionObserverFactory()

cuttlefish::CfConnectionObserverFactory::CfConnectionObserverFactory ( InputConnector input_connector,
KernelLogEventsHandler kernel_log_events_handler,
webrtc_streaming::SensorsHandler sensors_handler,
std::shared_ptr< webrtc_streaming::LightsObserver lights_observer 
)

◆ ~CfConnectionObserverFactory()

cuttlefish::CfConnectionObserverFactory::~CfConnectionObserverFactory ( )
overridedefault

Member Function Documentation

◆ AddCustomActionServer()

void cuttlefish::CfConnectionObserverFactory::AddCustomActionServer ( SharedFD  custom_action_server_fd,
const std::vector< std::string > &  commands 
)

◆ CreateObserver()

std::shared_ptr< webrtc_streaming::ConnectionObserver > cuttlefish::CfConnectionObserverFactory::CreateObserver ( )
overridevirtual

◆ SetCameraHandler()

void cuttlefish::CfConnectionObserverFactory::SetCameraHandler ( CameraController controller)

◆ SetDisplayHandler()

void cuttlefish::CfConnectionObserverFactory::SetDisplayHandler ( std::weak_ptr< DisplayHandler display_handler)

Member Data Documentation

◆ camera_controller_

cuttlefish::CameraController* cuttlefish::CfConnectionObserverFactory::camera_controller_ = nullptr
private

◆ commands_to_custom_action_servers_

std::map<std::string, SharedFD> cuttlefish::CfConnectionObserverFactory::commands_to_custom_action_servers_
private

◆ input_connector_

InputConnector& cuttlefish::CfConnectionObserverFactory::input_connector_
private

◆ kernel_log_events_handler_

KernelLogEventsHandler& cuttlefish::CfConnectionObserverFactory::kernel_log_events_handler_
private

◆ lights_observer_

std::shared_ptr<webrtc_streaming::LightsObserver> cuttlefish::CfConnectionObserverFactory::lights_observer_
private

◆ sensors_handler_

webrtc_streaming::SensorsHandler& cuttlefish::CfConnectionObserverFactory::sensors_handler_
private

◆ weak_display_handler_

std::weak_ptr<DisplayHandler> cuttlefish::CfConnectionObserverFactory::weak_display_handler_
private

The documentation for this class was generated from the following files: