Line |
Branch |
Exec |
Source |
1 |
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
2 |
|
|
* |
3 |
|
|
* Copyright 2015 Red Hat, Inc, |
4 |
|
|
* |
5 |
|
|
* This program is free software; you can redistribute it and/or modify |
6 |
|
|
* it under the terms of the GNU General Public License as published by |
7 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
8 |
|
|
* (at your option) any later version. |
9 |
|
|
* |
10 |
|
|
* This program 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 |
13 |
|
|
* GNU General Public License for more details. |
14 |
|
|
* |
15 |
|
|
* You should have received a copy of the GNU General Public License |
16 |
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>. |
17 |
|
|
* |
18 |
|
|
* Author: Felipe Borges <feborges@redhat.com> |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#pragma once |
22 |
|
|
|
23 |
|
|
#include <gtk/gtk.h> |
24 |
|
|
#include <glib-object.h> |
25 |
|
|
|
26 |
|
|
#include "pp-utils.h" |
27 |
|
|
|
28 |
|
|
G_BEGIN_DECLS |
29 |
|
|
|
30 |
|
✗ |
G_DECLARE_FINAL_TYPE (PpJob, pp_job, PP, JOB, GObject) |
31 |
|
|
|
32 |
|
|
PpJob *pp_job_new (gint id, |
33 |
|
|
const gchar *title, |
34 |
|
|
gint state, |
35 |
|
|
gint priority, |
36 |
|
|
GStrv auth_info_required); |
37 |
|
|
|
38 |
|
|
const gchar *pp_job_get_title (PpJob *job); |
39 |
|
|
|
40 |
|
|
gint pp_job_get_state (PpJob *job); |
41 |
|
|
|
42 |
|
|
gboolean pp_job_priority_get_sensitive (PpJob *job); |
43 |
|
|
|
44 |
|
|
void pp_job_priority_set_sensitive (PpJob *job, |
45 |
|
|
gboolean sensitive); |
46 |
|
|
|
47 |
|
|
gint pp_job_get_priority (PpJob *job); |
48 |
|
|
|
49 |
|
|
void pp_job_set_priority (PpJob *job, |
50 |
|
|
gint priority); |
51 |
|
|
|
52 |
|
|
GStrv pp_job_get_auth_info_required (PpJob *job); |
53 |
|
|
|
54 |
|
|
void pp_job_set_hold_until_async (PpJob *job, |
55 |
|
|
const gchar *job_hold_until); |
56 |
|
|
|
57 |
|
|
void pp_job_cancel_purge_async (PpJob *job, |
58 |
|
|
gboolean job_purge); |
59 |
|
|
|
60 |
|
|
void pp_job_get_attributes_async (PpJob *job, |
61 |
|
|
gchar **attributes_names, |
62 |
|
|
GCancellable *cancellable, |
63 |
|
|
GAsyncReadyCallback callback, |
64 |
|
|
gpointer user_data); |
65 |
|
|
|
66 |
|
|
GVariant *pp_job_get_attributes_finish (PpJob *job, |
67 |
|
|
GAsyncResult *result, |
68 |
|
|
GError **error); |
69 |
|
|
|
70 |
|
|
void pp_job_authenticate_async (PpJob *job, |
71 |
|
|
gchar **auth_info, |
72 |
|
|
GCancellable *cancellable, |
73 |
|
|
GAsyncReadyCallback callback, |
74 |
|
|
gpointer user_data); |
75 |
|
|
|
76 |
|
|
gboolean pp_job_authenticate_finish (PpJob *job, |
77 |
|
|
GAsyncResult *result, |
78 |
|
|
GError **error); |
79 |
|
|
|
80 |
|
|
void pp_job_set_priority_async (PpJob *job, |
81 |
|
|
gint priority, |
82 |
|
|
GCancellable *cancellable, |
83 |
|
|
GAsyncReadyCallback callback, |
84 |
|
|
gpointer user_data); |
85 |
|
|
|
86 |
|
|
gboolean pp_job_set_priority_finish (PpJob *job, |
87 |
|
|
GAsyncResult *result, |
88 |
|
|
GError **error); |
89 |
|
|
|
90 |
|
|
G_END_DECLS |
91 |
|
|
|