1 |
769 |
jeremybenn |
/* CupsIppOperation.java --
|
2 |
|
|
Copyright (C) 2006 Free Software Foundation, Inc.
|
3 |
|
|
|
4 |
|
|
This file is part of GNU Classpath.
|
5 |
|
|
|
6 |
|
|
GNU Classpath is free software; you can redistribute it and/or modify
|
7 |
|
|
it under the terms of the GNU General Public License as published by
|
8 |
|
|
the Free Software Foundation; either version 2, or (at your option)
|
9 |
|
|
any later version.
|
10 |
|
|
|
11 |
|
|
GNU Classpath is distributed in the hope that it will be useful, but
|
12 |
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
|
|
General Public License for more details.
|
15 |
|
|
|
16 |
|
|
You should have received a copy of the GNU General Public License
|
17 |
|
|
along with GNU Classpath; see the file COPYING. If not, write to the
|
18 |
|
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
19 |
|
|
02110-1301 USA.
|
20 |
|
|
|
21 |
|
|
Linking this library statically or dynamically with other modules is
|
22 |
|
|
making a combined work based on this library. Thus, the terms and
|
23 |
|
|
conditions of the GNU General Public License cover the whole
|
24 |
|
|
combination.
|
25 |
|
|
|
26 |
|
|
As a special exception, the copyright holders of this library give you
|
27 |
|
|
permission to link this library with independent modules to produce an
|
28 |
|
|
executable, regardless of the license terms of these independent
|
29 |
|
|
modules, and to copy and distribute the resulting executable under
|
30 |
|
|
terms of your choice, provided that you also meet, for each linked
|
31 |
|
|
independent module, the terms and conditions of the license of that
|
32 |
|
|
module. An independent module is a module which is not derived from
|
33 |
|
|
or based on this library. If you modify this library, you may extend
|
34 |
|
|
this exception to your version of the library, but you are not
|
35 |
|
|
obligated to do so. If you do not wish to do so, delete this
|
36 |
|
|
exception statement from your version. */
|
37 |
|
|
|
38 |
|
|
|
39 |
|
|
package gnu.javax.print;
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
/**
|
43 |
|
|
* Operations as provided by CUPS up to version 1.1
|
44 |
|
|
* <p>
|
45 |
|
|
* See: CUPS Implementation of IPP, chapter 3.2<br>
|
46 |
|
|
* http://www.cups.org/doc-1.1/ipp.html
|
47 |
|
|
* </p>
|
48 |
|
|
*
|
49 |
|
|
* @author Wolfgang Baer (WBaer@gmx.de)
|
50 |
|
|
*/
|
51 |
|
|
public final class CupsIppOperation
|
52 |
|
|
{
|
53 |
|
|
|
54 |
|
|
/** Get the default destination - since CUPS 1.0 */
|
55 |
|
|
public static final int CUPS_GET_DEFAULT = 0x4001;
|
56 |
|
|
|
57 |
|
|
/** Get all of the available printers - since CUPS 1.0 */
|
58 |
|
|
public static final int CUPS_GET_PRINTERS = 0x4002;
|
59 |
|
|
|
60 |
|
|
/** Add or modify a printer - since CUPS 1.0 */
|
61 |
|
|
public static final int CUPS_ADD_MODIFY_PRINTER = 0x4003;
|
62 |
|
|
|
63 |
|
|
/** Delete a printer - since CUPS 1.0 */
|
64 |
|
|
public static final int CUPS_DELETE_PRINTER = 0x4004;
|
65 |
|
|
|
66 |
|
|
/** Get all of the available printer classes - since CUPS 1.0 */
|
67 |
|
|
public static final int CUPS_GET_CLASSES = 0x4005;
|
68 |
|
|
|
69 |
|
|
/** Add or modify a printer class - since CUPS 1.0 */
|
70 |
|
|
public static final int CUPS_ADD_MODIFY_CLASS = 0x4006;
|
71 |
|
|
|
72 |
|
|
/** Delete a printer class - since CUPS 1.0 */
|
73 |
|
|
public static final int CUPS_DELETE_CLASS = 0x4007;
|
74 |
|
|
|
75 |
|
|
/** Accept jobs on a printer or printer class - since CUPS 1.0 */
|
76 |
|
|
public static final int CUPS_ACCEPT_JOBS = 0x4008;
|
77 |
|
|
|
78 |
|
|
/** Reject jobs on a printer or printer class - since CUPS 1.0 */
|
79 |
|
|
public static final int CUPS_REJECT_JOBS = 0x4009;
|
80 |
|
|
|
81 |
|
|
/** Set the default destination - since CUPS 1.0 */
|
82 |
|
|
public static final int CUPS_SET_DEFAULT = 0x400A;
|
83 |
|
|
|
84 |
|
|
/** Get all of the available PPDs - since CUPS 1.1 */
|
85 |
|
|
public static final int CUPS_GET_DEVICES = 0x400B;
|
86 |
|
|
|
87 |
|
|
/** Get all of the available PPDs - since CUPS 1.1 */
|
88 |
|
|
public static final int CUPS_GET_PPDS = 0x400C;
|
89 |
|
|
|
90 |
|
|
/** Move a job to a different printer - since CUPS 1.1 */
|
91 |
|
|
public static final int CUPS_MOVE_JOB = 0x400D;
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
private CupsIppOperation()
|
95 |
|
|
{
|
96 |
|
|
// not to be instantiated
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
}
|