How to add new VPN connection type in settings

asked 2017-11-09 11:17:15 +0300

DrLeo gravatar image

updated 2017-11-09 14:02:20 +0300

jovirkku gravatar image

Hello.

I develop a VPN Client for Sailfish OS 2.1.2.3. Ideally I want to add a new item in the menu Settings->VPN>Add new VPN connection. How can I do it?

I know, what all pages with settings are located in /usr/share/jolla-settings/pages/. But for the VPN settings .qml files contain enum type VpnModel. For example lines in NewConnectionDialog.qml:

ListModel {
    id: vpnTypes

    ListElement {
        type: VpnModel.OpenVPN

        //% "A modern VPN implementation using SSL/TLS for key exchange"
        description: qsTrId("settings_network-la-vpn_type_openvpn")
    }

It is logical to assume what I need new value for VpnModel type. How can I do that?

edit retag flag offensive close delete