1. 10 Jan, 2020 1 commit
    • flypig's avatar
      [libconnman-qt] Convert VPN routes to/from dbus. Contributes to JB#46120 · 368f9840
      flypig authored
      The userRoutes and serverRoutes VPN properties are passed to connman via
      dbus in the following form.
      
      Variant array [struct {array [
          dict entry(
              string "ProtocolFamily"
              variant int32 4
          )
          dict entry(
              string "Network"
              variant string "172.18.13.1"
          )
          dict entry(
              string "Netmask"
              variant string "255.255.255.255"
          )
          dict entry(
              string "Gateway"
              variant string "172.18.13.5"
          )
      ]}]
      
      These need to be converted to and from the appropriate datatypes used in
      QML and javascript. This change adds the conversion functions needed for
      this.
      368f9840
  2. 09 Oct, 2019 1 commit
    • flypig's avatar
      [libconnman-qt] Add API for accessing connman VPNs. Contributes to JB#45378 · 2adfe8af
      flypig authored
      Connman provides the vpn-manager and vpn-connection dbus interfaces for
      managing VPN configurations. These changes provide a Qt API wrapper for
      these interfaces, along with a model exending QAbstractListModel of the
      available VPN configurations.
      
      Much of the API is modeled on the VpnModel that can be found in
      nemo-qml-plugin-systemsettings, stripped back to remove
      Settings-specific functionality.
      2adfe8af