GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
QuitDialog.h
1 
29 #ifndef __QUITDIALOG_H__
30 #define __QUITDIALOG_H__
31 
32 #include "ui/GpgFrontendUI.h"
33 
34 namespace GpgFrontend::UI {
35 
40 class QuitDialog : public QDialog {
41  Q_OBJECT
42 
43  public:
50  QuitDialog(QWidget* parent, const QHash<int, QString>& unsavedDocs);
51 
58  [[nodiscard]] bool IsDiscarded() const;
59 
65  QList<int> GetTabIdsToSave();
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
81 
82 #endif // __QUITDIALOG_H__
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::QuitDialog::IsDiscarded
bool IsDiscarded() const
Definition: QuitDialog.cpp:133
GpgFrontend::UI::QuitDialog::QuitDialog
QuitDialog(QWidget *parent, const QHash< int, QString > &unsavedDocs)
Construct a new Quit Dialog object.
Definition: QuitDialog.cpp:35
GpgFrontend::UI::QuitDialog
Definition: QuitDialog.h:40
GpgFrontend::UI::QuitDialog::GetTabIdsToSave
QList< int > GetTabIdsToSave()
Get the Tab Ids To Save object.
Definition: QuitDialog.cpp:135