Tizen Native API  4.0
org.freedesktop.DBus.Properties

Functions

Eina_Bool eldbus_proxy_properties_monitor (Eldbus_Proxy *proxy, Eina_Bool enable)
Eldbus_Pendingeldbus_proxy_property_get (Eldbus_Proxy *proxy, const char *name, Eldbus_Message_Cb cb, const void *data)
Eldbus_Pendingeldbus_proxy_property_set (Eldbus_Proxy *proxy, const char *name, const char *sig, const void *value, Eldbus_Message_Cb cb, const void *data)
Eldbus_Pendingeldbus_proxy_property_get_all (Eldbus_Proxy *proxy, Eldbus_Message_Cb cb, const void *data)
Eldbus_Signal_Handlereldbus_proxy_properties_changed_callback_add (Eldbus_Proxy *proxy, Eldbus_Signal_Cb cb, const void *data)
Eina_Valueeldbus_proxy_property_local_get (Eldbus_Proxy *proxy, const char *name)
const Eina_Hasheldbus_proxy_property_local_get_all (Eldbus_Proxy *proxy)

Function Documentation

Deprecated:
Deprecated since 4.0. Register a callback on "PropertiesChanged" signal.
Parameters:
proxyThe proxy object on which to register the callback.
cbThe callback to be called when receiving the signal.
dataData to be passed to the callback.
Returns:
Eldbus_Signal_Handler object representing a listener for "PropertiesChanged" signal.
Since :
3.0
Deprecated:
Deprecated since 4.0. Enable or disable local cache of properties.

After enable you can call eldbus_proxy_property_local_get() or eldbus_proxy_property_local_get_all() to get cached properties.

Parameters:
proxybus+path+interface that the properties belong
enableenable or disable properties monitor
Returns:
EINA_TRUE if already have cached properties EINA_FALSE if it will asynchrony get the properties. You should listen for a ELDBUS_PROXY_EVENT_PROPERTY_LOADED to know when properties finish to load.
Since :
3.0
Eldbus_Pending* eldbus_proxy_property_get ( Eldbus_Proxy proxy,
const char *  name,
Eldbus_Message_Cb  cb,
const void *  data 
)
Deprecated:
Deprecated since 4.0. Get a property.
Parameters:
proxyThe proxy object on which to do the query.
nameThe property name to get.
cbThe callback to be called when receiving an answer.
dataData to be passed to the callback.
Returns:
Eldbus_Pending object corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_proxy_property_get_all ( Eldbus_Proxy proxy,
Eldbus_Message_Cb  cb,
const void *  data 
)
Deprecated:
Deprecated since 4.0. Get all properties.
Parameters:
proxyThe proxy object on which to do the query.
cbThe callback to be called when receiving an answer.
dataData to be passed to the callback.
Returns:
Eldbus_Pending object corresponding to the message sent.
Since :
3.0
Eina_Value* eldbus_proxy_property_local_get ( Eldbus_Proxy proxy,
const char *  name 
)
Deprecated:
Deprecated since 4.0. Return the cached value of property.

This only work if you have enable eldbus_proxy_properties_monitor or if you have call eldbus_proxy_event_callback_add of type ELDBUS_PROXY_EVENT_PROPERTY_CHANGED and the property you want had changed.

Parameters:
proxyThe proxy object on which to do the query.
nameThe property name to get.
Returns:
Cached value of property.
Since :
3.0
Deprecated:
Deprecated since 4.0. Get all cached properties.

This only work if you have enable eldbus_proxy_properties_monitor or if you have call eldbus_proxy_event_callback_add of type ELDBUS_PROXY_EVENT_PROPERTY_CHANGED.

Parameters:
proxyThe proxy object on which to do the query.
Returns:
A Eina_Hash with all cached properties
Since :
3.0
Eldbus_Pending* eldbus_proxy_property_set ( Eldbus_Proxy proxy,
const char *  name,
const char *  sig,
const void *  value,
Eldbus_Message_Cb  cb,
const void *  data 
)
Deprecated:
Deprecated since 4.0. Set a property.
Parameters:
proxyThe proxy object on which to do the query.
nameThe property name to get.
sig
valueThe value to set.
cbThe callback to be called when receiving an answer.
dataData to be passed to the callback.
Returns:
Eldbus_Pending object corresponding to the message sent.
Since :
3.0