summaryrefslogtreecommitdiffstats
path: root/src/gs-page.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:18:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 15:18:46 +0000
commit56294d30a82ec2da6f9ce399740c1ef65a9ddef4 (patch)
treebbe3823e41495d026ba8edc6eeaef166edb7e2a2 /src/gs-page.h
parentInitial commit. (diff)
downloadgnome-software-56294d30a82ec2da6f9ce399740c1ef65a9ddef4.tar.xz
gnome-software-56294d30a82ec2da6f9ce399740c1ef65a9ddef4.zip
Adding upstream version 3.38.1.upstream/3.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/gs-page.h')
-rw-r--r--src/gs-page.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/gs-page.h b/src/gs-page.h
new file mode 100644
index 0000000..9fc5ad8
--- /dev/null
+++ b/src/gs-page.h
@@ -0,0 +1,79 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ * vi:set noexpandtab tabstop=8 shiftwidth=8:
+ *
+ * Copyright (C) 2013 Richard Hughes <richard@hughsie.com>
+ * Copyright (C) 2015-2016 Kalev Lember <klember@redhat.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#pragma once
+
+#include "gs-shell.h"
+
+G_BEGIN_DECLS
+
+#define GS_TYPE_PAGE (gs_page_get_type ())
+
+G_DECLARE_DERIVABLE_TYPE (GsPage, gs_page, GS, PAGE, GtkBin)
+
+struct _GsPageClass
+{
+ GtkBinClass parent_class;
+
+ void (*app_installed) (GsPage *page,
+ GsApp *app);
+ void (*app_removed) (GsPage *page,
+ GsApp *app);
+ void (*switch_to) (GsPage *page,
+ gboolean scroll_up);
+ void (*switch_from) (GsPage *page);
+ void (*reload) (GsPage *page);
+ gboolean (*setup) (GsPage *page,
+ GsShell *shell,
+ GsPluginLoader *plugin_loader,
+ GtkBuilder *builder,
+ GCancellable *cancellable,
+ GError **error);
+};
+
+GsPage *gs_page_new (void);
+GsShell *gs_page_get_shell (GsPage *page);
+GtkWidget *gs_page_get_header_start_widget (GsPage *page);
+void gs_page_set_header_start_widget (GsPage *page,
+ GtkWidget *widget);
+GtkWidget *gs_page_get_header_end_widget (GsPage *page);
+void gs_page_set_header_end_widget (GsPage *page,
+ GtkWidget *widget);
+void gs_page_install_app (GsPage *page,
+ GsApp *app,
+ GsShellInteraction interaction,
+ GCancellable *cancellable);
+void gs_page_remove_app (GsPage *page,
+ GsApp *app,
+ GCancellable *cancellable);
+void gs_page_update_app (GsPage *page,
+ GsApp *app,
+ GCancellable *cancellable);
+void gs_page_launch_app (GsPage *page,
+ GsApp *app,
+ GCancellable *cancellable);
+void gs_page_shortcut_add (GsPage *page,
+ GsApp *app,
+ GCancellable *cancellable);
+void gs_page_shortcut_remove (GsPage *page,
+ GsApp *app,
+ GCancellable *cancellable);
+void gs_page_switch_to (GsPage *page,
+ gboolean scroll_up);
+void gs_page_switch_from (GsPage *page);
+void gs_page_reload (GsPage *page);
+gboolean gs_page_setup (GsPage *page,
+ GsShell *shell,
+ GsPluginLoader *plugin_loader,
+ GtkBuilder *builder,
+ GCancellable *cancellable,
+ GError **error);
+gboolean gs_page_is_active (GsPage *page);
+
+G_END_DECLS