16 static bool noui_ThreadSafeMessageBox(
const std::string& message,
const std::string& caption,
unsigned int style)
21 std::string strCaption;
25 strCaption +=
_(
"Error");
28 strCaption +=
_(
"Warning");
31 strCaption +=
_(
"Information");
34 strCaption += caption;
38 LogPrintf(
"%s: %s\n", strCaption, message);
39 fprintf(stderr,
"%s: %s\n", strCaption.c_str(), message.c_str());
43 static bool noui_ThreadSafeQuestion(
const std::string& ,
const std::string& message,
const std::string& caption,
unsigned int style)
45 return noui_ThreadSafeMessageBox(message, caption, style);
48 static void noui_InitMessage(
const std::string& message)
Do not print contents of message to debug log.
Signals for UI communication.
boost::signals2::signal< bool(const std::string &message, const std::string &noninteractive_message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeQuestion
If possible, ask the user a question.
boost::signals2::signal< bool(const std::string &message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeMessageBox
Show message box.
CClientUIInterface uiInterface
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
boost::signals2::signal< void(const std::string &message)> InitMessage
Progress message during initialization.
Predefined combinations for certain default usage cases.