List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
CmdLineMessageHandler Class Reference

#include <cmdlinemessagehandler.h>

Inheritance diagram for CmdLineMessageHandler:
XAbstractMessageHandler QAbstractMessageHandler

Public Member Functions

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

Protected Member Functions

virtual void handleMessage (QtMsgType type, const QString &description, const QUrl &identifier, const QSourceLocation &sourceLocation)
 

Protected Attributes

bool _acceptDefaults
 

Constructor & Destructor Documentation

◆ CmdLineMessageHandler()

CmdLineMessageHandler::CmdLineMessageHandler ( QObject parent = 0)

◆ ~CmdLineMessageHandler()

CmdLineMessageHandler::~CmdLineMessageHandler ( )
virtual

Member Function Documentation

◆ acceptDefaults()

bool XAbstractMessageHandler::acceptDefaults ( ) const
inherited

◆ handleMessage()

void CmdLineMessageHandler::handleMessage ( QtMsgType  type,
const QString &  description,
const QUrl &  identifier,
const QSourceLocation &  sourceLocation 
)
protectedvirtual

◆ question()

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

◆ setAcceptDefaults()

bool XAbstractMessageHandler::setAcceptDefaults ( const bool  accept)
inherited

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
protectedinherited

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