12 static bool noui_ThreadSafeMessageBox(
const std::string& message,
const std::string& caption,
unsigned int style)
14 std::string strCaption;
18 strCaption +=
_(
"Error");
21 strCaption +=
_(
"Warning");
24 strCaption +=
_(
"Information");
27 strCaption += caption;
30 printf(
"%s: %s\n", strCaption.c_str(), message.c_str());
31 fprintf(stderr,
"%s: %s\n", strCaption.c_str(), message.c_str());
35 static bool noui_ThreadSafeAskFee(
int64 )
40 static void noui_InitMessage(
const std::string &message)
42 printf(
"init message: %s\n", message.c_str());
CClientUIInterface uiInterface
boost::signals2::signal< bool(int64 nFeeRequired), boost::signals2::last_value< bool > > ThreadSafeAskFee
Ask the user whether they want to pay a fee or not.
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.