pub trait TSettingSystemServiceSyncClient {
Show 31 methods
// Required methods
fn get_setting_item(&mut self, id: String) -> Result<SettingItem>;
fn get_setting_items(
&mut self,
category: String,
include_children: bool,
) -> Result<Vec<SettingItem>>;
fn search_setting_items(
&mut self,
filter_json: String,
) -> Result<BTreeMap<String, SettingSearchResult>>;
fn get_category_node(&mut self) -> Result<SettingTree>;
fn get_child_node(
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>,
) -> Result<NodeList>;
fn set_setting_item(&mut self, key: String, val: String) -> Result<bool>;
fn set_setting_items(
&mut self,
key_values: BTreeMap<String, String>,
) -> Result<i32>;
fn restore_default(
&mut self,
module_name: String,
category: String,
) -> Result<bool>;
fn restore_user_default(
&mut self,
user_id: String,
module_name: String,
category: String,
) -> Result<bool>;
fn update_module_version(&mut self, module_name: String) -> Result<bool>;
fn set_user_app_data(
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>,
) -> Result<i32>;
fn get_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<AppData>;
fn remove_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<i32>;
fn setting_item_notify(
&mut self,
key: String,
contents: JSON,
) -> Result<bool>;
fn get_network_adapter_settings(&mut self) -> Result<NetworkSettings>;
fn get_lan_network_name(&mut self) -> Result<String>;
fn set_network_settings(
&mut self,
is_w_lan: bool,
enable_d_h_c_p: bool,
ip_address: String,
sub_mask: String,
gateway: String,
main_d_n_s: String,
sub_d_n_s: String,
) -> Result<bool>;
fn set_network_proxy(
&mut self,
proxy_server: String,
proxy_port: String,
) -> Result<bool>;
fn connect_to_wifi(
&mut self,
profile_name: String,
key: String,
) -> Result<bool>;
fn connect_to_appointed_wifi(
&mut self,
profile_name: String,
auth: String,
ciper: String,
key_type: String,
key: String,
) -> Result<bool>;
fn get_network_settings(&mut self) -> Result<RuyiNetworkSettings>;
fn get_network_status(&mut self) -> Result<RuyiNetworkStatus>;
fn ruyi_test_network(&mut self) -> Result<RuyiNetworkTestResult>;
fn ruyi_start_network_speed_test(&mut self, userindex: i32) -> Result<bool>;
fn ruyi_stop_network_speed_test(&mut self, userindex: i32) -> Result<bool>;
fn get_available_wifi(&mut self) -> Result<Vec<WifiEntity>>;
fn disconnect_wifi(&mut self) -> Result<bool>;
fn discover_bluetooth_device(&mut self) -> Result<bool>;
fn connect_bluetooth_device(
&mut self,
device_name: String,
device_address: String,
) -> Result<bool>;
fn disconnect_bluetooth_device(
&mut self,
device_name: String,
device_address: String,
) -> Result<bool>;
fn remove_bluetooth_device(
&mut self,
device_name: String,
device_address: String,
) -> Result<bool>;
}Required Methods§
Sourcefn get_setting_item(&mut self, id: String) -> Result<SettingItem>
fn get_setting_item(&mut self, id: String) -> Result<SettingItem>
Get a setting data of the module.
Sourcefn get_setting_items(
&mut self,
category: String,
include_children: bool,
) -> Result<Vec<SettingItem>>
fn get_setting_items( &mut self, category: String, include_children: bool, ) -> Result<Vec<SettingItem>>
Get a list of setting data of the module.
Sourcefn search_setting_items(
&mut self,
filter_json: String,
) -> Result<BTreeMap<String, SettingSearchResult>>
fn search_setting_items( &mut self, filter_json: String, ) -> Result<BTreeMap<String, SettingSearchResult>>
Search a set of settings using a json format string. According to the format of json string your write, searching can be separated to 3 types: simple search, lambda search and complicated search. And each of they can be combined with the other.
Sourcefn get_category_node(&mut self) -> Result<SettingTree>
fn get_category_node(&mut self) -> Result<SettingTree>
Get settings and categories in a tree
Sourcefn get_child_node(
&mut self,
parent: String,
node_type: NodeType,
param: String,
tags: Vec<String>,
) -> Result<NodeList>
fn get_child_node( &mut self, parent: String, node_type: NodeType, param: String, tags: Vec<String>, ) -> Result<NodeList>
Get child nodes of specified setting item or setting category
Sourcefn set_setting_item(&mut self, key: String, val: String) -> Result<bool>
fn set_setting_item(&mut self, key: String, val: String) -> Result<bool>
Set the specified setting’s “dataValue” with the new value
Sourcefn set_setting_items(
&mut self,
key_values: BTreeMap<String, String>,
) -> Result<i32>
fn set_setting_items( &mut self, key_values: BTreeMap<String, String>, ) -> Result<i32>
Set a set of settings’ “dataValue”
Sourcefn restore_default(
&mut self,
module_name: String,
category: String,
) -> Result<bool>
fn restore_default( &mut self, module_name: String, category: String, ) -> Result<bool>
Restore a module setting to default
Sourcefn restore_user_default(
&mut self,
user_id: String,
module_name: String,
category: String,
) -> Result<bool>
fn restore_user_default( &mut self, user_id: String, module_name: String, category: String, ) -> Result<bool>
@RestoreUserDefault_Summary
Sourcefn update_module_version(&mut self, module_name: String) -> Result<bool>
fn update_module_version(&mut self, module_name: String) -> Result<bool>
Update the module settings from an older version to the latest one
Sourcefn set_user_app_data(
&mut self,
user_id: String,
category: String,
setting_items: BTreeMap<String, SettingValue>,
) -> Result<i32>
fn set_user_app_data( &mut self, user_id: String, category: String, setting_items: BTreeMap<String, SettingValue>, ) -> Result<i32>
@SetUserAppData_Summary
Sourcefn get_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<AppData>
fn get_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<AppData>
@GetUserAppData_Summary
Sourcefn remove_user_app_data(
&mut self,
user_id: String,
category: String,
setting_keys: Vec<String>,
) -> Result<i32>
fn remove_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<i32>
@RemoveUserAppData_Summary
Sourcefn setting_item_notify(&mut self, key: String, contents: JSON) -> Result<bool>
fn setting_item_notify(&mut self, key: String, contents: JSON) -> Result<bool>
Notify layer0 that a setting item has specific event