6#ifndef BITCOIN_NODE_INTERFACE_UI_H
7#define BITCOIN_NODE_INTERFACE_UI_H
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);
static bool ThreadSafeMessageBox(BitcoinGUI *gui, const bilingual_str &message, const std::string &caption, unsigned int style)
The block chain is a tree shaped structure starting with the genesis block at the root,...
Signals for UI communication.
ADD_SIGNALS_DECL_WRAPPER(BannedListChanged, void, void)
Banlist did change.
ADD_SIGNALS_DECL_WRAPPER(NotifyAlertChanged, void,)
Status bar alerts changed.
ADD_SIGNALS_DECL_WRAPPER(ThreadSafeMessageBox, bool, const bilingual_str &message, const std::string &caption, unsigned int style)
Show message box.
ADD_SIGNALS_DECL_WRAPPER(NotifyNetworkActiveChanged, void, bool networkActive)
Network activity state changed.
ADD_SIGNALS_DECL_WRAPPER(ShowProgress, void, const std::string &title, int nProgress, bool resume_possible)
Show progress e.g.
ADD_SIGNALS_DECL_WRAPPER(NotifyBlockTip, void, SynchronizationState, const CBlockIndex *)
New block has been accepted.
ADD_SIGNALS_DECL_WRAPPER(InitWallet, void,)
Wallet loader created.
ADD_SIGNALS_DECL_WRAPPER(ThreadSafeQuestion, bool, const bilingual_str &message, const std::string &noninteractive_message, const std::string &caption, unsigned int style)
If possible, ask the user a question.
ADD_SIGNALS_DECL_WRAPPER(NotifyHeaderTip, void, SynchronizationState, int64_t height, int64_t timestamp, bool presync)
Best header has changed.
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
@ ICON_MASK
Mask of all available icons in CClientUIInterface::MessageBoxFlags This needs to be updated,...
@ BTN_MASK
Mask of all available buttons in CClientUIInterface::MessageBoxFlags This needs to be updated,...
@ BTN_OK
These values are taken from qmessagebox.h "enum StandardButton" to be directly usable.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
@ MODAL
Force blocking, modal message box dialog (not just OS notification)
@ SECURE
Do not print contents of message to debug log.
ADD_SIGNALS_DECL_WRAPPER(InitMessage, void, const std::string &message)
Progress message during initialization.
ADD_SIGNALS_DECL_WRAPPER(NotifyNumConnectionsChanged, void, int newNumConnections)
Number of network connections changed.
CClientUIInterface uiInterface
void InitWarning(const bilingual_str &str)
Show warning message.
bool InitError(const bilingual_str &str)
Show error message.
static void ShowProgress(SplashScreen *splash, const std::string &title, int nProgress, bool resume_possible)
static void InitMessage(SplashScreen *splash, const std::string &message)
SynchronizationState
Current sync state passed to tip changed callbacks.