B-5
Cisco Interactive Experience Client 4600 Series User Guide
Appendix B Printers
Printer Implementation
PrintJob
All global.printer methods related to performing actual printing return objects implementing the
PrintJob interface.
interface PrintJob {
readonly attribute JobState state;
readonly attribute string errorString;
readonly attribute string printerName;
readonly attribute bool isFinished;
void cancel();
void remove();
signal void finished();
signal void error();
signal void stateChanged();
}
Table B-2
PrintJob Variables
clearStatusHistory()
Clears the queue with the printer status history.
errorStatus()
Fires when an error status event has arrived from the printer.
Variable
Description
Variable
Description
state
Contains current state of the print job and has one of the following
values:
'Downloading' — document is being downloaded from remote server
'Held' — job is held for printing
'Pending' — job is waiting to be printed
'Processing' — job is currently printing
'Completed' — job has completed successfully
'Stopped' — job has been stopped
'Aborted' — job has aborted due to an error
errorString
Contains string describing the error that has occurred
printerName
Contains name of a printer performing the job
isFinished
Contains ‘true’ if printer finished processing the job regardless if it was
successful or not or ‘false’ if printer has not finished processing the job
cancel()
Instructs the printer to cancel processing the print job. Returns ‘true’ on
success or ‘false’ on failure. Note that it is not always possible to stop
printing immediately if this process already started.