20 #ifndef AUTOCLOSINGMESSAGEBOX_H
21 #define AUTOCLOSINGMESSAGEBOX_H
23 #include <QMessageBox>
24 #include "../core/messages/messagelistener.h"
58 StandardButton buttons = StandardButton::Ok);
79 virtual void closeEvent(QCloseEvent *e)
override final;
89 virtual int exec() override final;
96 #endif // AUTOCLOSINGMESSAGEBOX_H
std::shared_ptr< Message > MessagePtr
Global type of a shared message pointer.
~AutoClosingMessageBox()
Destructor.
CloseReason
Reasons for the dialog to close automatically.
virtual void closeEvent(QCloseEvent *e) overridefinal
Reimplementation of the close event.
AutoClosingMessageBox(QWidget *parent, CloseReason closeReason, Icon icon, const QString &title, const QString &text, StandardButton buttons=StandardButton::Ok)
Constructor.
virtual int exec() overridefinal
Executing of the dialog is forbidden.
const CloseReason mCloseReason
Reason to close the dialog automatically.
MSG_RECORDING_STARTED was received.
a dialog that will automatically close on a event (message).
virtual void handleMessage(MessagePtr m) overridefinal
Message handling.