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 : : * This program is free software; you can redistribute it and/or modify 6 : : * it under the terms of the GNU General Public License as published by 7 : : * the Free Software Foundation; either version 2 of the License, or 8 : : * (at your option) any later version. 9 : : * 10 : : * This program is distributed in the hope that it will be useful, 11 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 : : * GNU General Public License for more details. 14 : : * 15 : : * You should have received a copy of the GNU General Public License 16 : : * along with this program; if not, see <http://www.gnu.org/licenses/>. 17 : : * 18 : : * Authors: 19 : : * - Georges Basile Stavracas Neto <georges.stavracas@gmail.com> 20 : : * - Philip Withnall <withnall@endlessm.com> 21 : : */ 22 : : 23 : : #pragma once 24 : : 25 : : #include <act/act.h> 26 : : #include <gio/gio.h> 27 : : #include <glib.h> 28 : : #include <glib-object.h> 29 : : #include <gtk/gtk.h> 30 : : #include <adwaita.h> 31 : : #include <libmalcontent/malcontent.h> 32 : : 33 : : 34 : : G_BEGIN_DECLS 35 : : 36 : : #define MCT_TYPE_USER_CONTROLS (mct_user_controls_get_type()) 37 [ # # # # : 0 : G_DECLARE_FINAL_TYPE (MctUserControls, mct_user_controls, MCT, USER_CONTROLS, AdwBin) # # ] 38 : : 39 : : ActUser *mct_user_controls_get_user (MctUserControls *self); 40 : : void mct_user_controls_set_user (MctUserControls *self, 41 : : ActUser *user); 42 : : 43 : : GPermission *mct_user_controls_get_permission (MctUserControls *self); 44 : : void mct_user_controls_set_permission (MctUserControls *self, 45 : : GPermission *permission); 46 : : 47 : : MctAppFilter *mct_user_controls_get_app_filter (MctUserControls *self); 48 : : void mct_user_controls_set_app_filter (MctUserControls *self, 49 : : MctAppFilter *app_filter); 50 : : 51 : : ActUserAccountType mct_user_controls_get_user_account_type (MctUserControls *self); 52 : : void mct_user_controls_set_user_account_type (MctUserControls *self, 53 : : ActUserAccountType user_account_type); 54 : : 55 : : const gchar *mct_user_controls_get_user_locale (MctUserControls *self); 56 : : void mct_user_controls_set_user_locale (MctUserControls *self, 57 : : const gchar *user_locale); 58 : : 59 : : const gchar *mct_user_controls_get_user_display_name (MctUserControls *self); 60 : : void mct_user_controls_set_user_display_name (MctUserControls *self, 61 : : const gchar *user_display_name); 62 : : 63 : : void mct_user_controls_set_description (MctUserControls *self, 64 : : const gchar *description); 65 : : 66 : : void mct_user_controls_build_app_filter (MctUserControls *self, 67 : : MctAppFilterBuilder *builder); 68 : : 69 : : G_END_DECLS