15 static bool noui_ThreadSafeMessageBox(
const std::string& message,
const std::string& caption,
unsigned int style)
20 std::string strCaption;
24 strCaption +=
_(
"Error");
27 strCaption +=
_(
"Warning");
30 strCaption +=
_(
"Information");
33 strCaption += caption;
37 LogPrintf(
"%s: %s\n", strCaption, message);
38 fprintf(stderr,
"%s: %s\n", strCaption.c_str(), message.c_str());
42 static bool noui_ThreadSafeQuestion(
const std::string& ,
const std::string& message,
const std::string& caption,
unsigned int style)
44 return noui_ThreadSafeMessageBox(message, caption, style);
47 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.