summaryrefslogtreecommitdiffstats
path: root/plugins/packagekit/gs-packagekit-helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/packagekit/gs-packagekit-helper.h')
-rw-r--r--plugins/packagekit/gs-packagekit-helper.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/packagekit/gs-packagekit-helper.h b/plugins/packagekit/gs-packagekit-helper.h
new file mode 100644
index 0000000..594d0c0
--- /dev/null
+++ b/plugins/packagekit/gs-packagekit-helper.h
@@ -0,0 +1,37 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ * vi:set noexpandtab tabstop=8 shiftwidth=8:
+ *
+ * Copyright (C) 2016-2018 Richard Hughes <richard@hughsie.com>
+ * Copyright (C) 2019 Kalev Lember <klember@redhat.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#pragma once
+
+#include <glib-object.h>
+#include <gnome-software.h>
+#include <packagekit-glib2/packagekit.h>
+
+G_BEGIN_DECLS
+
+#define GS_TYPE_PACKAGEKIT_HELPER (gs_packagekit_helper_get_type ())
+
+G_DECLARE_FINAL_TYPE (GsPackagekitHelper, gs_packagekit_helper, GS, PACKAGEKIT_HELPER, GObject)
+
+GsPackagekitHelper *gs_packagekit_helper_new (GsPlugin *plugin);
+GsPlugin *gs_packagekit_helper_get_plugin (GsPackagekitHelper *self);
+void gs_packagekit_helper_add_app (GsPackagekitHelper *self,
+ GsApp *app);
+void gs_packagekit_helper_set_progress_app (GsPackagekitHelper *self,
+ GsApp *progress_app);
+void gs_packagekit_helper_set_progress_list (GsPackagekitHelper *self,
+ GsAppList *progress_list);
+GsApp *gs_packagekit_helper_get_app_by_id (GsPackagekitHelper *self,
+ const gchar *package_id);
+void gs_packagekit_helper_cb (PkProgress *progress,
+ PkProgressType type,
+ gpointer user_data);
+
+
+G_END_DECLS