Qt Utilities 6.18.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Loading...
Searching...
No Matches
QtUtilities::RestartHandler Class Reference

The RestartHandler class allows quitting and respawning the application if a restart is requested. More...

#include <updater.h>

Public Member Functions

 RestartHandler ()
bool isRestartRequested ()
void requestRestart ()
void reset ()
void respawnIfRestartRequested ()
std::function< void()> requester ()

Detailed Description

The RestartHandler class allows quitting and respawning the application if a restart is requested.

Remarks
This class is experimental and might be changed in incompatible ways (API and ABI wise) or completely removed in further minor/patch releases.

Definition at line 245 of file updater.h.

Constructor & Destructor Documentation

◆ RestartHandler()

QtUtilities::RestartHandler::RestartHandler ( )
inlineexplicit

Definition at line 247 of file updater.h.

Member Function Documentation

◆ isRestartRequested()

bool QtUtilities::RestartHandler::isRestartRequested ( )
inline

Definition at line 251 of file updater.h.

◆ requester()

std::function< void()> QtUtilities::RestartHandler::requester ( )
inline

Definition at line 261 of file updater.h.

◆ requestRestart()

void QtUtilities::RestartHandler::requestRestart ( )

Definition at line 1226 of file updater.cpp.

◆ reset()

void QtUtilities::RestartHandler::reset ( )
inline

Definition at line 256 of file updater.h.

◆ respawnIfRestartRequested()

void QtUtilities::RestartHandler::respawnIfRestartRequested ( )

Definition at line 1234 of file updater.cpp.


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