AstRawDark
Manage your astrophoto dark frames
 All Classes Functions Variables Enumerations Enumerator Pages
CommandQueue Class Reference

Queue that holds commands that need to be executed. More...

#include <commandQueue.h>

Signals

void commandEnqueued (AbstractCommand *)
 Advertise that a command has been queued.

Public Member Functions

 CommandQueue (QObject *parent=0)
 Constructor.
AbstractCommandgetCommand ()
 Get the next scheduled command.
AbstractCommandgetCommand (int serial)
 Get the command that has serial number n.
void enqueueCommand (AbstractCommand *command)
 Put a command at the back of the queue.
bool hasCommands () const
 Used to check if the queue contains a scheduled command.

Detailed Description

Queue that holds commands that need to be executed.

Definition at line 30 of file commandQueue.h.

Constructor & Destructor Documentation

CommandQueue::CommandQueue ( QObject *  parent = 0)
explicit

Constructor.

Parameters
parentQt parent

Definition at line 27 of file commandQueue.cpp.

Here is the call graph for this function:

Member Function Documentation

void CommandQueue::enqueueCommand ( AbstractCommand command)

Put a command at the back of the queue.

Parameters
commandcommand to be queued

Definition at line 35 of file commandQueue.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool CommandQueue::hasCommands ( ) const

Used to check if the queue contains a scheduled command.

Returns
true if queue has scheduled commands

Definition at line 45 of file commandQueue.cpp.


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