Struct bitcoin_qt::OptionsModel
source · pub struct OptionsModel { /* private fields */ }
Expand description
| Interface from Qt to configuration | data structure for Bitcoin client. | | To Qt, the options are presented as a | list with the different options laid | out vertically. | | This can be changed to a tree once the | settings become sufficiently complex. |
Implementations§
source§impl OptionsModel
impl OptionsModel
sourcepub fn get_show_tray_icon(&self) -> bool
pub fn get_show_tray_icon(&self) -> bool
| Explicit getters |
pub fn get_minimize_to_tray(&self) -> bool
pub fn get_minimize_on_close(&self) -> bool
pub fn get_display_unit(&self) -> i32
pub fn get_third_party_tx_urls(&self) -> String
pub fn get_use_embedded_monospaced_font(&self) -> bool
pub fn get_coin_control_features(&self) -> bool
pub fn get_sub_fee_from_amount(&self) -> bool
pub fn get_overridden_by_command_line(&mut self) -> &String
pub fn node(&self) -> Rc<RefCell<dyn NodeInterface>>
pub fn set_node(&mut self, node: Rc<RefCell<dyn NodeInterface>>)
pub fn display_unit_changed(&mut self, unit: i32)
pub fn coin_control_features_changed(&mut self, _0: bool)
pub fn show_tray_icon_changed(&mut self, _0: bool)
pub fn use_embedded_monospaced_font_changed(&mut self, _0: bool)
pub fn new(parent: Option<*mut u32>, reset_settings: Option<bool>) -> Self
sourcepub fn add_overridden_option(&mut self, option: &String)
pub fn add_overridden_option(&mut self, option: &String)
| Add option to list of GUI options overridden | through command line/config file |
sourcepub fn init(&mut self, reset_settings: Option<bool>)
pub fn init(&mut self, reset_settings: Option<bool>)
| Writes all missing QSettings with their | default values |
pub fn reset(&mut self)
pub fn row_count(&self, parent: Option<&QModelIndex>) -> i32
pub fn set_prune_enabled(&mut self, prune: bool, force: Option<bool>)
pub fn set_prune_targetgb(&mut self, prune_target_gb: i32, force: Option<bool>)
sourcepub fn data(&self, index: &QModelIndex, role: Option<i32>) -> u32
pub fn data(&self, index: &QModelIndex, role: Option<i32>) -> u32
read QSettings values and return them
sourcepub fn set_data(
&mut self,
index: &QModelIndex,
value: &u32,
role: Option<i32>
) -> bool
pub fn set_data( &mut self, index: &QModelIndex, value: &u32, role: Option<i32> ) -> bool
| write QSettings values |
sourcepub fn set_display_unit(&mut self, value: &u32)
pub fn set_display_unit(&mut self, value: &u32)
| Updates current unit in memory, settings | and emits displayUnitChanged(newUnit) | signal |
pub fn set_restart_required(&mut self, required: bool)
pub fn is_restart_required(&self) -> bool
sourcepub fn check_and_migrate(&mut self)
pub fn check_and_migrate(&mut self)
| Check settings version and upgrade | default values if required |
Auto Trait Implementations§
impl !RefUnwindSafe for OptionsModel
impl !Send for OptionsModel
impl !Sync for OptionsModel
impl Unpin for OptionsModel
impl !UnwindSafe for OptionsModel
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more