Android-cuttlefish cvd tool
Public Member Functions | List of all members
cuttlefish::webrtc_streaming::ConnectionObserver Class Referenceabstract

#include <connection_observer.h>

Inheritance diagram for cuttlefish::webrtc_streaming::ConnectionObserver:
Inheritance graph
[legend]

Public Member Functions

 ConnectionObserver ()=default
 
virtual ~ConnectionObserver ()=default
 
virtual void OnConnected ()=0
 
virtual Result< void > OnMouseMoveEvent (int x, int y)=0
 
virtual Result< void > OnMouseButtonEvent (int button, bool down)=0
 
virtual Result< void > OnMouseWheelEvent (int pixels)=0
 
virtual Result< void > OnGamepadKeyEvent (int button, bool down)=0
 
virtual Result< void > OnGamepadMotionEvent (int code, int value)=0
 
virtual Result< void > OnTouchEvent (const std::string &device_label, int x, int y, bool down)=0
 
virtual Result< void > OnMultiTouchEvent (const std::string &label, Json::Value id, Json::Value x, Json::Value y, bool down, int size)=0
 
virtual Result< void > OnKeyboardEvent (uint16_t keycode, bool down)=0
 
virtual Result< void > OnRotaryWheelEvent (int pixels)=0
 
virtual void OnAdbChannelOpen (std::function< bool(const uint8_t *, size_t)> adb_message_sender)=0
 
virtual void OnAdbMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnControlChannelOpen (std::function< bool(const Json::Value)> control_message_sender)=0
 
virtual Result< void > OnLidStateChange (bool lid_open)=0
 
virtual void OnHingeAngleChange (int hinge_angle)=0
 
virtual Result< void > OnPowerButton (bool button_down)=0
 
virtual Result< void > OnBackButton (bool button_down)=0
 
virtual Result< void > OnHomeButton (bool button_down)=0
 
virtual Result< void > OnMenuButton (bool button_down)=0
 
virtual Result< void > OnVolumeDownButton (bool button_down)=0
 
virtual Result< void > OnVolumeUpButton (bool button_down)=0
 
virtual void OnCustomActionButton (const std::string &command, const std::string &button_state)=0
 
virtual void OnCameraControlMsg (const Json::Value &msg)=0
 
virtual void OnDisplayControlMsg (const Json::Value &msg)=0
 
virtual void OnDisplayAddMsg (const Json::Value &msg)=0
 
virtual void OnDisplayRemoveMsg (const Json::Value &msg)=0
 
virtual void OnBluetoothChannelOpen (std::function< bool(const uint8_t *, size_t)> bluetooth_message_sender)=0
 
virtual void OnBluetoothMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnSensorsChannelOpen (std::function< bool(const uint8_t *, size_t)> sensors_message_sender)=0
 
virtual void OnSensorsMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnSensorsChannelClosed ()=0
 
virtual void OnLightsChannelOpen (std::function< bool(const Json::Value &)> lights_message_sender)=0
 
virtual void OnLightsChannelClosed ()=0
 
virtual void OnLocationChannelOpen (std::function< bool(const uint8_t *, size_t)> location_message_sender)=0
 
virtual void OnLocationMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnKmlLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> kml_locations_message_sender)=0
 
virtual void OnGpxLocationsChannelOpen (std::function< bool(const uint8_t *, size_t)> gpx_locations_message_sender)=0
 
virtual void OnKmlLocationsMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnGpxLocationsMessage (const uint8_t *msg, size_t size)=0
 
virtual void OnCameraData (const std::vector< char > &data)=0
 

Constructor & Destructor Documentation

◆ ConnectionObserver()

cuttlefish::webrtc_streaming::ConnectionObserver::ConnectionObserver ( )
default

◆ ~ConnectionObserver()

virtual cuttlefish::webrtc_streaming::ConnectionObserver::~ConnectionObserver ( )
virtualdefault

Member Function Documentation

◆ OnAdbChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnAdbChannelOpen ( std::function< bool(const uint8_t *, size_t)>  adb_message_sender)
pure virtual

◆ OnAdbMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnAdbMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnBackButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnBackButton ( bool  button_down)
pure virtual

