ddt 1.1.0
Loading...
Searching...
No Matches
Public Attributes | Protected Attributes | List of all members
ddt::DdtRemoteControl Class Reference

#include <ddtRemoteControl.hpp>

Inheritance diagram for ddt::DdtRemoteControl:

Public Attributes

signal_remote remote_command_signal
 

Protected Attributes

DdtLoggerlogger
 
 DdtRemoteControl (const std::string server_uri, DdtLogger *ddt_logger)
 
virtual ~DdtRemoteControl ()
 
void StartRemoteControlServer ()
 
mal::future< std::string > HandleRemoteCommand (const std::string &image_widget_name, const std::string &command_name, const std::vector< std::string > &command_arguments) override
 
void ProcessResponse (const std::string &response)
 

Constructor & Destructor Documentation

◆ DdtRemoteControl()

DdtRemoteControl::DdtRemoteControl ( const std::string  server_uri,
DdtLogger ddt_logger 
)
explicit

Constructor

Parameters
server_uriThe URI of the MAL server.
ddt_loggerA DDT logger object (no transfer of ownership).

◆ ~DdtRemoteControl()

DdtRemoteControl::~DdtRemoteControl ( )
virtual

Destructor

Member Function Documentation

◆ HandleRemoteCommand()

mal::future< std::string > DdtRemoteControl::HandleRemoteCommand ( const std::string &  image_widget_name,
const std::string &  command_name,
const std::vector< std::string > &  command_arguments 
)
override

Handles the command sent by remote clients.

Parameters
image_widget_nameName of the image widget.
command_nameName of the command.
command_argumentsArguments of the command.
Returns
Future object which retrieves the server response.

◆ ProcessResponse()

void DdtRemoteControl::ProcessResponse ( const std::string &  response)

Processes the received response.

Parameters
responseThe received response.

◆ StartRemoteControlServer()

void DdtRemoteControl::StartRemoteControlServer ( )

Starts the ServerThread() function.

Member Data Documentation

◆ logger

DdtLogger* ddt::DdtRemoteControl::logger
protected

Logger object

◆ remote_command_signal

signal_remote ddt::DdtRemoteControl::remote_command_signal

Boost signal to send the remote command which was received via MALrr.


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