GCC Code Coverage Report


Directory: ./
File: panels/keyboard/cc-input-source.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 6 0.0%
Branches: 0 7 0.0%

Line Branch Exec Source
1 /*
2 * Copyright © 2018 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * 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, see <http://www.gnu.org/licenses/>.
16 */
17
18 #pragma once
19
20 #include <glib-object.h>
21
22 G_BEGIN_DECLS
23
24 #define CC_TYPE_INPUT_SOURCE (cc_input_source_get_type ())
25 G_DECLARE_DERIVABLE_TYPE (CcInputSource, cc_input_source, CC, INPUT_SOURCE, GObject)
26
27 struct _CcInputSourceClass
28 {
29 GObjectClass parent_class;
30
31 gchar* (*get_label) (CcInputSource *source);
32 gboolean (*matches) (CcInputSource *source,
33 CcInputSource *source2);
34 const gchar* (*get_layout) (CcInputSource *source);
35 const gchar* (*get_layout_variant) (CcInputSource *source);
36 };
37
38 void cc_input_source_emit_label_changed (CcInputSource *source);
39
40 gchar *cc_input_source_get_label (CcInputSource *source);
41
42 gboolean cc_input_source_matches (CcInputSource *source,
43 CcInputSource *source2);
44
45 const gchar *cc_input_source_get_layout (CcInputSource *source);
46
47 const gchar *cc_input_source_get_layout_variant (CcInputSource *source);
48
49 G_END_DECLS
50