Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright © 2018 Red Hat Inc. |
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 <adwaita.h> |
21 |
|
|
#include <NetworkManager.h> |
22 |
|
|
|
23 |
|
|
G_BEGIN_DECLS |
24 |
|
|
|
25 |
|
|
typedef struct _CcWifiConnectionRow CcWifiConnectionRow; |
26 |
|
|
|
27 |
|
|
#define CC_TYPE_WIFI_CONNECTION_ROW (cc_wifi_connection_row_get_type ()) |
28 |
|
✗ |
G_DECLARE_FINAL_TYPE (CcWifiConnectionRow, cc_wifi_connection_row, CC, WIFI_CONNECTION_ROW, AdwActionRow) |
29 |
|
|
|
30 |
|
|
CcWifiConnectionRow *cc_wifi_connection_row_new (NMDeviceWifi *device, |
31 |
|
|
NMConnection *connection, |
32 |
|
|
GPtrArray *aps, |
33 |
|
|
gboolean checkable, |
34 |
|
|
gboolean known_connection, |
35 |
|
|
gboolean forgettable); |
36 |
|
|
|
37 |
|
|
gboolean cc_wifi_connection_row_get_checkable (CcWifiConnectionRow *row); |
38 |
|
|
gboolean cc_wifi_connection_row_get_checked (CcWifiConnectionRow *row); |
39 |
|
|
NMDeviceWifi *cc_wifi_connection_row_get_device (CcWifiConnectionRow *row); |
40 |
|
|
const GPtrArray *cc_wifi_connection_row_get_access_points (CcWifiConnectionRow *row); |
41 |
|
|
NMConnection *cc_wifi_connection_row_get_connection (CcWifiConnectionRow *row); |
42 |
|
|
gboolean cc_wifi_connection_row_get_forgettable (CcWifiConnectionRow *row); |
43 |
|
|
|
44 |
|
|
void cc_wifi_connection_row_set_checked (CcWifiConnectionRow *row, |
45 |
|
|
gboolean value); |
46 |
|
|
|
47 |
|
|
NMAccessPoint *cc_wifi_connection_row_best_access_point (CcWifiConnectionRow *row); |
48 |
|
|
void cc_wifi_connection_row_add_access_point (CcWifiConnectionRow *row, |
49 |
|
|
NMAccessPoint *ap); |
50 |
|
|
gboolean cc_wifi_connection_row_remove_access_point (CcWifiConnectionRow *row, |
51 |
|
|
NMAccessPoint *ap); |
52 |
|
|
gboolean cc_wifi_connection_row_has_access_point (CcWifiConnectionRow *row, |
53 |
|
|
NMAccessPoint *ap); |
54 |
|
|
|
55 |
|
|
void cc_wifi_connection_row_update (CcWifiConnectionRow *row); |
56 |
|
|
G_END_DECLS |
57 |
|
|
|