6#ifndef BITCOIN_NODE_UI_INTERFACE_H
7#define BITCOIN_NODE_UI_INTERFACE_H
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);
130 int64_t height, int64_t timestamp,
bool presync);
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(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.
static void ShowProgress(SplashScreen *splash, const std::string &title, int nProgress, bool resume_possible)
static void InitMessage(SplashScreen *splash, const std::string &message)
CClientUIInterface uiInterface
void InitWarning(const bilingual_str &str)
Show warning message.
constexpr auto AbortError
bool InitError(const bilingual_str &str)
Show error message.
static bool NotifyHeaderTip(Chainstate &chainstate) LOCKS_EXCLUDED(cs_main)
SynchronizationState
Current sync state passed to tip changed callbacks.