◆ OnBluetoothChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnBluetoothChannelOpen ( std::function< bool(const uint8_t *, size_t)>  bluetooth_message_sender)
pure virtual

◆ OnBluetoothMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnBluetoothMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnCameraControlMsg()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnCameraControlMsg ( const Json::Value &  msg)
pure virtual

◆ OnCameraData()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnCameraData ( const std::vector< char > &  data)
pure virtual

◆ OnConnected()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnConnected ( )
pure virtual

◆ OnControlChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnControlChannelOpen ( std::function< bool(const Json::Value)>  control_message_sender)
pure virtual

◆ OnCustomActionButton()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnCustomActionButton ( const std::string &  command,
const std::string &  button_state 
)
pure virtual

◆ OnDisplayAddMsg()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnDisplayAddMsg ( const Json::Value &  msg)
pure virtual

◆ OnDisplayControlMsg()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnDisplayControlMsg ( const Json::Value &  msg)
pure virtual

◆ OnDisplayRemoveMsg()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnDisplayRemoveMsg ( const Json::Value &  msg)
pure virtual

◆ OnGamepadKeyEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnGamepadKeyEvent ( int  button,
bool  down 
)
pure virtual

◆ OnGamepadMotionEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnGamepadMotionEvent ( int  code,
int  value 
)
pure virtual

◆ OnGpxLocationsChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnGpxLocationsChannelOpen ( std::function< bool(const uint8_t *, size_t)>  gpx_locations_message_sender)
pure virtual

◆ OnGpxLocationsMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnGpxLocationsMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnHingeAngleChange()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnHingeAngleChange ( int  hinge_angle)
pure virtual

◆ OnHomeButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnHomeButton ( bool  button_down)
pure virtual

◆ OnKeyboardEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnKeyboardEvent ( uint16_t  keycode,
bool  down 
)
pure virtual

◆ OnKmlLocationsChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnKmlLocationsChannelOpen ( std::function< bool(const uint8_t *, size_t)>  kml_locations_message_sender)
pure virtual

◆ OnKmlLocationsMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnKmlLocationsMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnLidStateChange()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnLidStateChange ( bool  lid_open)
pure virtual

◆ OnLightsChannelClosed()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnLightsChannelClosed ( )
pure virtual

◆ OnLightsChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnLightsChannelOpen ( std::function< bool(const Json::Value &)>  lights_message_sender)
pure virtual

◆ OnLocationChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnLocationChannelOpen ( std::function< bool(const uint8_t *, size_t)>  location_message_sender)
pure virtual

◆ OnLocationMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnLocationMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnMenuButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnMenuButton ( bool  button_down)
pure virtual

◆ OnMouseButtonEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnMouseButtonEvent ( int  button,
bool  down 
)
pure virtual

◆ OnMouseMoveEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnMouseMoveEvent ( int  x,
int  y 
)
pure virtual

◆ OnMouseWheelEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnMouseWheelEvent ( int  pixels)
pure virtual

◆ OnMultiTouchEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnMultiTouchEvent ( const std::string &  label,
Json::Value  id,
Json::Value  x,
Json::Value  y,
bool  down,
int  size 
)
pure virtual

◆ OnPowerButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnPowerButton ( bool  button_down)
pure virtual

◆ OnRotaryWheelEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnRotaryWheelEvent ( int  pixels)
pure virtual

◆ OnSensorsChannelClosed()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnSensorsChannelClosed ( )
pure virtual

◆ OnSensorsChannelOpen()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnSensorsChannelOpen ( std::function< bool(const uint8_t *, size_t)>  sensors_message_sender)
pure virtual

◆ OnSensorsMessage()

virtual void cuttlefish::webrtc_streaming::ConnectionObserver::OnSensorsMessage ( const uint8_t *  msg,
size_t  size 
)
pure virtual

◆ OnTouchEvent()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnTouchEvent ( const std::string &  device_label,
int  x,
int  y,
bool  down 
)
pure virtual

◆ OnVolumeDownButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnVolumeDownButton ( bool  button_down)
pure virtual

◆ OnVolumeUpButton()

virtual Result< void > cuttlefish::webrtc_streaming::ConnectionObserver::OnVolumeUpButton ( bool  button_down)
pure virtual

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