|
FOSSredder 0.5.0
|
Coordinates close requests that may need a pending workspace save. More...
#include <CloseWorkflow.h>
Public Member Functions | |
| bool | allowImmediateClose (QCloseEvent *event) |
| Accepts a close event when a deferred close is already authorized. | |
| void | requestClose (QCloseEvent *event, const std::function< void()> &requestSave) |
| Defers closing and invokes the supplied save request. | |
| bool | handleStorageOperationSucceeded (const QString &operation, const QString &saveOperation, const std::function< void()> &closeWindow) |
| Completes a deferred close after the matching save succeeded. | |
| bool | handleStorageOperationFailed (const QString &operation, const QString &saveOperation) |
| Cancels a deferred close after the matching save failed. | |
Coordinates close requests that may need a pending workspace save.
Definition at line 19 of file CloseWorkflow.h.
| bool ui::window::CloseWorkflow::allowImmediateClose | ( | QCloseEvent * | event | ) |
Accepts a close event when a deferred close is already authorized.
| event | Close event received by the main window. |
Definition at line 12 of file CloseWorkflow.cpp.
| bool ui::window::CloseWorkflow::handleStorageOperationFailed | ( | const QString & | operation, |
| const QString & | saveOperation ) |
Cancels a deferred close after the matching save failed.
| operation | Failed storage operation name. |
| saveOperation | Operation name expected for close-time save. |
Definition at line 54 of file CloseWorkflow.cpp.
| bool ui::window::CloseWorkflow::handleStorageOperationSucceeded | ( | const QString & | operation, |
| const QString & | saveOperation, | ||
| const std::function< void()> & | closeWindow ) |
Completes a deferred close after the matching save succeeded.
| operation | Completed storage operation name. |
| saveOperation | Operation name expected for close-time save. |
| closeWindow | Callback that closes the main window. |
Definition at line 41 of file CloseWorkflow.cpp.
| void ui::window::CloseWorkflow::requestClose | ( | QCloseEvent * | event, |
| const std::function< void()> & | requestSave ) |
Defers closing and invokes the supplied save request.
| event | Close event that should wait for save completion. |
| requestSave | Callback that starts the save operation. |
Definition at line 21 of file CloseWorkflow.cpp.