mirror of https://github.com/cutefishos/settings
				
				
				
			Add Bluetooth options
							parent
							
								
									e5f683cf5f
								
							
						
					
					
						commit
						65d2ceca00
					
				@ -0,0 +1,76 @@
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (C) 2021 CutefishOS Team.
 | 
			
		||||
 *
 | 
			
		||||
 * Author:     revenmartin <revenmartin@gmail.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 3 of the License, or
 | 
			
		||||
 * 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, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
import QtQuick 2.12
 | 
			
		||||
import QtQuick.Controls 2.12
 | 
			
		||||
import QtQuick.Layouts 1.12
 | 
			
		||||
import FishUI 1.0 as FishUI
 | 
			
		||||
import Cutefish.Settings 1.0
 | 
			
		||||
import "../"
 | 
			
		||||
 | 
			
		||||
ItemPage {
 | 
			
		||||
    headerTitle: qsTr("VPN")
 | 
			
		||||
 | 
			
		||||
    property bool vpnConnected: false
 | 
			
		||||
 | 
			
		||||
    function switchVPN(enabled) {
 | 
			
		||||
        if (enabled) {
 | 
			
		||||
            vpnConnected = true
 | 
			
		||||
        } else {
 | 
			
		||||
            vpnConnected = false
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    Scrollable {
 | 
			
		||||
        anchors.fill: parent
 | 
			
		||||
        contentHeight: layout.implicitHeight
 | 
			
		||||
 | 
			
		||||
        ColumnLayout {
 | 
			
		||||
            id: layout
 | 
			
		||||
            anchors.fill: parent
 | 
			
		||||
 | 
			
		||||
            RoundedItem {
 | 
			
		||||
                id: mainItem
 | 
			
		||||
                spacing: FishUI.Units.largeSpacing
 | 
			
		||||
 | 
			
		||||
                RowLayout {
 | 
			
		||||
                    Label {
 | 
			
		||||
                        text: qsTr("VPN")
 | 
			
		||||
                        color: FishUI.Theme.disabledTextColor
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    Item {
 | 
			
		||||
                        Layout.fillWidth: true
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    Switch {
 | 
			
		||||
                        id: vpnSwitch
 | 
			
		||||
                        Layout.fillHeight: true
 | 
			
		||||
                        rightPadding: 0
 | 
			
		||||
                        onCheckedChanged: {}
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            Item {
 | 
			
		||||
                height: FishUI.Units.smallSpacing
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,76 @@
 | 
			
		||||
// SPDX-License-Identifier: GPL-2.0+
 | 
			
		||||
/* nm-l2tp-service - L2TP VPN integration with NetworkManager
 | 
			
		||||
 *
 | 
			
		||||
 * Dan Williams <dcbw@redhat.com>
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright 2008, 2014 Red Hat, Inc.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef NM_L2TP_SERVICE_DEFINES_H
 | 
			
		||||
#define NM_L2TP_SERVICE_DEFINES_H
 | 
			
		||||
 | 
			
		||||
#define NM_DBUS_SERVICE_L2TP    "org.freedesktop.NetworkManager.l2tp"
 | 
			
		||||
 | 
			
		||||
/* For the NM <-> VPN plugin service */
 | 
			
		||||
#define NM_DBUS_INTERFACE_L2TP  "org.freedesktop.NetworkManager.l2tp"
 | 
			
		||||
#define NM_DBUS_PATH_L2TP       "/org/freedesktop/NetworkManager/l2tp"
 | 
			
		||||
 | 
			
		||||
/* For the VPN plugin service <-> PPP plugin */
 | 
			
		||||
#define NM_DBUS_INTERFACE_L2TP_PPP  "org.freedesktop.NetworkManager.l2tp.ppp"
 | 
			
		||||
#define NM_DBUS_PATH_L2TP_PPP       "/org/freedesktop/NetworkManager/l2tp/ppp"
 | 
			
		||||
 | 
			
		||||
#define NM_L2TP_KEY_GATEWAY           "gateway"
 | 
			
		||||
#define NM_L2TP_KEY_USER_AUTH_TYPE    "user-auth-type"
 | 
			
		||||
#define NM_L2TP_KEY_USER              "user"
 | 
			
		||||
#define NM_L2TP_KEY_PASSWORD          "password"
 | 
			
		||||
#define NM_L2TP_KEY_DOMAIN            "domain"
 | 
			
		||||
#define NM_L2TP_KEY_USER_CA           "user-ca"
 | 
			
		||||
#define NM_L2TP_KEY_USER_CERT         "user-cert"
 | 
			
		||||
#define NM_L2TP_KEY_USER_KEY          "user-key"
 | 
			
		||||
#define NM_L2TP_KEY_USER_CERTPASS     "user-certpass"
 | 
			
		||||
#define NM_L2TP_KEY_MTU               "mtu"
 | 
			
		||||
#define NM_L2TP_KEY_MRU               "mru"
 | 
			
		||||
#define NM_L2TP_KEY_REFUSE_EAP        "refuse-eap"
 | 
			
		||||
#define NM_L2TP_KEY_REFUSE_PAP        "refuse-pap"
 | 
			
		||||
#define NM_L2TP_KEY_REFUSE_CHAP       "refuse-chap"
 | 
			
		||||
#define NM_L2TP_KEY_REFUSE_MSCHAP     "refuse-mschap"
 | 
			
		||||
#define NM_L2TP_KEY_REFUSE_MSCHAPV2   "refuse-mschapv2"
 | 
			
		||||
#define NM_L2TP_KEY_REQUIRE_MPPE      "require-mppe"
 | 
			
		||||
#define NM_L2TP_KEY_REQUIRE_MPPE_40   "require-mppe-40"
 | 
			
		||||
#define NM_L2TP_KEY_REQUIRE_MPPE_128  "require-mppe-128"
 | 
			
		||||
#define NM_L2TP_KEY_MPPE_STATEFUL     "mppe-stateful"
 | 
			
		||||
#define NM_L2TP_KEY_NOBSDCOMP         "nobsdcomp"
 | 
			
		||||
#define NM_L2TP_KEY_NODEFLATE         "nodeflate"
 | 
			
		||||
#define NM_L2TP_KEY_NO_VJ_COMP        "no-vj-comp"
 | 
			
		||||
#define NM_L2TP_KEY_NO_PCOMP          "nopcomp"
 | 
			
		||||
#define NM_L2TP_KEY_NO_ACCOMP         "noaccomp"
 | 
			
		||||
#define NM_L2TP_KEY_LCP_ECHO_FAILURE  "lcp-echo-failure"
 | 
			
		||||
#define NM_L2TP_KEY_LCP_ECHO_INTERVAL "lcp-echo-interval"
 | 
			
		||||
#define NM_L2TP_KEY_UNIT_NUM          "unit"
 | 
			
		||||
#define NM_L2TP_KEY_MACHINE_AUTH_TYPE "machine-auth-type"
 | 
			
		||||
#define NM_L2TP_KEY_MACHINE_CA        "machine-ca"
 | 
			
		||||
#define NM_L2TP_KEY_MACHINE_CERT      "machine-cert"
 | 
			
		||||
#define NM_L2TP_KEY_MACHINE_KEY       "machine-key"
 | 
			
		||||
#define NM_L2TP_KEY_MACHINE_CERTPASS  "machine-certpass"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_ENABLE      "ipsec-enabled"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_REMOTE_ID   "ipsec-remote-id"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_GATEWAY_ID  "ipsec-gateway-id" /* deprecated, use ipsec-remote-id */
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_PSK         "ipsec-psk"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_IKE         "ipsec-ike"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_ESP         "ipsec-esp"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_IKELIFETIME "ipsec-ikelifetime"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_SALIFETIME  "ipsec-salifetime"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_FORCEENCAPS "ipsec-forceencaps"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_IPCOMP      "ipsec-ipcomp"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_IKEV2       "ipsec-ikev2"
 | 
			
		||||
#define NM_L2TP_KEY_IPSEC_PFS         "ipsec-pfs"
 | 
			
		||||
 | 
			
		||||
/* Internal auth-dialog -> service token indicating that no secrets are required
 | 
			
		||||
 * for the connection if X.509 private keys are used with no password protection.
 | 
			
		||||
 */
 | 
			
		||||
#define NM_L2TP_KEY_NOSECRET          "no-secret"
 | 
			
		||||
 | 
			
		||||
#define NM_L2TP_AUTHTYPE_PASSWORD     "password"
 | 
			
		||||
#define NM_L2TP_AUTHTYPE_TLS          "tls"
 | 
			
		||||
#define NM_L2TP_AUTHTYPE_PSK          "psk"
 | 
			
		||||
#endif /* NM_L2TP_SERVICE_DEFINES_H */
 | 
			
		||||
@ -0,0 +1,111 @@
 | 
			
		||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
 | 
			
		||||
/* nm-openvpn-service - openvpn integration with NetworkManager
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (C) 2005 - 2008 Tim Niemueller <tim@niemueller.de>
 | 
			
		||||
 * Copyright (C) 2005 - 2008 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.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef NM_OPENVPN_SERVICE_H
 | 
			
		||||
#define NM_OPENVPN_SERVICE_H
 | 
			
		||||
 | 
			
		||||
#define NM_DBUS_SERVICE_OPENVPN    "org.freedesktop.NetworkManager.openvpn"
 | 
			
		||||
#define NM_DBUS_INTERFACE_OPENVPN  "org.freedesktop.NetworkManager.openvpn"
 | 
			
		||||
#define NM_DBUS_PATH_OPENVPN       "/org/freedesktop/NetworkManager/openvpn"
 | 
			
		||||
 | 
			
		||||
#define NM_OPENVPN_KEY_AUTH "auth"
 | 
			
		||||
#define NM_OPENVPN_KEY_CA "ca"
 | 
			
		||||
#define NM_OPENVPN_KEY_CERT "cert"
 | 
			
		||||
#define NM_OPENVPN_KEY_CIPHER "cipher"
 | 
			
		||||
#define NM_OPENVPN_KEY_KEYSIZE "keysize"
 | 
			
		||||
#define NM_OPENVPN_KEY_COMP_LZO "comp-lzo"
 | 
			
		||||
#define NM_OPENVPN_KEY_CONNECTION_TYPE "connection-type"
 | 
			
		||||
#define NM_OPENVPN_KEY_FLOAT "float"
 | 
			
		||||
#define NM_OPENVPN_KEY_FRAGMENT_SIZE "fragment-size"
 | 
			
		||||
#define NM_OPENVPN_KEY_KEY "key"
 | 
			
		||||
#define NM_OPENVPN_KEY_LOCAL_IP "local-ip" /* ??? */
 | 
			
		||||
#define NM_OPENVPN_KEY_MSSFIX "mssfix"
 | 
			
		||||
#define NM_OPENVPN_KEY_NS_CERT_TYPE "ns-cert-type"
 | 
			
		||||
#define NM_OPENVPN_KEY_PING "ping"
 | 
			
		||||
#define NM_OPENVPN_KEY_PING_EXIT "ping-exit"
 | 
			
		||||
#define NM_OPENVPN_KEY_PING_RESTART "ping-restart"
 | 
			
		||||
#define NM_OPENVPN_KEY_PORT "port"
 | 
			
		||||
#define NM_OPENVPN_KEY_PROTO_TCP "proto-tcp"
 | 
			
		||||
#define NM_OPENVPN_KEY_PROXY_TYPE "proxy-type"
 | 
			
		||||
#define NM_OPENVPN_KEY_PROXY_SERVER "proxy-server"
 | 
			
		||||
#define NM_OPENVPN_KEY_PROXY_PORT "proxy-port"
 | 
			
		||||
#define NM_OPENVPN_KEY_PROXY_RETRY "proxy-retry"
 | 
			
		||||
#define NM_OPENVPN_KEY_HTTP_PROXY_USERNAME "http-proxy-username"
 | 
			
		||||
#define NM_OPENVPN_KEY_REMOTE "remote"
 | 
			
		||||
#define NM_OPENVPN_KEY_REMOTE_RANDOM "remote-random"
 | 
			
		||||
#define NM_OPENVPN_KEY_REMOTE_IP "remote-ip"
 | 
			
		||||
#define NM_OPENVPN_KEY_STATIC_KEY "static-key"
 | 
			
		||||
#define NM_OPENVPN_KEY_STATIC_KEY_DIRECTION "static-key-direction"
 | 
			
		||||
#define NM_OPENVPN_KEY_TA "ta"
 | 
			
		||||
#define NM_OPENVPN_KEY_TA_DIR "ta-dir"
 | 
			
		||||
#define NM_OPENVPN_KEY_TUNNEL_MTU "tunnel-mtu"
 | 
			
		||||
#define NM_OPENVPN_KEY_USERNAME "username"
 | 
			
		||||
#define NM_OPENVPN_KEY_TAP_DEV "tap-dev"
 | 
			
		||||
#define NM_OPENVPN_KEY_DEV "dev"
 | 
			
		||||
#define NM_OPENVPN_KEY_DEV_TYPE "dev-type"
 | 
			
		||||
#define NM_OPENVPN_KEY_TUN_IPV6 "tun-ipv6"
 | 
			
		||||
#define NM_OPENVPN_KEY_TLS_CIPHER "tls-cipher"
 | 
			
		||||
#define NM_OPENVPN_KEY_TLS_CRYPT "tls-crypt"
 | 
			
		||||
#define NM_OPENVPN_KEY_TLS_REMOTE "tls-remote"
 | 
			
		||||
#define NM_OPENVPN_KEY_VERIFY_X509_NAME "verify-x509-name"
 | 
			
		||||
#define NM_OPENVPN_KEY_REMOTE_CERT_TLS "remote-cert-tls"
 | 
			
		||||
#define NM_OPENVPN_KEY_MAX_ROUTES "max-routes"
 | 
			
		||||
 | 
			
		||||
#define NM_OPENVPN_KEY_PASSWORD "password"
 | 
			
		||||
#define NM_OPENVPN_KEY_CERTPASS "cert-pass"
 | 
			
		||||
#define NM_OPENVPN_KEY_HTTP_PROXY_PASSWORD "http-proxy-password"
 | 
			
		||||
/* Internal auth-dialog -> service token indicating that no secrets are
 | 
			
		||||
 * required for the connection.
 | 
			
		||||
 */
 | 
			
		||||
#define NM_OPENVPN_KEY_NOSECRET "no-secret"
 | 
			
		||||
 | 
			
		||||
#define NM_OPENVPN_KEY_RENEG_SECONDS "reneg-seconds"
 | 
			
		||||
 | 
			
		||||
#define NM_OPENVPN_AUTH_NONE "none"
 | 
			
		||||
#define NM_OPENVPN_AUTH_RSA_MD4 "RSA-MD4"
 | 
			
		||||
#define NM_OPENVPN_AUTH_MD5  "MD5"
 | 
			
		||||
#define NM_OPENVPN_AUTH_SHA1 "SHA1"
 | 
			
		||||
#define NM_OPENVPN_AUTH_SHA224 "SHA224"
 | 
			
		||||
#define NM_OPENVPN_AUTH_SHA256 "SHA256"
 | 
			
		||||
#define NM_OPENVPN_AUTH_SHA384 "SHA384"
 | 
			
		||||
#define NM_OPENVPN_AUTH_SHA512 "SHA512"
 | 
			
		||||
#define NM_OPENVPN_AUTH_RIPEMD160 "RIPEMD160"
 | 
			
		||||
 | 
			
		||||
#define NM_OPENVPN_CONTYPE_TLS          "tls"
 | 
			
		||||
#define NM_OPENVPN_CONTYPE_STATIC_KEY   "static-key"
 | 
			
		||||
#define NM_OPENVPN_CONTYPE_PASSWORD     "password"
 | 
			
		||||
#define NM_OPENVPN_CONTYPE_PASSWORD_TLS "password-tls"
 | 
			
		||||
 | 
			
		||||
/* arguments of "--remote-cert-tls" */
 | 
			
		||||
#define NM_OPENVPN_REM_CERT_TLS_CLIENT "client"
 | 
			
		||||
#define NM_OPENVPN_REM_CERT_TLS_SERVER "server"
 | 
			
		||||
 | 
			
		||||
/* arguments of "--ns-cert-type" */
 | 
			
		||||
#define NM_OPENVPN_NS_CERT_TYPE_CLIENT "client"
 | 
			
		||||
#define NM_OPENVPN_NS_CERT_TYPE_SERVER "server"
 | 
			
		||||
 | 
			
		||||
/* possible types for verify-x509-name */
 | 
			
		||||
#define NM_OPENVPN_VERIFY_X509_NAME_TYPE_SUBJECT     "subject"
 | 
			
		||||
#define NM_OPENVPN_VERIFY_X509_NAME_TYPE_NAME        "name"
 | 
			
		||||
#define NM_OPENVPN_VERIFY_X509_NAME_TYPE_NAME_PREFIX "name-prefix"
 | 
			
		||||
 | 
			
		||||
#endif /* NM_OPENVPN_SERVICE_H */
 | 
			
		||||
@ -0,0 +1,56 @@
 | 
			
		||||
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
 | 
			
		||||
/* nm-pptp-service - PPTP VPN integration with NetworkManager
 | 
			
		||||
 *
 | 
			
		||||
 * 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.
 | 
			
		||||
 *
 | 
			
		||||
 * (C) Copyright 2008 Red Hat, Inc. //krazy:exclude=copyright
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef NM_PPTP_SERVICE_H
 | 
			
		||||
#define NM_PPTP_SERVICE_H
 | 
			
		||||
 | 
			
		||||
#define NM_DBUS_SERVICE_PPTP_PPP    "org.freedesktop.NetworkManager.pptp-ppp"
 | 
			
		||||
#define NM_DBUS_PATH_PPTP_PPP       "/org/freedesktop/NetworkManager/pptp/ppp"
 | 
			
		||||
#define NM_DBUS_INTERFACE_PPTP_PPP  "org.freedesktop.NetworkManager.pptp.ppp"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* For the NM <-> VPN plugin service */
 | 
			
		||||
#define NM_DBUS_SERVICE_PPTP    "org.freedesktop.NetworkManager.pptp"
 | 
			
		||||
#define NM_DBUS_INTERFACE_PPTP  "org.freedesktop.NetworkManager.pptp"
 | 
			
		||||
#define NM_DBUS_PATH_PPTP       "/org/freedesktop/NetworkManager/pptp"
 | 
			
		||||
 | 
			
		||||
#define NM_PPTP_KEY_GATEWAY           "gateway"
 | 
			
		||||
#define NM_PPTP_KEY_USER              "user"
 | 
			
		||||
#define NM_PPTP_KEY_PASSWORD          "password"
 | 
			
		||||
#define NM_PPTP_KEY_DOMAIN            "domain"
 | 
			
		||||
#define NM_PPTP_KEY_REFUSE_EAP        "refuse-eap"
 | 
			
		||||
#define NM_PPTP_KEY_REFUSE_PAP        "refuse-pap"
 | 
			
		||||
#define NM_PPTP_KEY_REFUSE_CHAP       "refuse-chap"
 | 
			
		||||
#define NM_PPTP_KEY_REFUSE_MSCHAP     "refuse-mschap"
 | 
			
		||||
#define NM_PPTP_KEY_REFUSE_MSCHAPV2   "refuse-mschapv2"
 | 
			
		||||
#define NM_PPTP_KEY_REQUIRE_MPPE      "require-mppe"
 | 
			
		||||
#define NM_PPTP_KEY_REQUIRE_MPPE_40   "require-mppe-40"
 | 
			
		||||
#define NM_PPTP_KEY_REQUIRE_MPPE_128  "require-mppe-128"
 | 
			
		||||
#define NM_PPTP_KEY_MPPE_STATEFUL     "mppe-stateful"
 | 
			
		||||
#define NM_PPTP_KEY_NOBSDCOMP         "nobsdcomp"
 | 
			
		||||
#define NM_PPTP_KEY_NODEFLATE         "nodeflate"
 | 
			
		||||
#define NM_PPTP_KEY_NO_VJ_COMP        "no-vj-comp"
 | 
			
		||||
#define NM_PPTP_KEY_LCP_ECHO_FAILURE  "lcp-echo-failure"
 | 
			
		||||
#define NM_PPTP_KEY_LCP_ECHO_INTERVAL "lcp-echo-interval"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif /* NM_PPTP_PLUGIN_H */
 | 
			
		||||
@ -0,0 +1,28 @@
 | 
			
		||||
#include "vpn.h"
 | 
			
		||||
 | 
			
		||||
#include <NetworkManagerQt/Manager>
 | 
			
		||||
#include <NetworkManagerQt/AccessPoint>
 | 
			
		||||
#include <NetworkManagerQt/WiredDevice>
 | 
			
		||||
#include <NetworkManagerQt/WirelessDevice>
 | 
			
		||||
#include <NetworkManagerQt/Settings>
 | 
			
		||||
#include <NetworkManagerQt/Setting>
 | 
			
		||||
#include <NetworkManagerQt/Connection>
 | 
			
		||||
#include <NetworkManagerQt/Utils>
 | 
			
		||||
#include <NetworkManagerQt/ConnectionSettings>
 | 
			
		||||
#include <NetworkManagerQt/GsmSetting>
 | 
			
		||||
#include <NetworkManagerQt/WiredSetting>
 | 
			
		||||
#include <NetworkManagerQt/WirelessSetting>
 | 
			
		||||
#include <NetworkManagerQt/ActiveConnection>
 | 
			
		||||
#include <NetworkManagerQt/Ipv4Setting>
 | 
			
		||||
 | 
			
		||||
#include <NetworkManagerQt/VpnSetting>
 | 
			
		||||
 | 
			
		||||
VPN::VPN(QObject *parent)
 | 
			
		||||
    : QObject(parent)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void VPN::activateVPNConnection(const QString &connection, const QString &device, const QString &specificObject)
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
@ -0,0 +1,16 @@
 | 
			
		||||
#ifndef VPN_H
 | 
			
		||||
#define VPN_H
 | 
			
		||||
 | 
			
		||||
#include <QObject>
 | 
			
		||||
 | 
			
		||||
class VPN : public QObject
 | 
			
		||||
{
 | 
			
		||||
    Q_OBJECT
 | 
			
		||||
 | 
			
		||||
public:
 | 
			
		||||
    explicit VPN(QObject *parent = nullptr);
 | 
			
		||||
 | 
			
		||||
    Q_INVOKABLE void activateVPNConnection(const QString &connection, const QString &device, const QString &specificParameter);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif // VPN_H
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue