ME 305 Group 6 Documentation
|
A queue of print jobs to be printed by the user interface. More...
Public Member Functions | |
def | __init__ (self) |
Constructs an empty print queue. | |
def | add_job (self, PrintJob new_job) |
Adds a printjob to the queue. More... | |
def | quick_print (self, str text) |
@ brief Adds a printjob to the queue from a string More... | |
def | get_job (self) |
Get the next job from the print queue. More... | |
def | num_in (self) |
Find the number of items in the queue. More... | |
A queue of print jobs to be printed by the user interface.
Values can be placed into queue and will be printed in the order they have been queued. Will check a timeout for a print job if necessary to avoid printing severely lagged data.
def printqueue.PrintQueue.add_job | ( | self, | |
PrintJob | new_job | ||
) |
Adds a printjob to the queue.
Must provide a printjob object to the function. Adds the job to the end of the queue.
new_job | PrintJob object to be added the print queue |
def printqueue.PrintQueue.get_job | ( | self | ) |
Get the next job from the print queue.
Gets the next job from the print queue. Only returns a job if the timeout has not yet passed.
def printqueue.PrintQueue.num_in | ( | self | ) |
Find the number of items in the queue.
Call before get().
def printqueue.PrintQueue.quick_print | ( | self, | |
str | text | ||
) |
@ brief Adds a printjob to the queue from a string
Must provide a string to the function. Adds the job to the end of the queue.
text | String of text to be printed |