noui.h
1 // Copyright (c) 2013-present The Bitcoin Core 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 BITCOIN_NOUI_H 6 #define BITCOIN_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, 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, unsigned int style); 16 /** Non-GUI handler, which only logs a message. */ 17 void noui_InitMessage(const std::string& message); 18 19 /** Connect all bitcoind signal handlers */ 20 void noui_connect(); 21 22 /** Redirect all bitcoind signal handlers to LogInfo. 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 // BITCOIN_NOUI_H