]> Pileus Git - ~andy/gtk/blob - modules/printbackends/papi/gtkprinterpapi.h
Adding PAPI printbackend
[~andy/gtk] / modules / printbackends / papi / gtkprinterpapi.h
1 /* GtkPrinterPapi
2  * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
3  * Copyright (C) 2009 Ghee Teo <ghee.teo@sun.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20 #ifndef __GTK_PRINTER_PAPI_H__
21 #define __GTK_PRINTER_PAPI_H__
22
23 #include <glib.h>
24 #include <glib-object.h>
25 #include <papi.h>
26
27 #include "gtkunixprint.h"
28
29 G_BEGIN_DECLS
30
31 #define GTK_TYPE_PRINTER_PAPI                  (gtk_printer_papi_get_type ())
32 #define GTK_PRINTER_PAPI(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapi))
33 #define GTK_PRINTER_PAPI_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapiClass))
34 #define GTK_IS_PRINTER_PAPI(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER_PAPI))
35 #define GTK_IS_PRINTER_PAPI_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_PAPI))
36 #define GTK_PRINTER_PAPI_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_PAPI, GtkPrinterPapiClass))
37
38 typedef struct _GtkPrinterPapi          GtkPrinterPapi;
39 typedef struct _GtkPrinterPapiClass     GtkPrinterPapiClass;
40 typedef struct _GtkPrinterPapiPrivate   GtkPrinterPapiPrivate;
41
42 struct _GtkPrinterPapi
43 {
44   GtkPrinter parent_instance;
45
46   gchar *printer_name;
47 };
48
49 struct _GtkPrinterPapiClass
50 {
51   GtkPrinterClass parent_class;
52
53 };
54
55 GType                    gtk_printer_papi_get_type      (void) G_GNUC_CONST;
56 void                     gtk_printer_papi_register_type (GTypeModule     *module);
57 GtkPrinterPapi          *gtk_printer_papi_new           (const char      *name, GtkPrintBackend *backend);
58
59 G_END_DECLS
60
61 #endif /* __GTK_PRINTER_PAPI_H__ */