Trait TSettingSystemServiceSyncClient

Source
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§

Source

fn get_setting_item(&mut self, id: String) -> Result<SettingItem>

Get a setting data of the module.

Source

fn get_setting_items( &mut self, category: String, include_children: bool, ) -> Result<Vec<SettingItem>>

Get a list of setting data of the module.

Source

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.

Source

fn get_category_node(&mut self) -> Result<SettingTree>

Get settings and categories in a tree

Source

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

Source

fn set_setting_item(&mut self, key: String, val: String) -> Result<bool>

Set the specified setting’s “dataValue” with the new value

Source

fn set_setting_items( &mut self, key_values: BTreeMap<String, String>, ) -> Result<i32>

Set a set of settings’ “dataValue”

Source

fn restore_default( &mut self, module_name: String, category: String, ) -> Result<bool>

Restore a module setting to default

Source

fn restore_user_default( &mut self, user_id: String, module_name: String, category: String, ) -> Result<bool>

@RestoreUserDefault_Summary

Source

fn update_module_version(&mut self, module_name: String) -> Result<bool>

Update the module settings from an older version to the latest one

Source

fn set_user_app_data( &mut self, user_id: String, category: String, setting_items: BTreeMap<String, SettingValue>, ) -> Result<i32>

@SetUserAppData_Summary

Source

fn get_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<AppData>

@GetUserAppData_Summary

Source

fn remove_user_app_data( &mut self, user_id: String, category: String, setting_keys: Vec<String>, ) -> Result<i32>

@RemoveUserAppData_Summary

Source

fn setting_item_notify(&mut self, key: String, contents: JSON) -> Result<bool>

Notify layer0 that a setting item has specific event

Source

fn get_network_adapter_settings(&mut self) -> Result<NetworkSettings>

Source

fn get_lan_network_name(&mut self) -> Result<String>

Source

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>

Source

fn set_network_proxy( &mut self, proxy_server: String, proxy_port: String, ) -> Result<bool>

Source

fn connect_to_wifi(&mut self, profile_name: String, key: String) -> Result<bool>

Source

fn connect_to_appointed_wifi( &mut self, profile_name: String, auth: String, ciper: String, key_type: String, key: String, ) -> Result<bool>

Source

fn get_network_settings(&mut self) -> Result<RuyiNetworkSettings>

Source

fn get_network_status(&mut self) -> Result<RuyiNetworkStatus>

Source

fn ruyi_test_network(&mut self) -> Result<RuyiNetworkTestResult>

Source

fn ruyi_start_network_speed_test(&mut self, userindex: i32) -> Result<bool>

Source

fn ruyi_stop_network_speed_test(&mut self, userindex: i32) -> Result<bool>

Source

fn get_available_wifi(&mut self) -> Result<Vec<WifiEntity>>

Source

fn disconnect_wifi(&mut self) -> Result<bool>

Source

fn discover_bluetooth_device(&mut self) -> Result<bool>

Source

fn connect_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool>

Source

fn disconnect_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool>

Source

fn remove_bluetooth_device( &mut self, device_name: String, device_address: String, ) -> Result<bool>

Implementors§