-
-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathbz-entry-group.h
More file actions
143 lines (103 loc) · 3.43 KB
/
bz-entry-group.h
File metadata and controls
143 lines (103 loc) · 3.43 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* bz-entry-group.h
*
* Copyright 2025 Adam Masciola
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#pragma once
#include "bz-application-map-factory.h"
#include "bz-entry.h"
#include "bz-result.h"
G_BEGIN_DECLS
#define BZ_TYPE_ENTRY_GROUP (bz_entry_group_get_type ())
G_DECLARE_FINAL_TYPE (BzEntryGroup, bz_entry_group, BZ, ENTRY_GROUP, GObject)
BzEntryGroup *
bz_entry_group_new (BzApplicationMapFactory *factory);
/* Only necessary if reading props from another thread, writing is always
prohibited */
GMutexLocker *
bz_entry_group_lock (BzEntryGroup *self);
GListModel *
bz_entry_group_get_model (BzEntryGroup *self);
GListModel *
bz_entry_group_get_installed_versions (BzEntryGroup *self);
const char *
bz_entry_group_get_id (BzEntryGroup *self);
const char *
bz_entry_group_get_title (BzEntryGroup *self);
const char *
bz_entry_group_get_developer (BzEntryGroup *self);
const char *
bz_entry_group_get_description (BzEntryGroup *self);
GIcon *
bz_entry_group_get_mini_icon (BzEntryGroup *self);
gboolean
bz_entry_group_get_is_floss (BzEntryGroup *self);
const char *
bz_entry_group_get_light_accent_color (BzEntryGroup *self);
const char *
bz_entry_group_get_dark_accent_color (BzEntryGroup *self);
gboolean
bz_entry_group_get_is_flathub (BzEntryGroup *self);
gboolean
bz_entry_group_get_is_verified (BzEntryGroup *self);
const char *
bz_entry_group_get_search_tokens (BzEntryGroup *self);
const char *
bz_entry_group_get_eol (BzEntryGroup *self);
guint64
bz_entry_group_get_installed_size (BzEntryGroup *self);
int
bz_entry_group_get_n_addons (BzEntryGroup *self);
const char *
bz_entry_group_get_donation_url (BzEntryGroup *self);
GListModel *
bz_entry_group_get_categories (BzEntryGroup *self);
int
bz_entry_group_get_content_age_rating (BzEntryGroup *self);
BzResult *
bz_entry_group_dup_ui_entry (BzEntryGroup *self);
char *
bz_entry_group_dup_ui_entry_id (BzEntryGroup *self);
int
bz_entry_group_get_installable (BzEntryGroup *self);
int
bz_entry_group_get_updatable (BzEntryGroup *self);
int
bz_entry_group_get_removable (BzEntryGroup *self);
int
bz_entry_group_get_installable_and_available (BzEntryGroup *self);
int
bz_entry_group_get_updatable_and_available (BzEntryGroup *self);
int
bz_entry_group_get_removable_and_available (BzEntryGroup *self);
gboolean
bz_entry_group_is_searchable (BzEntryGroup *self);
guint64
bz_entry_group_get_user_data_size (BzEntryGroup *self);
void
bz_entry_group_reap_user_data (BzEntryGroup *self);
void
bz_entry_group_add (BzEntryGroup *self,
BzEntry *entry,
BzEntry *runtime,
gboolean ignore_eol);
void
bz_entry_group_connect_living (BzEntryGroup *self,
BzEntry *entry);
DexFuture *
bz_entry_group_dup_all_into_store (BzEntryGroup *self);
G_END_DECLS