gnome-control-center/panels/network/wireless-security/wireless-security.h

92 lines
3.2 KiB
C
Raw Normal View History

/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
/* NetworkManager Applet -- allow user control over networking
*
* Dan Williams <dcbw@redhat.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Copyright 2007 - 2014 Red Hat, Inc.
*/
#pragma once
#include <gtk/gtk.h>
G_BEGIN_DECLS
G_DECLARE_DERIVABLE_TYPE (WirelessSecurity, wireless_security, WIRELESS, SECURITY, GObject)
struct _WirelessSecurityClass {
GObjectClass parent_class;
void (*add_to_size_group) (WirelessSecurity *sec, GtkSizeGroup *group);
void (*fill_connection) (WirelessSecurity *sec, NMConnection *connection);
gboolean (*validate) (WirelessSecurity *sec, GError **error);
gboolean (*adhoc_compatible) (WirelessSecurity *sec);
GtkWidget* (*get_widget) (WirelessSecurity *sec);
};
GtkWidget *wireless_security_get_widget (WirelessSecurity *sec);
gboolean wireless_security_validate (WirelessSecurity *sec, GError **error);
void wireless_security_add_to_size_group (WirelessSecurity *sec,
GtkSizeGroup *group);
void wireless_security_fill_connection (WirelessSecurity *sec,
NMConnection *connection);
gboolean wireless_security_adhoc_compatible (WirelessSecurity *sec);
void wireless_security_set_username (WirelessSecurity *sec, const gchar *username);
2019-10-03 21:07:25 +13:00
const gchar *wireless_security_get_username (WirelessSecurity *sec);
void wireless_security_set_password (WirelessSecurity *sec, const gchar *password);
2019-10-03 21:07:25 +13:00
const gchar *wireless_security_get_password (WirelessSecurity *sec);
void wireless_security_set_always_ask (WirelessSecurity *sec, gboolean always_ask);
2019-10-03 21:07:25 +13:00
gboolean wireless_security_get_always_ask (WirelessSecurity *sec);
void wireless_security_set_show_password (WirelessSecurity *sec, gboolean show_password);
2019-10-03 21:07:25 +13:00
gboolean wireless_security_get_show_password (WirelessSecurity *sec);
/* Below for internal use only */
void wireless_security_notify_changed (WirelessSecurity *sec);
void wireless_security_clear_ciphers (NMConnection *connection);
#define AUTH_NAME_COLUMN 0
#define AUTH_METHOD_COLUMN 1
void ws_802_1x_auth_combo_init (WirelessSecurity *sec,
GtkComboBox *combo,
NMConnection *connection,
gboolean is_editor,
gboolean secrets_only);
2019-11-08 16:17:58 +13:00
#include "eap-method.h"
2019-11-08 16:17:58 +13:00
EAPMethod *ws_802_1x_auth_combo_get_eap (GtkComboBox *combo);
void ws_802_1x_fill_connection (GtkComboBox *combo,
NMConnection *connection);
G_END_DECLS