JobExecute Class Reference

Class used to execute a job a server. More...

#include <jobexecute.h>

Collaboration diagram for JobExecute:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Class used to execute a job a server.

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.


Constructor & Destructor Documentation

JobExecute::JobExecute ( QString  text,
Myssh ssh 
)

Construct a JobExecute thread to send a job

Parameters:
text text describing the job
s ssh connection to the host where to run the job

Definition at line 16 of file jobexecute.cpp.

References _ssh, and _text.


Member Function Documentation

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().

Here is the call graph for this function:

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().


Member Data Documentation

QString JobExecute::_text [private]

Definition at line 27 of file jobexecute.h.

Referenced by JobExecute(), and run().

Myssh* JobExecute::_ssh [private]

Definition at line 28 of file jobexecute.h.

Referenced by JobExecute(), and run().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:07 2009 for QCJM by  doxygen 1.5.4