util.h raw
1 // Copyright (c) 2018-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_QT_TEST_UTIL_H
6 #define BITCOIN_QT_TEST_UTIL_H
7
8 #include <chrono>
9
10 #include <qglobal.h>
11
12 QT_BEGIN_NAMESPACE
13 class QString;
14 QT_END_NAMESPACE
15
16 /**
17 * Press "Ok" button in message box dialog.
18 *
19 * @param text - Optionally store dialog text.
20 * @param msec - Number of milliseconds to pause before triggering the callback.
21 */
22 void ConfirmMessage(QString* text, std::chrono::milliseconds msec);
23
24 #endif // BITCOIN_QT_TEST_UTIL_H
25