|
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_NODE_UI_INTERFACE_H
7 #define BITCOIN_NODE_UI_INTERFACE_H
70 #define ADD_SIGNALS_DECL_WRAPPER(signal_name, rtype, ...) \
71 rtype signal_name(__VA_ARGS__); \
72 using signal_name##Sig = rtype(__VA_ARGS__); \
73 boost::signals2::connection signal_name##_connect(std::function<signal_name##Sig> fn);
123 #endif // BITCOIN_NODE_UI_INTERFACE_H
Signals for UI communication.
static void NotifyAlertChanged(ClientModel *clientmodel)
@ BTN_OK
These values are taken from qmessagebox.h "enum StandardButton" to be directly usable.
static void InitMessage(SplashScreen *splash, const std::string &message)
static void ShowProgress(ClientModel *clientmodel, const std::string &title, int nProgress)
bool InitError(const bilingual_str &str)
Show error message.
void InitWarning(const bilingual_str &str)
Show warning message.
ADD_SIGNALS_DECL_WRAPPER(ThreadSafeMessageBox, bool, const bilingual_str &message, const std::string &caption, unsigned int style)
Show message box.
@ SECURE
Do not print contents of message to debug log.
@ BTN_MASK
Mask of all available buttons in CClientUIInterface::MessageBoxFlags This needs to be updated,...
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
@ MODAL
Force blocking, modal message box dialog (not just OS notification)
@ ICON_MASK
Mask of all available icons in CClientUIInterface::MessageBoxFlags This needs to be updated,...
static void BannedListChanged(ClientModel *clientmodel)
static bool NotifyHeaderTip(CChainState &chainstate) LOCKS_EXCLUDED(cs_main)
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
static bool ThreadSafeMessageBox(BitcoinGUI *gui, const bilingual_str &message, const std::string &caption, unsigned int style)
static void NotifyNumConnectionsChanged(ClientModel *clientmodel, int newNumConnections)
SynchronizationState
Current sync state passed to tip changed callbacks.
constexpr auto AbortError
The block chain is a tree shaped structure starting with the genesis block at the root,...
static void NotifyNetworkActiveChanged(ClientModel *clientmodel, bool networkActive)
CClientUIInterface uiInterface