GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
QuitDialog.h
1 
29 #pragma once
30 
31 #include "ui/GpgFrontendUI.h"
32 #include "ui/dialog/GeneralDialog.h"
33 
34 namespace GpgFrontend::UI {
35 
40 class QuitDialog : public GeneralDialog {
41  Q_OBJECT
42 
43  public:
50  QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs);
51 
58  [[nodiscard]] auto IsDiscarded() const -> bool;
59 
65  auto GetTabIdsToSave() -> QList<int>;
66 
67  private slots:
68 
73  void slot_my_discard();
74 
75  private:
76  bool discarded_;
77  QTableWidget* m_fileList_;
78 };
79 
80 } // namespace GpgFrontend::UI
Definition: GeneralDialog.h:35
Definition: QuitDialog.h:40
auto GetTabIdsToSave() -> QList< int >
Get the Tab Ids To Save object.
Definition: QuitDialog.cpp:135
auto IsDiscarded() const -> bool
Definition: QuitDialog.cpp:133
QuitDialog(QWidget *parent, const QHash< int, QString > &unsavedDocs)
Construct a new Quit Dialog object.
Definition: QuitDialog.cpp:33
Definition: FileReadTask.cpp:31