15 #include <boost/signals2/connection.hpp> 22 std::string strCaption;
26 strCaption +=
_(
"Error");
29 strCaption +=
_(
"Warning");
32 strCaption +=
_(
"Information");
35 strCaption += caption;
39 LogPrintf(
"%s: %s\n", strCaption, message);
40 fprintf(stderr,
"%s: %s\n", strCaption.c_str(), message.c_str());
44 bool noui_ThreadSafeQuestion(
const std::string& ,
const std::string& message,
const std::string& caption,
unsigned int style)
51 LogPrintf(
"init message: %s\n", message);
bool noui_ThreadSafeQuestion(const std::string &, const std::string &message, const std::string &caption, unsigned int style)
Non-GUI handler, which logs and prints questions.
Do not print contents of message to debug log.
void noui_connect()
Connect all bsha3d signal handlers.
void noui_InitMessage(const std::string &message)
Non-GUI handler, which only logs a message.
Signals for UI communication.
bool noui_ThreadSafeMessageBox(const std::string &message, const std::string &caption, unsigned int style)
Non-GUI handler, which logs and prints messages.
CClientUIInterface uiInterface
std::string _(const char *psz)
Translation function.
Predefined combinations for certain default usage cases.