noui.h raw

   1  // Copyright (c) 2013-2020 The Limenka developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef LIMENKA_NOUI_H
   6  #define LIMENKA_NOUI_H
   7  
   8  #include <string>
   9  
  10  struct bilingual_str;
  11  
  12  /** Non-GUI handler, which logs and prints messages. */
  13  bool noui_ThreadSafeMessageBox(const bilingual_str& message, const std::string& caption, unsigned int style);
  14  /** Non-GUI handler, which logs and prints questions. */
  15  bool noui_ThreadSafeQuestion(const bilingual_str& /* ignored interactive message */, const std::string& message, const std::string& caption, unsigned int style);
  16  /** Non-GUI handler, which only logs a message. */
  17  void noui_InitMessage(const std::string& message);
  18  
  19  /** Connect all limenkad signal handlers */
  20  void noui_connect();
  21  
  22  /** Redirect all limenkad signal handlers to LogPrintf. Used to check or suppress output during test runs that produce expected errors */
  23  void noui_test_redirect();
  24  
  25  /** Reconnects the regular Non-GUI handlers after having used noui_test_redirect */
  26  void noui_reconnect();
  27  
  28  #endif // LIMENKA_NOUI_H
  29