Reaction to disconnect from a server.
More...
#include <pqServerDisconnectReaction.h>
Reaction to disconnect from a server.
Definition at line 14 of file pqServerDisconnectReaction.h.
◆ pqServerDisconnectReaction()
pqServerDisconnectReaction::pqServerDisconnectReaction |
( |
QAction * |
parent | ) |
|
Constructor.
Parent cannot be nullptr.
◆ disconnectFromServer()
static void pqServerDisconnectReaction::disconnectFromServer |
( |
| ) |
|
|
static |
Disconnects from active server.
Note that this method is static. Applications can simply use this without having to create a reaction instance.
◆ disconnectFromServerWithWarning()
static bool pqServerDisconnectReaction::disconnectFromServerWithWarning |
( |
| ) |
|
|
static |
Disconnects from active server with a warning message to the user to confirm that active proxies will be destroyed, if any.
Returns true if disconnect happened, false if not i.e. the user cancelled the operation.
◆ onTriggered()
void pqServerDisconnectReaction::onTriggered |
( |
| ) |
|
|
overrideprotectedvirtual |
Called when the action is triggered.
Reimplemented from pqReaction.
◆ UpdateTimer
pqTimer pqServerDisconnectReaction::UpdateTimer |
|
protected |
The documentation for this class was generated from the following file: