always make 8 outbound connections even if have inbound,
[novacoin.git] / noui.h
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
4
5
6 inline int MyMessageBox(const string& message, const string& caption="Message", int style=4, void* parent=NULL, int x=-1, int y=-1)
7 {
8     printf("%s: %s\n", caption.c_str(), message.c_str());
9     fprintf(stderr, "%s: %s\n", caption.c_str(), message.c_str());
10     return 4;
11 }
12 #define wxMessageBox  MyMessageBox
13
14 inline int ThreadSafeMessageBox(const string& message, const string& caption, int style, void* parent, int x, int y)
15 {
16     return MyMessageBox(message, caption, style, parent, x, y);
17 }
18
19 inline bool ThreadSafeAskFee(int64 nFeeRequired, const string& strCaption, void* parent)
20 {
21     return true;
22 }
23
24 inline void CalledSetStatusBar(const string& strText, int nField)
25 {
26 }
27
28 inline void UIThreadCall(boost::function0<void> fn)
29 {
30 }
31
32 inline void MainFrameRepaint()
33 {
34 }