List of all members | Public Member Functions | Protected Attributes
XAbstractMessageHandler Class Referenceabstract

#include <xabstractmessagehandler.h>

Inheritance diagram for XAbstractMessageHandler:
QAbstractMessageHandler CmdLineMessageHandler GuiMessageHandler StatusBarMessageHandler

Public Member Functions

 XAbstractMessageHandler (QObject *parent=0)
 
virtual ~XAbstractMessageHandler ()
 
bool acceptDefaults () const
 
virtual QMessageBox::StandardButton question (const QString &question, QMessageBox::StandardButtons buttons=QMessageBox::Ok, QMessageBox::StandardButton defaultButton=QMessageBox::NoButton)=0
 
bool setAcceptDefaults (const bool accept)
 

Protected Attributes

bool _acceptDefaults
 

Constructor & Destructor Documentation

◆ XAbstractMessageHandler()

XAbstractMessageHandler::XAbstractMessageHandler ( QObject parent = 0)

◆ ~XAbstractMessageHandler()

XAbstractMessageHandler::~XAbstractMessageHandler ( )
virtual

Member Function Documentation

◆ acceptDefaults()

bool XAbstractMessageHandler::acceptDefaults ( ) const

◆ question()

virtual QMessageBox::StandardButton XAbstractMessageHandler::question ( const QString &  question,
QMessageBox::StandardButtons  buttons = QMessageBox::Ok,
QMessageBox::StandardButton  defaultButton = QMessageBox::NoButton 
)
pure virtual

◆ setAcceptDefaults()

bool XAbstractMessageHandler::setAcceptDefaults ( const bool  accept)

Set whether or not the message handler should automatically accept the defaultButton when ::question() is called. This is initially set to false.

Parameters
accepttrue indicates yes, accept the default value false indicates no, ask the question and let the user decide
Returns
the previous setting

Member Data Documentation

◆ _acceptDefaults

bool XAbstractMessageHandler::_acceptDefaults
protected

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17