CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Definitions related dealing with print jobs. More...
Data Structures | |
struct | caps_job_progression |
Information collection for printing progression report. More... | |
Enumerations | |
enum | caps_printing_job_state { LIBCAPS_PJ_STATE_UNKNOWN = 0 , LIBCAPS_PJ_STATE_RECEIVING , LIBCAPS_PJ_STATE_QUEUED , LIBCAPS_PJ_STATE_PREPARED , LIBCAPS_PJ_STATE_PROCESSING , LIBCAPS_PJ_STATE_PROCESSING_STOPPED , LIBCAPS_PJ_STATE_CANCELED = 7 , LIBCAPS_PJ_STATE_ABORTED = 8 , LIBCAPS_PJ_STATE_COMPLETED = 9 } |
The processing states a job can be in. More... | |
enum | caps_printing_job_reason { LIBCAPS_PJ_REASON_NONE = 0 , LIBCAPS_PJ_REASON_DATA_FORMAT , LIBCAPS_PJ_REASON_DATA_CONTENT , LIBCAPS_PJ_REASON_CANCELED_BY_DRIVER , LIBCAPS_PJ_REASON_CANCELED_BY_USER , LIBCAPS_PJ_REASON_CANCELED_BY_SYSTEM , LIBCAPS_PJ_REASON_COMPLETED_SUCCESSFULLY } |
The more detailed state description a printing job can be in. More... | |
Each job has a state and maybe a reason why it is in this state. And maybe a descriptive message (refer caps_cl_job_state).
The states itself do mean:
When a client calls caps_cl_job_commit():
When the Printing Coordinator has accepted the print job:
When a printing provider has retrieved the print job via caps_pp_job_get(), works on it and - finally - finishes it somehow:
The LIBCAPS_PJ_STATE_PROCESSING_STOPPED state means, there is currently no progression in print job processing. This is the result of a temporarily problem like out of media for example. Processing can continue if the problem is solved. In this case it makes sense to retrieve the printer's state as well, to get an idea about the root cause.
The LIBCAPS_PJ_STATE_COMPLETED state means everything was fine and as expected and the print job was finished without any problems.
The LIBCAPS_PJ_STATE_CANCELED state means the client (or the system) has canceled the print job. No further processing happens.
Who has canceled the processing can be retrieved via the caps_printing_job_reason, which is LIBCAPS_PJ_REASON_CANCELED_BY_USER or LIBCAPS_PJ_REASON_CANCELED_BY_SYSTEM in this case.
The LIBCAPS_PJ_STATE_ABORTED state means the print job was aborted due to an unrecoverable failure when processing. No further processing happens.
Possible causes could be:
Refer Print Job State Definitions for details.