diff options
Diffstat (limited to 'lib/gs-plugin-job.h')
-rw-r--r-- | lib/gs-plugin-job.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/gs-plugin-job.h b/lib/gs-plugin-job.h new file mode 100644 index 0000000..885be1c --- /dev/null +++ b/lib/gs-plugin-job.h @@ -0,0 +1,58 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * vi:set noexpandtab tabstop=8 shiftwidth=8: + * + * Copyright (C) 2017-2018 Richard Hughes <richard@hughsie.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#pragma once + +#include <glib-object.h> + +#include "gs-app-list-private.h" +#include "gs-category.h" +#include "gs-plugin-types.h" + +G_BEGIN_DECLS + +#define GS_TYPE_PLUGIN_JOB (gs_plugin_job_get_type ()) + +G_DECLARE_FINAL_TYPE (GsPluginJob, gs_plugin_job, GS, PLUGIN_JOB, GObject) + +void gs_plugin_job_set_refine_flags (GsPluginJob *self, + GsPluginRefineFlags refine_flags); +void gs_plugin_job_set_filter_flags (GsPluginJob *self, + GsPluginRefineFlags filter_flags); +void gs_plugin_job_set_dedupe_flags (GsPluginJob *self, + GsAppListFilterFlags dedupe_flags); +void gs_plugin_job_set_interactive (GsPluginJob *self, + gboolean interactive); +void gs_plugin_job_set_max_results (GsPluginJob *self, + guint max_results); +void gs_plugin_job_set_timeout (GsPluginJob *self, + guint timeout); +void gs_plugin_job_set_age (GsPluginJob *self, + guint64 age); +void gs_plugin_job_set_sort_func (GsPluginJob *self, + GsAppListSortFunc sort_func); +void gs_plugin_job_set_sort_func_data (GsPluginJob *self, + gpointer sort_func_data); +void gs_plugin_job_set_search (GsPluginJob *self, + const gchar *search); +void gs_plugin_job_set_app (GsPluginJob *self, + GsApp *app); +void gs_plugin_job_set_list (GsPluginJob *self, + GsAppList *list); +void gs_plugin_job_set_file (GsPluginJob *self, + GFile *file); +void gs_plugin_job_set_plugin (GsPluginJob *self, + GsPlugin *plugin); +void gs_plugin_job_set_category (GsPluginJob *self, + GsCategory *category); +void gs_plugin_job_set_review (GsPluginJob *self, + AsReview *review); + +#define gs_plugin_job_newv(a,...) GS_PLUGIN_JOB(g_object_new(GS_TYPE_PLUGIN_JOB, "action", a, __VA_ARGS__)) + +G_END_DECLS |