6 #ifndef ANONCOIN_UI_INTERFACE_H
7 #define ANONCOIN_UI_INTERFACE_H
11 #if defined(HAVE_CONFIG_H)
18 #include <boost/signals2/last_value.hpp>
19 #include <boost/signals2/signal.hpp>
81 boost::signals2::signal<bool (const std::string& message, const std::string& caption, unsigned int style), boost::signals2::last_value<bool> >
ThreadSafeMessageBox;
84 boost::signals2::signal<void (const std::string &message)>
InitMessage;
87 boost::signals2::signal<std::string (const char* psz)>
Translate;
108 boost::signals2::signal<bool (
const std::string& caption,
109 const std::string& pub,
110 const std::string& priv,
111 const std::string& b32,
112 const std::string& configFileName),
113 boost::signals2::last_value<bool> > ThreadSafeShowGeneratedI2PAddress;
115 boost::signals2::signal<void (int newNumI2PConnections)> NotifyNumI2PConnectionsChanged;
116 #endif // ENABLE_I2PSAM
125 inline std::string
_(
const char* psz)
127 boost::optional<std::string> rv = uiInterface.
Translate(psz);
128 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.