077e460a70651ebd1b5bbc5bdd92d9d4fff1053f
[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 license.txt or http://www.opensource.org/licenses/mit-license.php.
5 #include "ui_interface.h"
6
7 #include <string>
8 #include "headers.h"
9 #include "init.h"
10
11 int 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 bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption)
19 {
20     return true;
21 }
22
23 void MainFrameRepaint()
24 {
25 }
26
27 void AddressBookRepaint()
28 {
29 }
30
31 void InitMessage(const std::string &message)
32 {
33 }
34
35 std::string _(const char* psz)
36 {
37     return psz;
38 }
39
40 void QueueShutdown()
41 {
42     // Without UI, Shutdown can simply be started in a new thread
43     CreateThread(Shutdown, NULL);
44 }
45