Debian Codegraph @

src/libsysprof/sysprof-document-task.h

raw
1 /*
2 * sysprof-document-task.h
3 *
4 * Copyright 2024 Christian Hergert <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * SPDX-License-Identifier: GPL-3.0-or-later
20 */
21
22 #pragma once
23
24 #include <glib-object.h>
25
26 #include "sysprof-version-macros.h"
27
28 G_BEGIN_DECLS
29
30 #define SYSPROF_TYPE_DOCUMENT_TASK (sysprof_document_task_get_type())
31
32 SYSPROF_AVAILABLE_IN_48
33 G_DECLARE_DERIVABLE_TYPE (SysprofDocumentTask, sysprof_document_task, SYSPROF, DOCUMENT_TASK, GObject)
34
35 SYSPROF_AVAILABLE_IN_48
36 double sysprof_document_task_get_progress (SysprofDocumentTask *self);
37 SYSPROF_AVAILABLE_IN_48
38 char *sysprof_document_task_dup_message (SysprofDocumentTask *self);
39 SYSPROF_AVAILABLE_IN_48
40 char *sysprof_document_task_dup_title (SysprofDocumentTask *self);
41 SYSPROF_AVAILABLE_IN_48
42 gboolean sysprof_document_task_is_cancelled (SysprofDocumentTask *self);
43 SYSPROF_AVAILABLE_IN_48
44 void sysprof_document_task_cancel (SysprofDocumentTask *self);
45
46 G_END_DECLS