2 * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 #ifndef __GTK_PRINTER_H__
20 #define __GTK_PRINTER_H__
22 #include <glib-object.h>
24 #include <gtk/gtkprintsettings.h>
25 #include <gtk/gtkpagesetup.h>
29 #define GTK_TYPE_PRINTER (gtk_printer_get_type ())
30 #define GTK_PRINTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINTER, GtkPrinter))
31 #define GTK_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PRINTER, GtkPrinterClass))
32 #define GTK_IS_PRINTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINTER))
33 #define GTK_IS_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER))
34 #define GTK_PRINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER, GtkPrinterClass))
36 typedef struct _GtkPrinter GtkPrinter;
37 typedef struct _GtkPrinterClass GtkPrinterClass;
38 typedef struct _GtkPrinterPrivate GtkPrinterPrivate;
39 typedef struct _GtkPrintBackend GtkPrintBackend;
40 typedef struct _GtkPrintJob GtkPrintJob;
42 struct _GtkPrintBackend;
47 GObject parent_instance;
49 GtkPrinterPrivate *priv;
52 struct _GtkPrinterClass
54 GObjectClass parent_class;
56 void (*details_acquired) (GtkPrinter *printer, gboolean success);
58 /* Padding for future expansion */
59 void (*_gtk_reserved1) (void);
60 void (*_gtk_reserved2) (void);
61 void (*_gtk_reserved3) (void);
62 void (*_gtk_reserved4) (void);
63 void (*_gtk_reserved5) (void);
64 void (*_gtk_reserved6) (void);
65 void (*_gtk_reserved7) (void);
68 GType gtk_printer_get_type (void) G_GNUC_CONST;
69 GtkPrinter *gtk_printer_new (const char *name,
70 GtkPrintBackend *backend,
72 GtkPrintBackend *gtk_printer_get_backend (GtkPrinter *printer);
73 const gchar *gtk_printer_get_name (GtkPrinter *printer);
74 const gchar *gtk_printer_get_state_message (GtkPrinter *printer);
75 const gchar *gtk_printer_get_description (GtkPrinter *printer);
76 const gchar *gtk_printer_get_location (GtkPrinter *printer);
77 const gchar *gtk_printer_get_icon_name (GtkPrinter *printer);
78 gint gtk_printer_get_job_count (GtkPrinter *printer);
79 gboolean gtk_printer_is_active (GtkPrinter *printer);
80 gboolean gtk_printer_is_virtual (GtkPrinter *printer);
81 gboolean gtk_printer_is_default (GtkPrinter *printer);
86 #endif /* __GTK_PRINTER_H__ */