Receptacle
 All Classes Files Functions Variables Pages
Dispatcher Class Reference
Inheritance diagram for Dispatcher:

Public Slots

void queue_request (QString command)
 Asynchronous request for a job to run. More...
 
void request_completed (const QString &command)
 Handler to cleanup after a job finishes and prepares for the next job to run. More...
 

Public Member Functions

 Dispatcher (HostController *h_controller, QObject *parent=0)
 
void startServer (int port)
 Call startServer to listen for client connections. Server does not process requests until this is called.
 
bool queue_busy ()
 A 'busy signal' check. More...
 

Protected Member Functions

void incomingConnection (qintptr socketDescriptor)
 

Protected Attributes

HostControllercontroller
 
QSemaphore request_mutex
 

Member Function Documentation

bool Dispatcher::queue_busy ( )

A 'busy signal' check.

Returns
True when the dispatcher is busy, false otherwise
void Dispatcher::queue_request ( QString  command)
slot

Asynchronous request for a job to run.

Parameters
QStringcommand specifying the requested job
void Dispatcher::request_completed ( const QString &  command)
slot

Handler to cleanup after a job finishes and prepares for the next job to run.

Parameters
QStringcommand of the job that just finished

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