CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Definitions related dealing with printers. More...
Data Structures | |
struct | caps_supported_mime_list |
Each printer provider has a state and maybe a reason why it is in this state. And maybe a descriptive message (refer caps_cl_printer_state).
The states a printing provider can be in (refer caps_printing_provider_state):
The LIBCAPS_PP_STATE_INVISIBLE is an internal state in the printing coordinator only. This state is used, when a printing provider starts to register itself, but the information about this provider is still incomplete at the printing coordinator. In this case it makes no sense to show this printing provider to any client. That's what the "invisible" means.
In these states a printer is visible to the public and clients can retrieve its information or start print jobs on it.
The LIBCAPS_PP_STATE_STOPPED state always means the printing provider/driver or its device is in a special state. Something prevents the printing provider/driver or its device from doing its job. In this state, the caps_printing_provider_reason gives some more hints what prevents the printing provider/driver/device from printing.
LIBCAPS_PP_STATE_IDLE means the printing provider/driver and its device just consume electrical power - and nothing else.
LIBCAPS_PP_STATE_PREPARING means the printing provider/driver is doing some preparation in order to make its device working. Waiting for warm up/wake up the sleeping device for example.
LIBCAPS_PP_STATE_PROCESSING means a page is being processed. It depends on the complexity of the page and the available processing power to render it, how long the printing provider is in this state.
LIBCAPS_PP_STATE_PRINTING means the printing provider transfers the data to the printer and expect a printed media after that.
In these states a printer is still visible for a short period of time. It is possible for a client to retrieve the state of an offline printer exactly once for example. After this, the printer disappears forever.
LIBCAPS_PP_STATE_SHUTDOWN means the printing provider is going offline right now. This is a visible state, e.g. it is still listed in the list of known printers.
LIBCAPS_PP_STATE_OFFLINE means this printing provider is already gone offline. Such a printer isn't listed in the list of known printers (refer caps_cl_printer_list_get()), you will get this state only on a specific request (e.g. you still know its unique ID).
The state a printing driver/provider can be in
Refer Printer State Definitions for details.
The more detailed state reason description a printing provider can be in
These values makes sense if the caps_printing_provider_state is LIBCAPS_PP_STATE_STOPPED