12#include <boost/signals2/connection.hpp>
13#include <boost/signals2/signal.hpp>
21 const std::string &caption,
unsigned int style) {
25 std::string strCaption;
28 strCaption =
"Error: ";
31 strCaption =
"Warning: ";
34 strCaption =
"Information: ";
38 strCaption = caption +
": ";
50 const std::string &message,
const std::string &caption,
68 const std::string &caption,
76 const std::string &message,
const std::string &caption,
Signals for UI communication.
@ 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.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
CClientUIInterface uiInterface