tuchulcha  0.10.1
Graphical Workflow Configuration Editor
CommunicationHandler Class Reference

handle command line arguments and process communication More...

#include <CommunicationHandler.h>

Inheritance diagram for CommunicationHandler:

Public Slots

void taskFinished ()
 handle task finishing
 

Signals

void runWorkflow (QString fName)
 run given workflow file More...
 
void setupSettings ()
 setup settings
 
void updateDynamics (QString fName)
 update dynamic plugins of given workflow file More...
 
void updatePlugins ()
 update module metadata
 

Public Member Functions

 CommunicationHandler (const QStringList &args, QObject *parent=0)
 constructor with cmdline arguments More...
 
int errorCode () const
 get CommunicatonHandler return code, zero means no error
 

Protected Member Functions

virtual void run ()
 thread execution code
 

Private Slots

void _printPrompt ()
 print command line prompt for interactive session
 
void _startTask ()
 handle task starting
 

Private Member Functions

bool _checkForFileArg (QStringListIterator &iter, QString cmd)
 check for file argument during command line processing
 

Private Attributes

QStringList _args
 cmd line argument cache
 
int _errorCode
 error code cache, zero means no error
 
QString _helpMsg
 message to display when –help argument was provided
 
QString _helpMsgI
 help message for interactive session
 
bool _interactive
 enter interactive loop
 
bool _quiet
 avoid info output
 
uint _taskCount
 task counter
 

Detailed Description

Definition at line 31 of file CommunicationHandler.h.

Constructor & Destructor Documentation

CommunicationHandler::CommunicationHandler ( const QStringList &  args,
QObject *  parent = 0 
)
explicit
Parameters
argscommand line arguments
parentparent object

Definition at line 30 of file CommunicationHandler.cpp.

References _helpMsg, _helpMsgI, _startTask(), runWorkflow(), setupSettings(), updateDynamics(), and updatePlugins().

Member Function Documentation

void CommunicationHandler::runWorkflow ( QString  fName)
signal
Parameters
fNameworkflow filename
void CommunicationHandler::updateDynamics ( QString  fName)
signal
Parameters
fNameworkflow filename

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