GCC Code Coverage Report


Directory: ./
File: panels/network/cc-net-proxy-page.h
Date: 2024-05-03 09:46:52
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 2 50.0%
Branches: 3 6 50.0%

Line Branch Exec Source
1 /* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * Copyright (C) 2011-2012 Richard Hughes <richard@hughsie.com>
4 * Copyright 2022 Mohammed Sadiq <sadiq@sadiqpk.org>
5 * Copyright 2022 Purism SPC
6 *
7 * Licensed under the GNU General Public License Version 2
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 *
23 * SPDX-License-Identifier: GPL-2.0-or-later
24 */
25
26 #pragma once
27
28 #include <adwaita.h>
29
30 G_BEGIN_DECLS
31
32 #define CC_TYPE_NET_PROXY_PAGE (cc_net_proxy_page_get_type ())
33
34
3/6
✗ Branch 1 not taken.
✓ Branch 2 taken 110 times.
✓ Branch 3 taken 110 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 110 times.
✗ Branch 6 not taken.
220 G_DECLARE_FINAL_TYPE (CcNetProxyPage, cc_net_proxy_page, CC, NET_PROXY_PAGE, AdwNavigationPage)
35
36 gboolean cc_net_proxy_page_get_enabled (CcNetProxyPage *self);
37 void cc_net_proxy_page_set_enabled (CcNetProxyPage *self,
38 gboolean enable);
39 gboolean cc_net_proxy_page_has_modified (CcNetProxyPage *self);
40 void cc_net_proxy_page_save_changes (CcNetProxyPage *self);
41 void cc_net_proxy_page_cancel_changes (CcNetProxyPage *self);
42
43 G_END_DECLS
44