CupsIppOperation.java 3.5 KB

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