static void ce_page_ethernet_class_init (CEPageEthernetClass *ethernet_class) { GObjectClass *object_class = G_OBJECT_CLASS (ethernet_class); CEPageClass *parent_class = CE_PAGE_CLASS (ethernet_class); g_type_class_add_private (object_class, sizeof (CEPageEthernetPrivate)); /* virtual methods */ parent_class->validate = validate; }
static void ce_page_infiniband_class_init (CEPageInfinibandClass *infiniband_class) { GObjectClass *object_class = G_OBJECT_CLASS (infiniband_class); CEPageClass *parent_class = CE_PAGE_CLASS (infiniband_class); g_type_class_add_private (object_class, sizeof (CEPageInfinibandPrivate)); /* virtual methods */ parent_class->validate = validate; }
static void ce_page_wireless_security_class_init (CEPageWirelessSecurityClass *wireless_security_class) { GObjectClass *object_class = G_OBJECT_CLASS (wireless_security_class); CEPageClass *parent_class = CE_PAGE_CLASS (wireless_security_class); /* virtual methods */ object_class->dispose = dispose; parent_class->validate = validate; }
static void ce_page_wifi_class_init (CEPageWifiClass *wifi_class) { GObjectClass *object_class = G_OBJECT_CLASS (wifi_class); CEPageClass *parent_class = CE_PAGE_CLASS (wifi_class); g_type_class_add_private (object_class, sizeof (CEPageWifiPrivate)); /* virtual methods */ parent_class->ce_page_validate_v = ce_page_validate_v; }
static void ce_page_bridge_port_class_init (CEPageBridgePortClass *bridge_port_class) { GObjectClass *object_class = G_OBJECT_CLASS (bridge_port_class); CEPageClass *parent_class = CE_PAGE_CLASS (bridge_port_class); g_type_class_add_private (object_class, sizeof (CEPageBridgePortPrivate)); /* virtual methods */ parent_class->ce_page_validate_v = ce_page_validate_v; }
static void ce_page_wired_class_init (CEPageWiredClass *wired_class) { GObjectClass *object_class = G_OBJECT_CLASS (wired_class); CEPageClass *parent_class = CE_PAGE_CLASS (wired_class); g_type_class_add_private (object_class, sizeof (CEPageWiredPrivate)); /* virtual methods */ parent_class->validate = validate; parent_class->get_mac_list = get_mac_list; }
static void ce_page_mobile_class_init (CEPageMobileClass *mobile_class) { GObjectClass *object_class = G_OBJECT_CLASS (mobile_class); CEPageClass *parent_class = CE_PAGE_CLASS (mobile_class); g_type_class_add_private (object_class, sizeof (CEPageMobilePrivate)); /* virtual methods */ parent_class->validate = validate; object_class->dispose = dispose; }
static void ce_page_vlan_class_init (CEPageVlanClass *vlan_class) { GObjectClass *object_class = G_OBJECT_CLASS (vlan_class); CEPageClass *parent_class = CE_PAGE_CLASS (vlan_class); g_type_class_add_private (object_class, sizeof (CEPageVlanPrivate)); /* virtual methods */ object_class->finalize = finalize; parent_class->validate = validate; }
static gboolean validate (CEPage *page, NMConnection *connection, GError **error) { CEPageBond *self = CE_PAGE_BOND (page); CEPageBondPrivate *priv = CE_PAGE_BOND_GET_PRIVATE (self); if (!CE_PAGE_CLASS (ce_page_bond_parent_class)->validate (page, connection, error)) return FALSE; ui_to_setting (self); return nm_setting_verify (NM_SETTING (priv->setting), NULL, error); }
static void ce_page_ip4_class_init (CEPageIP4Class *ip4_class) { GObjectClass *object_class = G_OBJECT_CLASS (ip4_class); CEPageClass *parent_class = CE_PAGE_CLASS (ip4_class); g_type_class_add_private (object_class, sizeof (CEPageIP4Private)); /* virtual methods */ parent_class->ce_page_validate_v = ce_page_validate_v; parent_class->inter_page_change = inter_page_change; object_class->dispose = dispose; }
static void ce_page_vpn_class_init (CEPageVpnClass *vpn_class) { GObjectClass *object_class = G_OBJECT_CLASS (vpn_class); CEPageClass *parent_class = CE_PAGE_CLASS (vpn_class); g_type_class_add_private (object_class, sizeof (CEPageVpnPrivate)); /* virtual methods */ object_class->dispose = dispose; parent_class->ce_page_validate_v = ce_page_validate_v; }
static void ce_page_bond_class_init (CEPageBondClass *bond_class) { GObjectClass *object_class = G_OBJECT_CLASS (bond_class); CEPageClass *parent_class = CE_PAGE_CLASS (bond_class); CEPageMasterClass *master_class = CE_PAGE_MASTER_CLASS (bond_class); g_type_class_add_private (object_class, sizeof (CEPageBondPrivate)); /* virtual methods */ parent_class->ce_page_validate_v = ce_page_validate_v; master_class->connection_added = connection_added; master_class->connection_removed = connection_removed; master_class->add_slave = add_slave; }
static gboolean ce_page_validate_v (CEPage *page, NMConnection *connection, GError **error) { CEPageBond *self = CE_PAGE_BOND (page); CEPageBondPrivate *priv = CE_PAGE_BOND_GET_PRIVATE (self); if (!CE_PAGE_CLASS (ce_page_bond_parent_class)->ce_page_validate_v (page, connection, error)) return FALSE; if (!ce_page_interface_name_valid (gtk_entry_get_text (priv->primary), _("primary"), error)) return FALSE; ui_to_setting (self); return nm_setting_verify (NM_SETTING (priv->setting), connection, error); }