2016-06-11 14:34:41 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2017 Red Hat, Inc
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Author: Felipe Borges <felipeborges@gnome.org>
|
|
|
|
*/
|
|
|
|
|
2018-06-15 14:16:20 +12:00
|
|
|
#pragma once
|
2016-06-11 14:34:41 +02:00
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <cups/cups.h>
|
|
|
|
|
|
|
|
#define PP_PRINTER_ENTRY_TYPE (pp_printer_entry_get_type ())
|
2018-06-15 14:13:15 +12:00
|
|
|
G_DECLARE_FINAL_TYPE (PpPrinterEntry, pp_printer_entry, PP, PRINTER_ENTRY, GtkListBoxRow)
|
2016-06-11 14:34:41 +02:00
|
|
|
|
|
|
|
PpPrinterEntry *pp_printer_entry_new (cups_dest_t printer,
|
|
|
|
gboolean is_authorized);
|
|
|
|
|
2020-10-15 09:57:44 +13:00
|
|
|
const gchar *pp_printer_entry_get_name (PpPrinterEntry *self);
|
|
|
|
|
|
|
|
const gchar *pp_printer_entry_get_location (PpPrinterEntry *self);
|
|
|
|
|
2017-02-24 11:32:59 +01:00
|
|
|
void pp_printer_entry_update_jobs_count (PpPrinterEntry *self);
|
|
|
|
|
2017-03-07 14:12:51 +01:00
|
|
|
GSList *pp_printer_entry_get_size_group_widgets (PpPrinterEntry *self);
|
|
|
|
|
2018-02-21 18:05:55 +01:00
|
|
|
void pp_printer_entry_show_jobs_dialog (PpPrinterEntry *self);
|
|
|
|
|
2018-02-16 17:02:19 +01:00
|
|
|
void pp_printer_entry_authenticate_jobs (PpPrinterEntry *self);
|
2020-06-04 19:53:13 +02:00
|
|
|
|
|
|
|
void pp_printer_entry_update (PpPrinterEntry *self,
|
|
|
|
cups_dest_t printer,
|
|
|
|
gboolean is_authorized);
|