Controls network connectivity.
This class and its child objects are only useful to implement control of the network connectivity. If your application only needs to request access to the network, use @Efl.Net.Session instead.
Network connectivity is defined on top of technologies that provide access points. A technology can be "ethernet", "wifi", "bluetooth" or something else. Ethernet will provide a single access point, while "wifi" will expose zero or more access points that can come and go.
Users willing to use access points are expected to monitor "access_point,add" event to know when access points are added. To know when they were deleted, "access_point,del" or an Efl.Net.Control.Access_Point "del" event. Finally "access_points,changed" is relative to additions, deletions and reordering of access point due changes in their priorities.
The backend system is responsible for remembering connection details such as passphrase, last connected access point and priority. The user is NOT supposed to do that.
For ease of use Efl.Net.Control.state determines if at least one access point is online (verified connectivity), local (connected but unverified) or offline.
For safety reasons all radio transmissions may be disabled with Efl.Net.Control.radios_offline property. This is usually called "airplane mode" on some platforms.
Some platforms may not implement the backend for this class, in which case the system will report Efl.Net.Control.state as permanently "online" (Efl.Net.Control.State.online) and iterators for Efl.Net.Control.access_points and Efl.Net.Control.technologies will be empty (they will be returned but won't contain any items).
The iterator of current access points.
Eina_Iterator *efl_net_control_access_points_get(const Eo *obj);
agent_enabled (get, set)
The agent is responsible for user interaction.
Eina_Bool efl_net_control_agent_enabled_get(const Eo *obj); void efl_net_control_agent_enabled_set(Eo *obj, Eina_Bool agent_enabled);
If event "agent_request_input" was emitted, this will reply with the requested data
void efl_net_control_agent_reply(Eo *obj, const char *name, const Eina_Slice *ssid, const char *username, const char *passphrase, const char *wps);
Call the object's constructor.
Efl_Object *efl_constructor(Eo *obj);
Call the object's destructor.
void efl_destructor(Eo *obj);
Called at the end of efl_add. Should not be called, just overridden.
Efl_Object *efl_finalize(Eo *obj);
radios_offline (get, set)
truedisable all network technologies that use radio transmission, such as bluetooth and wifi. If
false, allows radio to be used.
Eina_Bool efl_net_control_radios_offline_get(const Eo *obj); void efl_net_control_radios_offline_set(Eo *obj, Eina_Bool radios_offline);
Summary of network connectivity.
Efl_Net_Control_State efl_net_control_state_get(const Eo *obj);
The iterator of current technologies.
Eina_Iterator *efl_net_control_technologies_get(const Eo *obj);
|loop (get)||The loop to which this object belongs to.|
|parent (get, set)||The parent of an object.|
|allow_parent_unref (get, set)||Allow an object to be deleted by unref even if it has a parent.|
|children_iterator_new||Get an iterator on all childrens|
|comment (get, set)||A human readable comment for the object|
|composite_attach||Make an object a composite object of another.|
|composite_detach||Detach a composite object from another object.|
|composite_part_is||Check if an object is part of a composite object.|
|debug_name_override||Build a read-only name for this object used for debugging.|
|del||Unrefs the object and reparents it to NULL.|
|event_callback_forwarder_add||Add an event callback forwarder for an event and an object.|
|event_callback_forwarder_del||Remove an event callback forwarder for an event and an object.|
|event_callback_stop||Stop the current callback call.|
|event_freeze||Freeze events of object.|
|event_freeze_count (get)||Return freeze events of object.|
| ||event_global_freeze||Freeze events of object.|
| ||event_global_freeze_count (get)||Return freeze events of object.|
| ||event_global_thaw||Thaw events of object.|
|event_thaw||Thaw events of object.|
|finalized (get)||True if the object is already finalized, otherwise false.|
|name (get, set)||The name of the object.|
|name_find||Find a child object with the given name and return it.|
|provider_find||Searches upwards in the object tree for a provider which knows the given class/interface.|
The given access point has been added
The given access point will be deleted
Access points were added, deleted or reordered.
Requires the user to visit a web page
Requires the error to be reported to the user
Notifies we're not the agent anymore
Requires the user to enter information in order to proceed, such as hidden SSID, passphrase, etc. After the user enters the information, reply by calling Efl.Net.Control.agent_reply
Property Efl.Net.Control.radios_offline changed
Property Efl.Net.Control.state changed
The given technology has been added
The given technology will be deleted