10#include <boost/signals2/optional_last_value.hpp>
11#include <boost/signals2/signal.hpp>
18 boost::signals2::signal<CClientUIInterface::ThreadSafeMessageBoxSig, boost::signals2::optional_last_value<bool>>
ThreadSafeMessageBox;
19 boost::signals2::signal<CClientUIInterface::ThreadSafeQuestionSig, boost::signals2::optional_last_value<bool>>
ThreadSafeQuestion;
20 boost::signals2::signal<CClientUIInterface::InitMessageSig>
InitMessage;
21 boost::signals2::signal<CClientUIInterface::InitWalletSig>
InitWallet;
25 boost::signals2::signal<CClientUIInterface::ShowProgressSig>
ShowProgress;
26 boost::signals2::signal<CClientUIInterface::NotifyBlockTipSig>
NotifyBlockTip;
32#define ADD_SIGNALS_IMPL_WRAPPER(signal_name) \
33 boost::signals2::connection CClientUIInterface::signal_name##_connect(std::function<signal_name##Sig> fn) \
35 return g_ui_signals.signal_name.connect(fn); \
51bool CClientUIInterface::ThreadSafeQuestion(
const bilingual_str& message,
const std::string& non_interactive_message,
const std::string& caption,
unsigned int style) {
return g_ui_signals.
ThreadSafeQuestion(message, non_interactive_message, caption, style).value_or(
false);}
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 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.
std::string MakeUnorderedList(const std::vector< std::string > &items)
Create an unordered multi-line list of items.
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::InitWalletSig > InitWallet
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
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
SynchronizationState
Current sync state passed to tip changed callbacks.