1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2014 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASB_APP_H
#define ASB_APP_H
#include <stdarg.h>
#include <glib-object.h>
#include <appstream-glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include "asb-package.h"
G_BEGIN_DECLS
#define ASB_TYPE_APP (asb_app_get_type ())
G_DECLARE_DERIVABLE_TYPE (AsbApp, asb_app, ASB, APP, GObject)
struct _AsbAppClass
{
AsAppClass parent_class;
/*< private >*/
void (*_asb_reserved1) (void);
void (*_asb_reserved2) (void);
void (*_asb_reserved3) (void);
void (*_asb_reserved4) (void);
void (*_asb_reserved5) (void);
void (*_asb_reserved6) (void);
void (*_asb_reserved7) (void);
void (*_asb_reserved8) (void);
};
/**
* AsbAppSaveFlags:
* @ASB_APP_SAVE_FLAG_NONE: Nothing to do
* @ASB_APP_SAVE_FLAG_ICONS: Save icons to disk
* @ASB_APP_SAVE_FLAG_SCREENSHOTS: Save screenshots to disk
*
* The flags to use when saving resources.
**/
typedef enum {
ASB_APP_SAVE_FLAG_NONE,
ASB_APP_SAVE_FLAG_ICONS = 1, /* Since: 0.3.2 */
ASB_APP_SAVE_FLAG_SCREENSHOTS = 2, /* Since: 0.3.2 */
/*< private >*/
ASB_APP_SAVE_FLAG_LAST,
} AsbAppSaveFlags;
AsbApp *asb_app_new (AsbPackage *pkg,
const gchar *id);
void asb_app_set_hidpi_enabled (AsbApp *app,
gboolean hidpi_enabled);
void asb_app_set_package (AsbApp *app,
AsbPackage *pkg);
AsbPackage *asb_app_get_package (AsbApp *app);
gboolean asb_app_save_resources (AsbApp *app,
AsbAppSaveFlags save_flags,
GError **error);
G_END_DECLS
#endif /* ASB_APP_H */
|