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

#include <protocol_types.h>

Inheritance diagram for cuttlefish::confui::ConfUiAckMessage:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::confui::ConfUiAckMessage:
Collaboration graph
[legend]

Public Member Functions

 ConfUiAckMessage (const std::string &session_id, const bool is_success, const std::string &status)
 
virtual ~ConfUiAckMessage ()=default
 
std::string ToString () const override
 
ConfUiCmd GetType () const override
 
bool SendOver (SharedFD fd) override
 
bool IsSuccess () const
 
std::string GetStatusMessage () const
 
- Public Member Functions inherited from cuttlefish::confui::ConfUiMessage
 ConfUiMessage (const std::string &session_id)
 
virtual ~ConfUiMessage ()=default
 
virtual std::string ToString () const =0
 
void SetSessionId (const std::string session_id)
 
std::string GetSessionId () const
 
virtual ConfUiCmd GetType () const =0
 
virtual bool SendOver (SharedFD fd)=0
 
bool IsUserInput () const
 

Private Attributes

bool is_success_
 
std::string status_message_
 

Additional Inherited Members

- Static Protected Member Functions inherited from cuttlefish::confui::ConfUiMessage
template<typename... Args>
static std::string CreateString (Args &&... args)
 
template<typename... Args>
static bool Send_ (SharedFD fd, const ConfUiCmd cmd, const std::string &session_id, Args &&... args)
 
- Protected Attributes inherited from cuttlefish::confui::ConfUiMessage
std::string session_id_
 

Constructor & Destructor Documentation

◆ ConfUiAckMessage()

cuttlefish::confui::ConfUiAckMessage::ConfUiAckMessage ( const std::string &  session_id,
const bool  is_success,
const std::string &  status 
)
inline

◆ ~ConfUiAckMessage()

virtual cuttlefish::confui::ConfUiAckMessage::~ConfUiAckMessage ( )
virtualdefault

Member Function Documentation

◆ GetStatusMessage()

std::string cuttlefish::confui::ConfUiAckMessage::GetStatusMessage ( ) const
inline

◆ GetType()

ConfUiCmd cuttlefish::confui::ConfUiAckMessage::GetType ( ) const
inlineoverridevirtual

◆ IsSuccess()

bool cuttlefish::confui::ConfUiAckMessage::IsSuccess ( ) const
inline

◆ SendOver()

bool cuttlefish::confui::ConfUiAckMessage::SendOver ( SharedFD  fd)
overridevirtual

◆ ToString()

std::string cuttlefish::confui::ConfUiAckMessage::ToString ( ) const
overridevirtual

Member Data Documentation

◆ is_success_

bool cuttlefish::confui::ConfUiAckMessage::is_success_
private

◆ status_message_

std::string cuttlefish::confui::ConfUiAckMessage::status_message_
private

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