noui.cpp 689 B

1234567891011121314151617181920212223242526
  1. // ECOin - Copyright (c) - 2014/2022 - GPLv3 - epsylon@riseup.net (https://03c8.net)
  2. #include "ui_interface.h"
  3. #include "init.h"
  4. #include "ecoinrpc.h"
  5. #include <string>
  6. static int noui_ThreadSafeMessageBox(const std::string& message, const std::string& caption, int style)
  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. static bool noui_ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption)
  13. {
  14. return true;
  15. }
  16. void noui_connect()
  17. {
  18. uiInterface.ThreadSafeMessageBox.connect(noui_ThreadSafeMessageBox);
  19. uiInterface.ThreadSafeAskFee.connect(noui_ThreadSafeAskFee);
  20. }