connection_compatible


Description:

public virtual bool connection_compatible (Connection connection) throws Error

Validates a given connection for a given Device object and returns whether the connection may be activated with the device.

For example if this is a Wi-Fi device that supports only WEP encryption, the connection will only be valid if it is a Wi-Fi connection which describes a WEP or open network, and will not be valid if it describes a WPA network, or if it is an Ethernet, Bluetooth, WWAN, etc connection that is incompatible with the device.

This function does the same as connection_valid, i.e. checking compatibility of the given device and connection. But, in addition, it sets GError when FALSE is returned.

Parameters:

this

an Device to validate connection against

connection

an Connection to validate against this

Returns:

true if the connection may be activated with this device, false if is incompatible with the device's capabilities and characteristics.