tbx  0.7.3
Public Member Functions | List of all members
tbx::QuitRestarter Class Reference

Class to allow a quit cancelled during the prequit message to be restarted. More...

#include <prequitlistener.h>

Public Member Functions

 QuitRestarter ()
 Construct a quit restarter that will just close the current application when restart_quit is called.
 
 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. More...
 
 QuitRestarter (const QuitRestarter &other)
 Copy constructor.
 
QuitRestarteroperator= (const QuitRestarter &other)
 Assignment operator.
 
void close_application_only (bool close_only)
 Set the QuitRestarter to close this application and not continue a desktop shutdown. More...
 
bool close_application_only () const
 Check if this QuitRestarter will close the current application only. More...
 
void restart_quit ()
 Restart a quit application cancelled during a PreQuit message.
 

Detailed Description

Class to allow a quit cancelled during the prequit message to be restarted.

Constructor & Destructor Documentation

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
sendertask handle from the sender of the pre-quit message
close_onlyClose this application only don't restart desktop quit

Member Function Documentation

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_onlytrue 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: