25 std::string strCaption;
28 strCaption =
"Error: ";
32 strCaption =
"Warning: ";
36 strCaption =
"Information: ";
54 LogInfo(
"init message: %s", message);
77 LogInfo(
"init message: %s", message);
Signals for UI communication.
btcsignals::signal< void(const std::string &message)> InitMessage
Progress message during initialization.
btcsignals::signal< bool(const bilingual_str &message, const std::string &noninteractive_message, unsigned int style), btcsignals::any_of > ThreadSafeQuestion
If possible, ask the user a question.
btcsignals::signal< void(const bilingual_str &message, unsigned int style)> ThreadSafeMessageBox
Show message box.
@ MSG_INFORMATION
Predefined combinations for certain default usage cases.
@ SECURE
Do not print contents of message to debug log.
void disconnect()
If a callback is associated with this connection, prevent it from being called in the future.
connection connect(Callable &&func) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
CClientUIInterface uiInterface
btcsignals::connection noui_InitMessageConn
bool noui_ThreadSafeQuestion(const bilingual_str &, const std::string &message, unsigned int style)
Non-GUI handler, which logs and prints questions.
btcsignals::connection noui_ThreadSafeMessageBoxConn
Store connections so we can disconnect them when suppressing output.
btcsignals::connection noui_ThreadSafeQuestionConn
void noui_InitMessageRedirect(const std::string &message)
void noui_ThreadSafeMessageBox(const bilingual_str &message, unsigned int style)
Non-GUI handler, which logs and prints messages.
bool noui_ThreadSafeQuestionRedirect(const bilingual_str &, const std::string &message, unsigned int style)
void noui_test_redirect()
Redirect all bitcoind signal handlers to LogInfo.
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.
void noui_ThreadSafeMessageBoxRedirect(const bilingual_str &message, unsigned int style)
void noui_connect()
Connect all bitcoind signal handlers.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.