e_connman_profile.c File Reference
+ Include dependency graph for e_connman_profile.c:

Functions

E_Connman_Elemente_connman_profile_get (const char *path)
 
Eina_Bool e_connman_profile_name_get (const E_Connman_Element *profile, const char **name)
 
Eina_Bool e_connman_profile_name_set (E_Connman_Element *profile, const char *name, E_DBus_Method_Return_Cb cb, const void *data)
 
Eina_Bool e_connman_profile_offline_mode_get (const E_Connman_Element *profile, Eina_Bool *offline)
 
Eina_Bool e_connman_profile_offline_mode_set (E_Connman_Element *profile, Eina_Bool offline, E_DBus_Method_Return_Cb cb, const void *data)
 
Eina_Bool e_connman_profile_services_get (const E_Connman_Element *profile, unsigned int *count, E_Connman_Element ***p_elements)
 

Function Documentation

◆ e_connman_profile_name_get()

Eina_Bool e_connman_profile_name_get ( const E_Connman_Element profile,
const char **  name 
)

Get property "Name" value.

If this property isn't found then EINA_FALSE is returned. If EINA_FALSE is returned, then this call failed and parameter-returned values shall be considered invalid.

The profile name, if set with e_connman_profile_name_set()

Parameters
profilepath to get property.
namewhere to store the property value, must be a pointer to string (const char **), it will not be allocated or copied and references will be valid until element changes, so copy it if you want to use it later.
Returns
EINA_TRUE on success, EINA_FALSE otherwise.
See also
e_connman_profile_name_set()

References e_connman_element_property_get_stringshared(), and e_connman_prop_name.

◆ e_connman_profile_name_set()

Eina_Bool e_connman_profile_name_set ( E_Connman_Element profile,
const char *  name,
E_DBus_Method_Return_Cb  cb,
const void *  data 
)

Call method SetProperty("Name", name) at the given element on server.

This is a server call, not local, so it may fail and in that case no property is updated locally. If the value was set the event E_CONNMAN_EVENT_ELEMENT_UPDATED will be added to main loop.

Parameters
namevalue to set.
cbfunction to call when server replies or some error happens.
datadata to give to cb when it is called.
Returns
EINA_TRUE on success, EINA_FALSE otherwise.
See also
e_connman_profile_name_get()

References e_connman_element_property_set_full(), and e_connman_prop_name.

◆ e_connman_profile_offline_mode_get()

Eina_Bool e_connman_profile_offline_mode_get ( const E_Connman_Element profile,
Eina_Bool *  offline 
)

Get property "OfflineMode" value.

If this property isn't found then EINA_FALSE is returned. If EINA_FALSE is returned, then this call failed and parameter-returned values shall be considered invalid.

The offline mode indicates the global setting for switching all radios on or off. Changing offline mode to true results in powering down all devices that use radio technology.

Parameters
offlinewhere to store the property value, must be a pointer to Eina_Bool (Eina_Bool *).
Returns
EINA_TRUE on success, EINA_FALSE otherwise.
See also
e_connman_profile_offline_mode_set()

References e_connman_element_property_get_stringshared(), and e_connman_prop_offline_mode.

◆ e_connman_profile_services_get()

Eina_Bool e_connman_profile_services_get ( const E_Connman_Element profile,
unsigned int *  count,
E_Connman_Element ***  p_elements 
)

Get array of service elements.

Parameters
countreturn the number of elements in array.
p_elementsarray with all elements, these are not referenced and in no particular order, just set if return is EINA_TRUE.
Returns
EINA_TRUE on success, EINA_FALSE otherwise.

References e_connman_element_objects_array_get_stringshared(), and e_connman_prop_services.