Struct bitcoin_qt::AddressTableModel
source · pub struct AddressTableModel { /* private fields */ }
Expand description
| Qt model of the address book in the core. | This allows views to access and modify | the address book. |
Implementations§
source§impl AddressTableModel
impl AddressTableModel
pub fn get_edit_status(&self) -> u32
source§impl AddressTableModel
impl AddressTableModel
pub fn new(parent: *mut WalletModel, pk_hash_only: Option<bool>) -> Self
sourcepub fn row_count(&self, parent: &QModelIndex) -> i32
pub fn row_count(&self, parent: &QModelIndex) -> i32
| @name Methods overridden from QAbstractTableModel |
pub fn column_count(&self, parent: &QModelIndex) -> i32
pub fn data(&self, index: &QModelIndex, role: i32) -> u32
pub fn set_data(&mut self, index: &QModelIndex, value: &u32, role: i32) -> bool
pub fn header_data(&self, section: i32, orientation: u32, role: i32) -> u32
pub fn flags(&self, index: &QModelIndex) -> u32
pub fn index(&self, row: i32, column: i32, parent: &QModelIndex) -> QModelIndex
sourcepub fn update_entry(
&mut self,
address: &String,
label: &String,
is_mine: bool,
purpose: &String,
status: i32
)
pub fn update_entry( &mut self, address: &String, label: &String, is_mine: bool, purpose: &String, status: i32 )
| Update address list from core. |
sourcepub fn add_row(
&mut self,
ty: &String,
label: &String,
address: &String,
address_type: OutputType
) -> String
pub fn add_row( &mut self, ty: &String, label: &String, address: &String, address_type: OutputType ) -> String
| Add an address to the model. | | Returns the added address on success, | and an empty string otherwise. |
pub fn remove_rows( &mut self, row: i32, count: i32, parent: Option<&QModelIndex> ) -> bool
sourcepub fn label_for_address(&self, address: &String) -> String
pub fn label_for_address(&self, address: &String) -> String
| Look up label for address in address | book, if not found return empty string. |
sourcepub fn purpose_for_address(&self, address: &String) -> String
pub fn purpose_for_address(&self, address: &String) -> String
| Look up purpose for address in address | book, if not found return empty string. |
sourcepub fn get_address_data(
&self,
address: &String,
name: *mut String,
purpose: *mut String
) -> bool
pub fn get_address_data( &self, address: &String, name: *mut String, purpose: *mut String ) -> bool
| Look up address book data given an address | string. |
sourcepub fn lookup_address(&self, address: &String) -> i32
pub fn lookup_address(&self, address: &String) -> i32
| Look up row index of an address in the | model. | | Return -1 if not found. |
pub fn get_default_address_type(&self) -> OutputType
sourcepub fn emit_data_changed(&mut self, idx: i32)
pub fn emit_data_changed(&mut self, idx: i32)
| Notify listeners that data changed. |
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AddressTableModel
impl !Send for AddressTableModel
impl !Sync for AddressTableModel
impl Unpin for AddressTableModel
impl !UnwindSafe for AddressTableModel
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