6 #ifndef BITCOIN_UI_INTERFACE_H
7 #define BITCOIN_UI_INTERFACE_H
12 #include <boost/signals2/last_value.hpp>
13 #include <boost/signals2/signal.hpp>
75 boost::signals2::signal<bool (const std::string& message, const std::string& caption, unsigned int style), boost::signals2::last_value<bool> >
ThreadSafeMessageBox;
78 boost::signals2::signal<void (const std::string &message)>
InitMessage;
81 boost::signals2::signal<std::string (const char* psz)>
Translate;
96 boost::signals2::signal<void (CWallet* wallet)>
LoadWallet;
105 inline std::string
_(
const char* psz)
107 boost::optional<std::string> rv = uiInterface.
Translate(psz);
108 return rv ? (*rv) : psz;
CClientUIInterface uiInterface
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
boost::signals2::signal< void(CWallet *wallet)> LoadWallet
A wallet has been loaded.
Mask of all available buttons in CClientUIInterface::MessageBoxFlags This needs to be updated...
Don't bring GUI to foreground.
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< 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< 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.