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

#include <webrtc_controller.h>

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

Public Member Functions

 INJECT (WebRtcController())
 
std::string Name () const override
 
Result< void > ResultSetup () override
 
SharedFD GetClientSocket () const
 
Result< void > SendStartRecordingCommand ()
 
Result< void > SendStopRecordingCommand ()
 
Result< void > SendScreenshotDisplayCommand (int display_number, const std::string &screenshot_path)
 
- Public Member Functions inherited from cuttlefish::SetupFeature
virtual ~SetupFeature ()
 
virtual bool Enabled () const
 
- Public Member Functions inherited from cuttlefish::Feature< SetupFeature >
virtual ~Feature ()=default
 
virtual std::string Name () const=0
 

Protected Attributes

SharedFD client_socket_
 
std::optional< WebrtcClientCommandChannelcommand_channel_
 

Private Member Functions

std::unordered_set< SetupFeature * > Dependencies () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from cuttlefish::SetupFeature
static Result< void > RunSetup (const std::vector< SetupFeature * > &features)
 
- Static Public Member Functions inherited from cuttlefish::Feature< SetupFeature >
static Result< void > TopologicalVisit (const std::unordered_set< SetupFeature * > &features, const std::function< Result< void >(SetupFeature *)> &callback)
 

Member Function Documentation

◆ Dependencies()

std::unordered_set< SetupFeature * > cuttlefish::WebRtcController::Dependencies ( ) const
inlineoverrideprivatevirtual

◆ GetClientSocket()

SharedFD cuttlefish::WebRtcController::GetClientSocket ( ) const

◆ INJECT()

cuttlefish::WebRtcController::INJECT ( WebRtcController()  )
inline

◆ Name()

std::string cuttlefish::WebRtcController::Name ( ) const
inlineoverridevirtual

◆ ResultSetup()

Result< void > cuttlefish::WebRtcController::ResultSetup ( )
overridevirtual

◆ SendScreenshotDisplayCommand()

Result< void > cuttlefish::WebRtcController::SendScreenshotDisplayCommand ( int  display_number,
const std::string &  screenshot_path 
)

◆ SendStartRecordingCommand()

Result< void > cuttlefish::WebRtcController::SendStartRecordingCommand ( )

◆ SendStopRecordingCommand()

Result< void > cuttlefish::WebRtcController::SendStopRecordingCommand ( )

Member Data Documentation

◆ client_socket_

SharedFD cuttlefish::WebRtcController::client_socket_
protected

◆ command_channel_

std::optional<WebrtcClientCommandChannel> cuttlefish::WebRtcController::command_channel_
protected

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