.. _object_OpenVpnClientService: :index:`OpenVpnClientService` ----------------------------- Description *********** The OpenVpnClientService object represents an OpenVPN client service instance. When enabled/started an OpenVPN client instance for the configuration specified via the :ref:`configurationName ` property is started. The corresponding configuration and key files have to be stored inside the ``/storage/system/openvpn/client`` directory. :**› Inherits**: :ref:`SystemService ` Overview ******** Properties ++++++++++ .. hlist:: :columns: 2 * :ref:`configurationName ` * :ref:`SystemService.description ` * :ref:`SystemService.enabled ` * :ref:`SystemService.name ` * :ref:`SystemService.running ` * :ref:`SystemService.timeout ` * :ref:`Object.objectId ` * :ref:`Object.parent ` Methods +++++++ .. hlist:: :columns: 2 * :ref:`writeConfigurationFile() ` * :ref:`SystemService.restart() ` * :ref:`SystemService.start() ` * :ref:`SystemService.stop() ` * :ref:`Object.deserializeProperties() ` * :ref:`Object.fromJson() ` * :ref:`Object.serializeProperties() ` * :ref:`Object.toJson() ` Signals +++++++ .. hlist:: :columns: 1 * :ref:`Object.completed() ` Properties ********** .. _property_OpenVpnClientService_configurationName: .. _signal_OpenVpnClientService_configurationNameChanged: .. index:: single: configurationName configurationName +++++++++++++++++ This property holds the name of the configuration, i.e. the name of the OpenVPN client configuration file without the ``.conf`` or ``.ovpn`` suffix. :**› Type**: String :**› Signal**: configurationNameChanged() :**› Attributes**: Writable Methods ******* .. _method_OpenVpnClientService_writeConfigurationFile: .. index:: single: writeConfigurationFile writeConfigurationFile(String name, String content) +++++++++++++++++++++++++++++++++++++++++++++++++++ This method writes an OpenVPN configuration file identified with the given name and content. This method was introduced in InCore 2.7. :**› Returns**: Boolean .. _example_OpenVpnClientService: Example ******* .. code-block:: qml import InCore.Foundation 2.5 Application { OpenVpnClientService { // use OpenVPN configuration from /storage/system/openvpn/client/my-device.conf configurationName: "my-device" } }