We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2017-11-09 11:17:15 +0200

How to add new VPN connection type in settings

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?

How to add new VPN connection type in settings

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?