Class to allow a quit cancelled during the prequit message to be restarted.
More...
#include <prequitlistener.h>
Class to allow a quit cancelled during the prequit message to be restarted.
tbx::QuitRestarter::QuitRestarter |
( |
int |
sender, |
|
|
bool |
close_only |
|
) |
| |
Construct a Quit restarter which will either restart the desktop quit or just close the current application depending on the parameters.
- Parameters
-
sender | task handle from the sender of the pre-quit message |
close_only | Close this application only don't restart desktop quit |
void tbx::QuitRestarter::close_application_only |
( |
bool |
close_only | ) |
|
|
inline |
Set the QuitRestarter to close this application and not continue a desktop shutdown.
- Parameters
-
close_only | true to close this application only. It should only be set to false if the QuitRestarter was created as part of a prequit message. |
bool tbx::QuitRestarter::close_application_only |
( |
| ) |
const |
|
inline |
Check if this QuitRestarter will close the current application only.
- Returns
- true if it will only close this application. false if it will restart a desktop closedown
The documentation for this class was generated from the following files: