X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fui_interface.h;h=d62e64bc94f99bebcd9c9543dbcb0f4b5648ca51;hb=63e4509c569f16145ab861717baf865fc6d05af1;hp=0f7fdef26410f7d543b134557d719ddbcebed913;hpb=84a4a7763f386934da90e2bd1e355b70023fa9ca;p=novacoin.git diff --git a/src/ui_interface.h b/src/ui_interface.h index 0f7fdef..d62e64b 100644 --- a/src/ui_interface.h +++ b/src/ui_interface.h @@ -6,10 +6,11 @@ #define BITCOIN_UI_INTERFACE_H #include -#include "util.h" // for int64 #include #include +#include "util.h" + class CBasicKeyStore; class CWallet; class uint256; @@ -56,14 +57,20 @@ public: MORE = 0x00010000, SETUP = 0x00020000, // Force blocking, modal message box dialog (not just OS notification) - MODAL = 0x00040000 + MODAL = 0x00040000, + + /** Predefined combinations for certain default usage cases */ + MSG_INFORMATION = ICON_INFORMATION, + MSG_WARNING = (ICON_WARNING | OK | MODAL), + MSG_ERROR = (ICON_ERROR | OK | MODAL) + }; /** Show message box. */ boost::signals2::signal ThreadSafeMessageBox; /** Ask the user whether they want to pay a fee or not. */ - boost::signals2::signal > ThreadSafeAskFee; + boost::signals2::signal > ThreadSafeAskFee; /** Handle a URL passed at the command line. */ boost::signals2::signal ThreadSafeHandleURI;