GCC Code Coverage Report


Directory: ./
File: panels/printers/pp-printer-entry.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 2 0.0%
Branches: 0 6 0.0%

Line Branch Exec Source
1 /*
2 * Copyright 2017 Red Hat, Inc
3 *
4 * This program 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 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, see <http://www.gnu.org/licenses/>.
16 *
17 * Author: Felipe Borges <felipeborges@gnome.org>
18 */
19
20 #pragma once
21
22 #include <gtk/gtk.h>
23 #include <cups/cups.h>
24
25 #define PP_PRINTER_ENTRY_TYPE (pp_printer_entry_get_type ())
26 G_DECLARE_FINAL_TYPE (PpPrinterEntry, pp_printer_entry, PP, PRINTER_ENTRY, GtkListBoxRow)
27
28 PpPrinterEntry *pp_printer_entry_new (cups_dest_t printer,
29 gboolean is_authorized);
30
31 const gchar *pp_printer_entry_get_name (PpPrinterEntry *self);
32
33 const gchar *pp_printer_entry_get_location (PpPrinterEntry *self);
34
35 void pp_printer_entry_update_jobs_count (PpPrinterEntry *self);
36
37 GSList *pp_printer_entry_get_size_group_widgets (PpPrinterEntry *self);
38
39 void pp_printer_entry_show_jobs_dialog (PpPrinterEntry *self);
40
41 void pp_printer_entry_authenticate_jobs (PpPrinterEntry *self);
42
43 void pp_printer_entry_update (PpPrinterEntry *self,
44 cups_dest_t printer,
45 gboolean is_authorized);
46