#include <jobexecute.h>
Signals | |
void | jobSent (QStringList) |
Signal emitted once a job is sent. The QStringList has 2 strings : the output stream and the error stream of the command sent. | |
Public Member Functions | |
JobExecute (QString, Myssh *) | |
void | run () |
Private Attributes | |
QString | _text |
Myssh * | _ssh |
Use of a thread in order to be non-blocking. Signal is sent once the submission is completed or failed.
Definition at line 22 of file jobexecute.h.
JobExecute::JobExecute | ( | QString | text, | |
Myssh * | ssh | |||
) |
Construct a JobExecute thread to send a job
text | text describing the job | |
s | ssh connection to the host where to run the job |
Definition at line 16 of file jobexecute.cpp.
void JobExecute::run | ( | ) |
Run the thread Will emit jobSent(QStringList) on completion
Definition at line 25 of file jobexecute.cpp.
References _ssh, _text, jobSent(), and Myssh::send_cmd().
void JobExecute::jobSent | ( | QStringList | ) | [signal] |
Signal emitted once a job is sent. The QStringList has 2 strings : the output stream and the error stream of the command sent.
Referenced by run().
QString JobExecute::_text [private] |
Myssh* JobExecute::_ssh [private] |