Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 : : *
3 : : * Copyright © 2020 Endless Mobile, Inc.
4 : : *
5 : : * SPDX-License-Identifier: GPL-2.0-or-later
6 : : *
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.
11 : : *
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.
16 : : *
17 : : * You should have received a copy of the GNU General Public License
18 : : * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 : : *
20 : : * Authors:
21 : : * - Philip Withnall <withnall@endlessm.com>
22 : : */
23 : :
24 : : #pragma once
25 : :
26 : : #include <glib.h>
27 : : #include <glib-object.h>
28 : : #include <gtk/gtk.h>
29 : : #include <libmalcontent/app-filter.h>
30 : :
31 : :
32 : : G_BEGIN_DECLS
33 : :
34 : : #define MCT_TYPE_RESTRICT_APPLICATIONS_SELECTOR (mct_restrict_applications_selector_get_type ())
35 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctRestrictApplicationsSelector, mct_restrict_applications_selector, MCT, RESTRICT_APPLICATIONS_SELECTOR, GtkBox)
# # ]
36 : :
37 : : MctRestrictApplicationsSelector *mct_restrict_applications_selector_new (MctAppFilter *app_filter);
38 : :
39 : : MctAppFilter *mct_restrict_applications_selector_get_app_filter (MctRestrictApplicationsSelector *self);
40 : : void mct_restrict_applications_selector_set_app_filter (MctRestrictApplicationsSelector *self,
41 : : MctAppFilter *app_filter);
42 : :
43 : : void mct_restrict_applications_selector_build_app_filter (MctRestrictApplicationsSelector *self,
44 : : MctAppFilterBuilder *builder);
45 : :
46 : : const gchar *mct_restrict_applications_selector_get_search (MctRestrictApplicationsSelector *self);
47 : : void mct_restrict_applications_selector_set_search (MctRestrictApplicationsSelector *self,
48 : : const gchar *search);
49 : :
50 : : G_END_DECLS
|