6 #ifndef BITCOIN_NODE_UI_INTERFACE_H 7 #define BITCOIN_NODE_UI_INTERFACE_H 29 ICON_WARNING = (1U << 0),
30 ICON_ERROR = (1U << 1),
35 ICON_MASK = (ICON_INFORMATION | ICON_WARNING | ICON_ERROR),
42 BTN_YES = 0x00004000U,
44 BTN_ABORT = 0x00040000U,
45 BTN_RETRY = 0x00080000U,
46 BTN_IGNORE = 0x00100000U,
47 BTN_CLOSE = 0x00200000U,
48 BTN_CANCEL = 0x00400000U,
49 BTN_DISCARD = 0x00800000U,
50 BTN_HELP = 0x01000000U,
51 BTN_APPLY = 0x02000000U,
52 BTN_RESET = 0x04000000U,
58 BTN_MASK = (BTN_OK | BTN_YES | BTN_NO | BTN_ABORT | BTN_RETRY |
59 BTN_IGNORE | BTN_CLOSE | BTN_CANCEL | BTN_DISCARD |
60 BTN_HELP | BTN_APPLY | BTN_RESET),
71 MSG_INFORMATION = ICON_INFORMATION,
72 MSG_WARNING = (ICON_WARNING | BTN_OK | MODAL),
73 MSG_ERROR = (ICON_ERROR | BTN_OK | MODAL)
76 #define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, args...) \ 77 rtype signal_name(args); \ 78 using signal_name##Sig = rtype(args); \ 79 boost::signals2::connection signal_name##_connect( \ 80 std::function<signal_name##Sig> fn); 87 const std::string &caption,
unsigned int style);
96 const std::string &noninteractive_message,
97 const std::string &caption,
unsigned int style);
105 int newNumConnections);
122 int nProgress,
bool resume_possible);
145 #endif // BITCOIN_NODE_UI_INTERFACE_H CClientUIInterface uiInterface
static void NotifyAlertChanged(ClientModel *clientmodel)
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
SynchronizationState
Current sync state passed to tip changed callbacks.
static void ShowProgress(ClientModel *clientmodel, const std::string &title, int nProgress)
static bool ThreadSafeMessageBox(BitcoinGUI *gui, const bilingual_str &message, const std::string &caption, unsigned int style)
Signals for UI communication.
static void InitMessage(SplashScreen *splash, const std::string &message)
constexpr auto AbortError
static bool NotifyHeaderTip() LOCKS_EXCLUDED(cs_main)
static void BannedListChanged(ClientModel *clientmodel)
void InitWarning(const bilingual_str &str)
Show warning message.
The block chain is a tree shaped structure starting with the genesis block at the root...
static void NotifyNetworkActiveChanged(ClientModel *clientmodel, bool networkActive)
bool InitError(const bilingual_str &str)
Show error message.
static void NotifyNumConnectionsChanged(ClientModel *clientmodel, int newNumConnections)
#define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, args...)