Anoncoin  0.9.4
P2P Digital Currency
Public Types | Public Attributes | List of all members
CClientUIInterface Class Reference

Signals for UI communication. More...

#include <ui_interface.h>

Public Types

enum  MessageBoxFlags {
  ICON_INFORMATION = 0, ICON_WARNING = (1U << 0), ICON_ERROR = (1U << 1), ICON_MASK = (ICON_INFORMATION | ICON_WARNING | ICON_ERROR),
  BTN_OK = 0x00000400U, BTN_YES = 0x00004000U, BTN_NO = 0x00010000U, BTN_ABORT = 0x00040000U,
  BTN_RETRY = 0x00080000U, BTN_IGNORE = 0x00100000U, BTN_CLOSE = 0x00200000U, BTN_CANCEL = 0x00400000U,
  BTN_DISCARD = 0x00800000U, BTN_HELP = 0x01000000U, BTN_APPLY = 0x02000000U, BTN_RESET = 0x04000000U,
  BTN_MASK, MODAL = 0x10000000U, NOSHOWGUI = 0x20000000U, MSG_INFORMATION = ICON_INFORMATION,
  MSG_WARNING = (ICON_WARNING | BTN_OK | MODAL), MSG_ERROR = (ICON_ERROR | BTN_OK | MODAL)
}
 Flags for CClientUIInterface::ThreadSafeMessageBox. More...
 

Public Attributes

boost::signals2::signal< bool(const std::string &message, const std::string &caption, unsigned int style), boost::signals2::last_value< bool > > ThreadSafeMessageBox
 Show message box. More...
 
boost::signals2::signal< void(const std::string &message)> InitMessage
 Progress message during initialization. More...
 
boost::signals2::signal< std::string(const char *psz)> Translate
 Translate a message to the native language of the user. More...
 
boost::signals2::signal< void()> NotifyBlocksChanged
 Block chain changed. More...
 
boost::signals2::signal< void(int newNumConnections)> NotifyNumConnectionsChanged
 Number of network connections changed. More...
 
boost::signals2::signal< void(const uint256 &hash, ChangeType status)> NotifyAlertChanged
 New, updated or cancelled alert. More...
 
boost::signals2::signal< void(CWallet *wallet)> LoadWallet
 A wallet has been loaded. More...
 

Detailed Description

Signals for UI communication.

Definition at line 34 of file ui_interface.h.

Member Enumeration Documentation

Flags for CClientUIInterface::ThreadSafeMessageBox.

Enumerator
ICON_INFORMATION 
ICON_WARNING 
ICON_ERROR 
ICON_MASK 

Mask of all available icons in CClientUIInterface::MessageBoxFlags This needs to be updated, when icons are changed there!

BTN_OK 

These values are taken from qmessagebox.h "enum StandardButton" to be directly usable.

BTN_YES 
BTN_NO 
BTN_ABORT 
BTN_RETRY 
BTN_IGNORE 
BTN_CLOSE 
BTN_CANCEL 
BTN_DISCARD 
BTN_HELP 
BTN_APPLY 
BTN_RESET 
BTN_MASK 

Mask of all available buttons in CClientUIInterface::MessageBoxFlags This needs to be updated, when buttons are changed there!

MODAL 

Force blocking, modal message box dialog (not just OS notification)

NOSHOWGUI 

Don't bring GUI to foreground.

Use for messages during initialization

MSG_INFORMATION 

Predefined combinations for certain default usage cases.

MSG_WARNING 
MSG_ERROR 

Definition at line 38 of file ui_interface.h.

Member Data Documentation

boost::signals2::signal<void (const std::string &message)> CClientUIInterface::InitMessage

Progress message during initialization.

Definition at line 84 of file ui_interface.h.

boost::signals2::signal<void (CWallet* wallet)> CClientUIInterface::LoadWallet

A wallet has been loaded.

Definition at line 102 of file ui_interface.h.

boost::signals2::signal<void (const uint256 &hash, ChangeType status)> CClientUIInterface::NotifyAlertChanged

New, updated or cancelled alert.

Note
called with lock cs_mapAlerts held.

Definition at line 99 of file ui_interface.h.

boost::signals2::signal<void ()> CClientUIInterface::NotifyBlocksChanged

Block chain changed.

Definition at line 90 of file ui_interface.h.

boost::signals2::signal<void (int newNumConnections)> CClientUIInterface::NotifyNumConnectionsChanged

Number of network connections changed.

Definition at line 93 of file ui_interface.h.

boost::signals2::signal<bool (const std::string& message, const std::string& caption, unsigned int style), boost::signals2::last_value<bool> > CClientUIInterface::ThreadSafeMessageBox

Show message box.

Definition at line 81 of file ui_interface.h.

boost::signals2::signal<std::string (const char* psz)> CClientUIInterface::Translate

Translate a message to the native language of the user.

Definition at line 87 of file ui_interface.h.


The documentation for this class was generated from the following file: