16 std::string strCaption;
20 strCaption +=
_(
"Error");
23 strCaption +=
_(
"Warning");
26 strCaption +=
_(
"Information");
29 strCaption += caption;
32 LogPrintf(
"%s: %s\n", strCaption, message);
33 fprintf(stderr,
"%s: %s\n", strCaption.c_str(), message.c_str());
CClientUIInterface uiInterface
static bool noui_ThreadSafeMessageBox(const std::string &message, const std::string &caption, unsigned int style)
static void noui_InitMessage(const std::string &message)
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
boost::signals2::signal< bool(const std::string &message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeMessageBox
Show message box.
boost::signals2::signal< void(const std::string &message)> InitMessage
Progress message during initialization.
Predefined combinations for certain default usage cases.