tbx  0.7.5
Public Member Functions | List of all members
tbx::PreQuitListener Class Referenceabstract

Listen for the pre quit message from the desktop. More...

#include <prequitlistener.h>

Inheritance diagram for tbx::PreQuitListener:
tbx::Listener tbx::doc::DocManager

Public Member Functions

virtual void pre_quit (PreQuitEvent &event)=0
 Called when the prequit message has been received from the desktop. More...
 
- Public Member Functions inherited from tbx::Listener
virtual ~Listener ()
 Destroy the listener object.
 

Additional Inherited Members

- Protected Member Functions inherited from tbx::Listener
 Listener ()
 Construct the Listener object.
 

Detailed Description

Listen for the pre quit message from the desktop.

Member Function Documentation

◆ pre_quit()

virtual void tbx::PreQuitListener::pre_quit ( PreQuitEvent event)
pure virtual

Called when the prequit message has been received from the desktop.

To stop the application being quitted call the cancel_quit method on the passed event.

To restart the quit later take a copy of the QuitRestarter class from the event and call restart_quit on it when ready.

Implemented in tbx::doc::DocManager.


The documentation for this class was generated from the following file: