]> Git Repo - VerusCoin.git/blob - src/noui.cpp
Merge pull request #1365 from Diapolo/askpassphrasedialog
[VerusCoin.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 #include "ui_interface.h"
6 #include "init.h"
7 #include "bitcoinrpc.h"
8
9 #include <string>
10
11 static int noui_ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style)
12 {
13     printf("%s: %s\n", caption.c_str(), message.c_str());
14     fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
15     return 4;
16 }
17
18 static bool noui_ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption)
19 {
20     return true;
21 }
22
23 static void noui_QueueShutdown()
24 {
25     // Without UI, Shutdown can simply be started in a new thread
26     CreateThread(Shutdown, NULL);
27 }
28
29 void noui_connect()
30 {
31     // Connect bitcoind signal handlers
32     uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
33     uiInterface.ThreadSafeAskFee.connect(noui_ThreadSafeAskFee);
34     uiInterface.QueueShutdown.connect(noui_QueueShutdown);
35 }
This page took 0.025268 seconds and 4 git commands to generate.