Workspace 6.21.5
List of all members
ShutdownEvent Class Reference

Event raised when the main application event loop stops. More...

#include <Workspace/Application/globalnotifications.h>

Inheritance diagram for ShutdownEvent:
[legend]

Additional Inherited Members

- Public Member Functions inherited from ObservableEventType< ShutdownEvent >
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::AllObservableEvents > & eventID ()
 
CSIRO_WORKSPACE_API const EventIDSingleton< CSIRO::DataExecution::ProgressEvent > & eventID ()
 
const EventIDSingleton< ShutdownEvent > & getEventID () const override
 
- Public Member Functions inherited from ObservableEvent
virtual ~ObservableEvent ()=default
 
virtual const EventIDgetEventID () const =0
 
- Static Public Member Functions inherited from ObservableEventType< ShutdownEvent >
static const EventIDSingleton< ShutdownEvent > & eventID ()
 
- Protected Member Functions inherited from ObservableEventType< ShutdownEvent >
 ObservableEventType ()=default
 

Detailed Description

This event is an alternative to the QCoreApplication::aboutToQuit() signal. It has all of the same weaknesses and stengths, since the GlobalNotifications singleton simply listens for that signal and emits a ShutdownEvent notification if it catches one. Thus, for applications that start the main event loop, a ShutdownEvent is raised, but for applications that do not start the main event loop, there will be no ShutdownEvent notification.

See also
ForcedShutdownEvent