|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
An event object passed to shutdown listeners to allow vetoing. More...
#include <software_update.h>
Public Member Functions | |
| void | accept () |
| Signal that this listener consents to the shutdown. | |
| void | reject (const QString &reason={}) |
| Veto the shutdown with an optional explanatory message. | |
| bool | isAccepted () const |
| Return whether the shutdown has been accepted. | |
| QString | reason () const |
| Return the reason provided to the most recent reject() call. | |
An event object passed to shutdown listeners to allow vetoing.
| bool ShutdownEvent::isAccepted | ( | ) | const |
| QString ShutdownEvent::reason | ( | ) | const |
Return the reason provided to the most recent reject() call.
| void ShutdownEvent::reject | ( | const QString & | reason = {} | ) |
Veto the shutdown with an optional explanatory message.
| reason | A human-readable string explaining why the shutdown is being blocked, shown to the user. May be empty. |