12#include <boost/signals2/connection.hpp>
13#include <boost/signals2/signal.hpp>
50 const std::string &message,
const std::string &
caption,
76 const std::string &message,
const std::string &
caption,
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
@ SECURE
Do not print contents of message to debug log.
bool noui_ThreadSafeQuestionRedirect(const bilingual_str &, const std::string &message, const std::string &caption, unsigned int style)
bool noui_ThreadSafeQuestion(const bilingual_str &, const std::string &message, const std::string &caption, unsigned int style)
Non-GUI handler, which logs and prints questions.
void noui_InitMessageRedirect(const std::string &message)
bool noui_ThreadSafeMessageBoxRedirect(const bilingual_str &message, const std::string &caption, unsigned int style)
void noui_test_redirect()
Redirect all bitcoind signal handlers to LogPrintf.
void noui_InitMessage(const std::string &message)
Non-GUI handler, which only logs a message.
void noui_reconnect()
Reconnects the regular Non-GUI handlers after having used noui_test_redirect.
boost::signals2::connection noui_ThreadSafeMessageBoxConn
Store connections so we can disconnect them when suppressing output.
boost::signals2::connection noui_InitMessageConn
boost::signals2::connection noui_ThreadSafeQuestionConn
bool noui_ThreadSafeMessageBox(const bilingual_str &message, const std::string &caption, unsigned int style)
Non-GUI handler, which logs and prints messages.
void noui_connect()
Connect all bitcoind signal handlers.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
CClientUIInterface uiInterface