5 #ifndef BITCOIN_UI_INTERFACE_H
6 #define BITCOIN_UI_INTERFACE_H
10 #include <boost/signals2/signal.hpp>
11 #include <boost/signals2/last_value.hpp>
71 boost::signals2::signal<bool (const std::string& message, const std::string& caption, unsigned int style), boost::signals2::last_value<bool> >
ThreadSafeMessageBox;
74 boost::signals2::signal<bool (int64 nFeeRequired), boost::signals2::last_value<bool> >
ThreadSafeAskFee;
80 boost::signals2::signal<void (const std::string &message)>
InitMessage;
83 boost::signals2::signal<std::string (const char* psz)>
Translate;
104 inline std::string
_(
const char* psz)
106 boost::optional<std::string> rv = uiInterface.
Translate(psz);
107 return rv ? (*rv) : psz;
CClientUIInterface uiInterface
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
Mask of all available buttons in CClientUIInterface::MessageBoxFlags This needs to be updated...
Signals for UI communication.
Force blocking, modal message box dialog (not just OS notification)
ChangeType
General change type (added, updated, removed).
boost::signals2::signal< std::string(const char *psz)> Translate
Translate a message to the native language of the user.
boost::signals2::signal< bool(int64 nFeeRequired), boost::signals2::last_value< bool > > ThreadSafeAskFee
Ask the user whether they want to pay a fee or not.
boost::signals2::signal< void(int newNumConnections)> NotifyNumConnectionsChanged
Number of network connections changed.
These values are taken from qmessagebox.h "enum StandardButton" to be directly usable.
boost::signals2::signal< void(const uint256 &hash, ChangeType status)> NotifyAlertChanged
New, updated or cancelled alert.
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result...
boost::signals2::signal< void()> NotifyBlocksChanged
Block chain changed.
Mask of all available icons in CClientUIInterface::MessageBoxFlags This needs to be updated...
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
boost::signals2::signal< void(const std::string &strURI)> ThreadSafeHandleURI
Handle a URL passed at the command line.
boost::signals2::signal< bool(const std::string &message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeMessageBox
Show message box.
Basic key store, that keeps keys in an address->secret map.
boost::signals2::signal< void(const std::string &message)> InitMessage
Progress message during initialization.
Predefined combinations for certain default usage cases.