Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'vpn_saving_fixes' into 'master'
Browse files Browse the repository at this point in the history
[vpn] Improve VPN property change management. Contributes to JB#46120

See merge request mer-core/connman!154
  • Loading branch information
LaakkonenJussi committed Dec 10, 2019
2 parents efbfba8 + 3a70592 commit e25f63b
Show file tree
Hide file tree
Showing 2 changed files with 342 additions and 39 deletions.
28 changes: 28 additions & 0 deletions connman/doc/vpn-connection-api.txt
Expand Up @@ -12,6 +12,31 @@ Methods dict GetProperties() [experimental]

Possible Errors: [connection].Error.InvalidArguments

void SetProperties(dict) [experimental]

Change values of all properties defined in the dict.
Only properties that are listed as read-write are
changeable. See the properties section for available
properties. On every successful property value change
a PropertyChanged signal will be emitted. Clearing a
property can be done by supplying an empty property
value: an empty array for UserRoutes property or an
empty string for any other property. In case there
are errors with the properties, InvalidProperty or
PermissionDenied error is sent. InvalidProperty is
sent when there is at least one invalid property, in
this case there can be also properties that cannot be
changed (immutable properties). In case there are
only immutable properties PermissionDenied error is
returned. The properties that are invalid or
immutable are reported back at the end of the error
message as a comma separated property name list.

Possible Errors: [connection].Error.InvalidArguments
[connection].Error.InvalidProperty
[connection].Error.PermissionDenied
[connection].Error.NotSupported

void SetProperty(string name, variant value) [experimental]

Changes the value of the specified property. Only
Expand All @@ -21,13 +46,16 @@ Methods dict GetProperties() [experimental]

Possible Errors: [connection].Error.InvalidArguments
[connection].Error.InvalidProperty
[connection].Error.PermissionDenied
[connection].Error.NotSupported

void ClearProperty(string name) [experimental]

Clears the value of the specified property.

Possible Errors: [connection].Error.InvalidArguments
[connection].Error.InvalidProperty
[connection].Error.PermissionDenied

void Connect() [experimental]

Expand Down

0 comments on commit e25f63b

Please sign in to comment.