6 #ifndef BITCOIN_NODE_UI_INTERFACE_H 7 #define BITCOIN_NODE_UI_INTERFACE_H 31 ICON_WARNING = (1U << 0),
32 ICON_ERROR = (1U << 1),
37 ICON_MASK = (ICON_INFORMATION | ICON_WARNING | ICON_ERROR),
41 BTN_YES = 0x00004000U,
43 BTN_ABORT = 0x00040000U,
44 BTN_RETRY = 0x00080000U,
45 BTN_IGNORE = 0x00100000U,
46 BTN_CLOSE = 0x00200000U,
47 BTN_CANCEL = 0x00400000U,
48 BTN_DISCARD = 0x00800000U,
49 BTN_HELP = 0x01000000U,
50 BTN_APPLY = 0x02000000U,
51 BTN_RESET = 0x04000000U,
56 BTN_MASK = (BTN_OK | BTN_YES | BTN_NO | BTN_ABORT | BTN_RETRY | BTN_IGNORE |
57 BTN_CLOSE | BTN_CANCEL | BTN_DISCARD | BTN_HELP | BTN_APPLY | BTN_RESET),
66 MSG_INFORMATION = ICON_INFORMATION,
67 MSG_WARNING = (ICON_WARNING | BTN_OK | MODAL),
68 MSG_ERROR = (ICON_ERROR | BTN_OK | MODAL)
71 #define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, ...) \ 72 rtype signal_name(__VA_ARGS__); \ 73 using signal_name##Sig = rtype(__VA_ARGS__); \ 74 boost::signals2::connection signal_name##_connect(std::function<signal_name##Sig> fn); 121 #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.
#define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype,...)
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)