14#include <boost/signals2/connection.hpp>
15#include <boost/signals2/signal.hpp>
27 std::string strCaption;
30 strCaption =
"Error: ";
34 strCaption =
"Warning: ";
38 strCaption =
"Information: ";
42 strCaption = caption +
": ";
Signals for UI communication.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
@ SECURE
Do not print contents of message to debug log.
CClientUIInterface uiInterface
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.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.