core: backend autoconnection:

A new Connection/autoconnect_backend param can be set for a profile or component to be
started automatically with backend. This is specially useful for components, but can be
useful for client profile too (e.g. on Android we need to start profile with backend to
get notifications, this part will come with following commits).

The new Sqlite.getIndParamValues method allows to retrieve the same parameters for all
profiles.
This commit is contained in:
Goffi 2020-01-25 21:08:32 +01:00
commit 1d91db6f2c

View file

@ -74,6 +74,7 @@ class Params(object):
<param name="Priority" value="50" type="int" constraint="-128;127" security="10" />
<param name="%(force_server_param)s" value="" type="string" security="50" />
<param name="%(force_port_param)s" value="" type="int" constraint="1;65535" security="50" />
<param name="autoconnect_backend" label="%(autoconnect_backend_label)s" value="false" type="bool" security="50" />
<param name="autoconnect" label="%(autoconnect_label)s" value="true" type="bool" security="50" />
<param name="autodisconnect" label="%(autodisconnect_label)s" value="false" type="bool" security="50" />
<param name="check_certificate" label="%(check_certificate_label)s" value="true" type="bool" security="4" />
@ -92,6 +93,7 @@ class Params(object):
"force_server_param": C.FORCE_SERVER_PARAM,
"force_port_param": C.FORCE_PORT_PARAM,
"new_account_label": D_("Register new account"),
"autoconnect_backend_label": D_("Connect on backend startup"),
"autoconnect_label": D_("Connect on frontend startup"),
"autodisconnect_label": D_("Disconnect on frontend closure"),
"check_certificate_label": D_("Check certificate (don't uncheck if unsure)"),