GCC Code Coverage Report


Directory: ./
File: panels/display/cc-display-config-manager.h
Date: 2024-05-03 09:46:52
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 3 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*
2 * Copyright (C) 2016 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 */
19
20 #pragma once
21
22 #include <glib-object.h>
23
24 #include "cc-display-config.h"
25
26 G_BEGIN_DECLS
27
28 #define CC_TYPE_DISPLAY_CONFIG_MANAGER (cc_display_config_manager_get_type ())
29 G_DECLARE_DERIVABLE_TYPE (CcDisplayConfigManager, cc_display_config_manager,
30 CC, DISPLAY_CONFIG_MANAGER, GObject)
31
32 struct _CcDisplayConfigManagerClass
33 {
34 GObjectClass parent_class;
35
36 CcDisplayConfig * (*get_current) (CcDisplayConfigManager *self);
37 gboolean (* get_apply_allowed) (CcDisplayConfigManager *self);
38 gboolean (* get_night_light_supported) (CcDisplayConfigManager *self);
39 };
40
41 CcDisplayConfig * cc_display_config_manager_get_current (CcDisplayConfigManager *self);
42
43 gboolean cc_display_config_manager_get_apply_allowed (CcDisplayConfigManager *self);
44
45 gboolean cc_display_config_manager_get_night_light_supported (CcDisplayConfigManager *self);
46
47 void _cc_display_config_manager_emit_changed (CcDisplayConfigManager *self);
48
49 G_END_DECLS
50