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

source

pub fn get_show_tray_icon(&self) -> bool

| Explicit getters |

source

pub fn get_minimize_to_tray(&self) -> bool

source

pub fn get_minimize_on_close(&self) -> bool

source

pub fn get_display_unit(&self) -> i32

source

pub fn get_third_party_tx_urls(&self) -> String

source

pub fn get_use_embedded_monospaced_font(&self) -> bool

source

pub fn get_coin_control_features(&self) -> bool

source

pub fn get_sub_fee_from_amount(&self) -> bool

source

pub fn get_overridden_by_command_line(&mut self) -> &String

source

pub fn node(&self) -> Rc<RefCell<dyn NodeInterface>>

source

pub fn set_node(&mut self, node: Rc<RefCell<dyn NodeInterface>>)

source

pub fn display_unit_changed(&mut self, unit: i32)

source

pub fn coin_control_features_changed(&mut self, _0: bool)

source

pub fn show_tray_icon_changed(&mut self, _0: bool)

source

pub fn use_embedded_monospaced_font_changed(&mut self, _0: bool)

source

pub fn new(parent: Option<*mut u32>, reset_settings: Option<bool>) -> Self

source

pub fn add_overridden_option(&mut self, option: &String)

| Add option to list of GUI options overridden | through command line/config file |

source

pub fn init(&mut self, reset_settings: Option<bool>)

| Writes all missing QSettings with their | default values |

source

pub fn reset(&mut self)

source

pub fn row_count(&self, parent: Option<&QModelIndex>) -> i32

source

pub fn set_prune_enabled(&mut self, prune: bool, force: Option<bool>)

source

pub fn set_prune_targetgb(&mut self, prune_target_gb: i32, force: Option<bool>)

source

pub fn data(&self, index: &QModelIndex, role: Option<i32>) -> u32

read QSettings values and return them

source

pub fn set_data( &mut self, index: &QModelIndex, value: &u32, role: Option<i32> ) -> bool

| write QSettings values |

source

pub fn set_display_unit(&mut self, value: &u32)

| Updates current unit in memory, settings | and emits displayUnitChanged(newUnit) | signal |

source

pub fn set_restart_required(&mut self, required: bool)

source

pub fn is_restart_required(&self) -> bool

source

pub fn check_and_migrate(&mut self)

| Check settings version and upgrade | default values if required |

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> StaticUpcast<T> for T

§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V