86437150ba2637b50e846eccb5a8cd292e45af08
[novacoin.git] / src / noui.cpp
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2012 The Bitcoin developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6 #include "interface.h"
7
8 #include <string>
9
10 static int noui_ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style)
11 {
12     printf("%s: %s\n", caption.c_str(), message.c_str());
13     fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
14     return 4;
15 }
16
17 static bool noui_ThreadSafeAskFee(int64_t nFeeRequired, const std::string& strCaption)
18 {
19     return true;
20 }
21
22 void noui_connect()
23 {
24     // Connect bitcoind signal handlers
25     uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
26     uiInterface.ThreadSafeAskFee.connect(noui_ThreadSafeAskFee);
27 }