<arg type="s" name="profile" direction="in"/>
<arg type="s" name="address" direction="out"/>
</method>
+ <method name="RequestVconfValue">
+ <arg type="s" name="key" direction="in"/>
+ <arg type="s" name="type" direction="in"/>
+ <arg type="i" name="ret" direction="out"/>
+ <arg type="i" name="int_value" direction="out"/>
+ <arg type="s" name="str_value" direction="out"/>
+ </method>
</interface>
<interface name="net.netconfig.tcpdump">
<method name="StartTCPDump">
<allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckProfilePrivilege" />
<allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckInternetPrivilege" />
<allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="GetMeteredInfo" />
+ <allow send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="RequestVconfValue" />
<allow send_destination="net.netconfig" send_interface="net.netconfig.network_statistics" send_member="GetWifiLastRxBytes" />
<allow send_destination="net.netconfig" send_interface="net.netconfig.network_statistics" send_member="GetWifiLastTxBytes" />
<check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckProfilePrivilege" privilege="http://tizen.org/privilege/network.profile" />
<check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="CheckInternetPrivilege" privilege="http://tizen.org/privilege/internet" />
<check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="GetMeteredInfo" privilege="http://tizen.org/privilege/network.get" />
+ <check send_destination="net.netconfig" send_interface="net.netconfig.network" send_member="RequestVconfValue" privilege="http://tizen.org/privilege/network.get" />
<check send_destination="net.netconfig" send_interface="net.netconfig.network_statistics" send_member="GetWifiLastRxBytes" privilege="http://tizen.org/privilege/network.get" />
<check send_destination="net.netconfig" send_interface="net.netconfig.network_statistics" send_member="GetWifiLastTxBytes" privilege="http://tizen.org/privilege/network.get" />
return TRUE;
}
+gboolean handle_request_vconf_value(Network *object,
+ GDBusMethodInvocation *context, gchar *key, gchar *type)
+{
+ int ret = 0;
+ int int_value = 0;
+ char *str_value = "";
+
+ if (!g_strcmp0(type, "string"))
+ str_value = vconf_get_str(key);
+ else if (!g_strcmp0(type, "int"))
+ ret = vconf_get_int(key, &int_value);
+ else if (!g_strcmp0(type, "bool"))
+ ret = vconf_get_bool(key, &int_value);
+
+ DBG("Vconf key: %s, type: %s, int_value: %d, str_value: %s, ret: %d",
+ key, type, int_value, str_value, ret);
+ network_complete_request_vconf_value(object, context, ret, int_value, str_value);
+
+ if (!g_strcmp0(type, "string"))
+ g_free(str_value);
+
+ return TRUE;
+}
+
gboolean handle_get_battery_dn_list(Battery *object,
GDBusMethodInvocation *context)
{
G_CALLBACK(handle_device_policy_get_wifi_profile), NULL);
g_signal_connect(netconfigstate, "handle-get-metered-info",
G_CALLBACK(handle_get_metered_info), NULL);
+ g_signal_connect(netconfigstate, "handle-request-vconf-value",
+ G_CALLBACK(handle_request_vconf_value), NULL);
if (!g_dbus_interface_skeleton_export(interface_network, connection,
NETCONFIG_NETWORK_STATE_PATH, NULL)) {