1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
3
* Copyright (C) 2013 Richard Hughes <richard@hughsie.com>
5
* Licensed under the GNU General Public License Version 2
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25
#include <glib-object.h>
29
#include "gs-plugin-loader.h"
33
#define GS_TYPE_PAGE (gs_page_get_type ())
34
#define GS_PAGE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GS_TYPE_PAGE, GsPage))
35
#define GS_PAGE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GS_TYPE_PAGE, GsPageClass))
36
#define GS_IS_PAGE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GS_TYPE_PAGE))
37
#define GS_IS_PAGE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GS_TYPE_PAGE))
38
#define GS_PAGE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GS_TYPE_PAGE, GsPageClass))
40
typedef struct _GsPage GsPage;
41
typedef struct _GsPageClass GsPageClass;
42
typedef struct _GsPagePrivate GsPagePrivate;
46
GtkBinClass parent_class;
48
void (*app_installed) (GsPage *page,
50
void (*app_removed) (GsPage *page,
59
GType gs_page_get_type (void);
60
GsPage *gs_page_new (void);
61
void gs_page_install_app (GsPage *page,
63
void gs_page_remove_app (GsPage *page,
65
void gs_page_setup (GsPage *page,
67
GsPluginLoader *plugin_loader,
68
GCancellable *cancellable);
72
#endif /* GS_PAGE_H */
74
/* vim: set noexpandtab: */