Branch data Line data Source code
1 : : /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
2 : : *
3 : : * Copyright © 2018, 2019, 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 : : * - Georges Basile Stavracas Neto <georges.stavracas@gmail.com>
22 : : * - Philip Withnall <withnall@endlessm.com>
23 : : */
24 : :
25 : : #pragma once
26 : :
27 : : #include <gio/gio.h>
28 : : #include <glib.h>
29 : : #include <glib-object.h>
30 : : #include <gtk/gtk.h>
31 : : #include <adwaita.h>
32 : : #include <libmalcontent/malcontent.h>
33 : :
34 : :
35 : : G_BEGIN_DECLS
36 : :
37 : : #define MCT_TYPE_USER_CONTROLS (mct_user_controls_get_type())
38 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctUserControls, mct_user_controls, MCT, USER_CONTROLS, AdwBin)
# # ]
39 : :
40 : : MctUser *mct_user_controls_get_user (MctUserControls *self);
41 : : void mct_user_controls_set_user (MctUserControls *self,
42 : : MctUser *user);
43 : :
44 : : GPermission *mct_user_controls_get_permission (MctUserControls *self);
45 : : void mct_user_controls_set_permission (MctUserControls *self,
46 : : GPermission *permission);
47 : :
48 : : MctAppFilter *mct_user_controls_get_app_filter (MctUserControls *self);
49 : : void mct_user_controls_set_app_filter (MctUserControls *self,
50 : : MctAppFilter *app_filter);
51 : :
52 : : MctUserType mct_user_controls_get_user_account_type (MctUserControls *self);
53 : : void mct_user_controls_set_user_account_type (MctUserControls *self,
54 : : MctUserType user_account_type);
55 : :
56 : : const gchar *mct_user_controls_get_user_locale (MctUserControls *self);
57 : : void mct_user_controls_set_user_locale (MctUserControls *self,
58 : : const gchar *user_locale);
59 : :
60 : : const gchar *mct_user_controls_get_user_display_name (MctUserControls *self);
61 : : void mct_user_controls_set_user_display_name (MctUserControls *self,
62 : : const gchar *user_display_name);
63 : :
64 : : void mct_user_controls_set_description (MctUserControls *self,
65 : : const gchar *description);
66 : :
67 : : void mct_user_controls_build_app_filter (MctUserControls *self,
68 : : MctAppFilterBuilder *builder);
69 : :
70 : : G_END_DECLS
|