crate::ix!();
pub enum SynchronizationState {
INIT_REINDEX,
INIT_DOWNLOAD,
POST_INIT
}
pub fn get_synchronization_state(init: bool) -> SynchronizationState {
todo!();
}
#[derive(Default,Clone)]
pub struct ClientUIInterface {
}
pub mod client_ui_interface {
use super::*;
macro_rules! add_signals_decl_wrapper {
($signal_name:ident,
$rtype:ty,
$($arg:ty: $argty:ty),*) => {
}
}
add_signals_decl_wrapper!{
ThreadSafeMessageBox,
bool,
message: &BilingualStr,
caption: &String,
style: u32
}
add_signals_decl_wrapper!{
ThreadSafeQuestion,
bool,
message: &BilingualStr,
noninteractive_message: &String,
caption: &String,
style: u32
}
add_signals_decl_wrapper!{
InitMessage,
c_void,
message: &String
}
add_signals_decl_wrapper!{
NotifyNumConnectionsChanged,
c_void,
new_num_connections: i32
}
add_signals_decl_wrapper!{
NotifyNetworkActiveChanged,
c_void,
network_active: bool
}
add_signals_decl_wrapper!{
NotifyAlertChanged,
c_void,
}
add_signals_decl_wrapper!{
ShowProgress,
c_void,
title: &String,
n_progress: i32,
resume_possible: bool
}
add_signals_decl_wrapper!{
NotifyBlockTip,
c_void,
_0: SynchronizationState,
_1: *const CBlockIndex
}
add_signals_decl_wrapper!{
NotifyHeaderTip,
c_void,
_0: SynchronizationState,
_1: *const CBlockIndex
}
add_signals_decl_wrapper!{
BannedListChanged,
c_void,
_0: c_void
}
}
impl ClientUIInterface {
pub fn thread_safe_message_box(&mut self,
message: &BilingualStr,
caption: &str,
style: u32) -> bool {
todo!();
}
pub fn thread_safe_question(&mut self,
message: &BilingualStr,
non_interactive_message: &str,
caption: &str,
style: u32) -> bool {
todo!();
}
pub fn init_message(&mut self, message: &str) {
todo!();
}
pub fn notify_num_connections_changed(&mut self, new_num_connections: i32) {
todo!();
}
pub fn notify_network_active_changed(&mut self, network_active: bool) {
todo!();
}
pub fn notify_alert_changed(&mut self) {
todo!();
}
pub fn show_progress(&mut self,
title: &str,
n_progress: i32,
resume_possible: bool) {
todo!();
}
pub fn notify_block_tip(&mut self,
s: SynchronizationState,
i: *const BlockIndex) {
todo!();
}
pub fn notify_header_tip(&mut self,
s: SynchronizationState,
i: *const BlockIndex) {
todo!();
}
pub fn banned_list_changed(&mut self) {
todo!();
}
}