support RPC stop and encryptwallet with UI
[novacoin.git] / src / noui.h
index 458fc64..0cb42ca 100644 (file)
@@ -6,8 +6,8 @@
 #define BITCOIN_NOUI_H
 
 #include <string>
-#include <boost/function.hpp>
 #include "wallet.h"
+#include "init.h"
 
 typedef void wxWindow;
 #define wxYES                   0x00000002
@@ -55,20 +55,27 @@ inline bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption,
     return true;
 }
 
-inline void CalledSetStatusBar(const std::string& strText, int nField)
+inline void MainFrameRepaint()
 {
 }
 
-inline void UIThreadCall(boost::function0<void> fn)
+inline void AddressBookRepaint()
 {
 }
 
-inline void MainFrameRepaint()
+inline void InitMessage(const std::string &message)
 {
 }
 
-inline void InitMessage(const std::string &message)
+inline const char* _(const char* psz)
+{
+    return psz;
+}
+
+inline void QueueShutdown()
 {
+    // Without UI, Shutdown can simply be started in a new thread
+    CreateThread(Shutdown, NULL);
 }
 
 #endif