9#include <boost/signals2/optional_last_value.hpp>
10#include <boost/signals2/signal.hpp>
15 boost::signals2::signal<CClientUIInterface::ThreadSafeMessageBoxSig,
16 boost::signals2::optional_last_value<bool>>
18 boost::signals2::signal<CClientUIInterface::ThreadSafeQuestionSig,
19 boost::signals2::optional_last_value<bool>>
21 boost::signals2::signal<CClientUIInterface::InitMessageSig>
InitMessage;
22 boost::signals2::signal<CClientUIInterface::NotifyNumConnectionsChangedSig>
24 boost::signals2::signal<CClientUIInterface::NotifyNetworkActiveChangedSig>
26 boost::signals2::signal<CClientUIInterface::NotifyAlertChangedSig>
28 boost::signals2::signal<CClientUIInterface::ShowProgressSig>
ShowProgress;
29 boost::signals2::signal<CClientUIInterface::NotifyBlockTipSig>
31 boost::signals2::signal<CClientUIInterface::NotifyHeaderTipSig>
33 boost::signals2::signal<CClientUIInterface::BannedListChangedSig>
38#define ADD_SIGNALS_IMPL_WRAPPER(signal_name) \
39 boost::signals2::connection CClientUIInterface::signal_name##_connect( \
40 std::function<signal_name##Sig> fn) { \
41 return g_ui_signals.signal_name.connect(fn); \
56 const std::string &caption,
61bool CClientUIInterface::ThreadSafeQuestion(
62 const bilingual_str &message,
const std::string &non_interactive_message,
63 const std::string &caption,
unsigned int style) {
71void CClientUIInterface::NotifyNumConnectionsChanged(
int newNumConnections) {
74void CClientUIInterface::NotifyNetworkActiveChanged(
bool networkActive) {
77void CClientUIInterface::NotifyAlertChanged() {
81 bool resume_possible) {
89 int64_t timestamp,
bool presync) {
92void CClientUIInterface::BannedListChanged() {
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.
static void ShowProgress(SplashScreen *splash, const std::string &title, int nProgress, bool resume_possible)
static void InitMessage(SplashScreen *splash, const std::string &message)
boost::signals2::signal< CClientUIInterface::BannedListChangedSig > BannedListChanged
boost::signals2::signal< CClientUIInterface::NotifyAlertChangedSig > NotifyAlertChanged
boost::signals2::signal< CClientUIInterface::NotifyHeaderTipSig > NotifyHeaderTip
boost::signals2::signal< CClientUIInterface::NotifyBlockTipSig > NotifyBlockTip
boost::signals2::signal< CClientUIInterface::ThreadSafeQuestionSig, boost::signals2::optional_last_value< bool > > ThreadSafeQuestion
boost::signals2::signal< CClientUIInterface::InitMessageSig > InitMessage
boost::signals2::signal< CClientUIInterface::ThreadSafeMessageBoxSig, boost::signals2::optional_last_value< bool > > ThreadSafeMessageBox
boost::signals2::signal< CClientUIInterface::NotifyNumConnectionsChangedSig > NotifyNumConnectionsChanged
boost::signals2::signal< CClientUIInterface::NotifyNetworkActiveChangedSig > NotifyNetworkActiveChanged
boost::signals2::signal< CClientUIInterface::ShowProgressSig > ShowProgress
static UISignals g_ui_signals
CClientUIInterface uiInterface
void InitWarning(const bilingual_str &str)
Show warning message.
#define ADD_SIGNALS_IMPL_WRAPPER(signal_name)
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.