diff options
author | Saturneric <[email protected]> | 2021-07-12 09:03:12 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-12 09:03:12 +0000 |
commit | 4ada913c515cf090c65d9d155aa9880a50501591 (patch) | |
tree | 72043033991b643a2cce437f22497a961d73a745 /include/MainWindow.h | |
parent | Update Documents; Update UI (diff) | |
download | GpgFrontend-4ada913c515cf090c65d9d155aa9880a50501591.tar.gz GpgFrontend-4ada913c515cf090c65d9d155aa9880a50501591.zip |
Project structure adjustment;
Project configuration adjustment;
Add version detection;
UI interface improvements;
Introduce JSON processing library;
Update Documents;
Diffstat (limited to 'include/MainWindow.h')
-rw-r--r-- | include/MainWindow.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/MainWindow.h b/include/MainWindow.h index 418a56db..1137dfed 100644 --- a/include/MainWindow.h +++ b/include/MainWindow.h @@ -31,7 +31,7 @@ #include "ui/widgets/TextEdit.h" #include "ui/FileEncryptionDialog.h" #include "ui/SettingsDialog.h" -#include "ui/AboutDialog.h" +#include "ui/help/AboutDialog.h" #include "ui/widgets/InfoBoardWidget.h" #include "ui/FindWidget.h" #include "ui/Wizard.h" @@ -217,6 +217,11 @@ private slots: void slotAbout(); /** + * @details Open check-update-tab in about-dialog. + */ + void slotCheckUpdate(); + + /** * @details Open File Opera Tab */ void slotOpenFileTab(); @@ -258,6 +263,11 @@ private slots: */ void slotSetRestartNeeded(bool needed); + /** + * @details called when need to upgrade. + */ + void slotVersionUpgrade(const QString ¤tVersion, const QString &latestVersion); + private: /** * @details Create actions for the main-menu and the context-menu of the keylist. @@ -363,6 +373,7 @@ private: QAction *zoomInAct; /** Action to zoom in */ QAction *zoomOutAct; /** Action to zoom out */ QAction *aboutAct; /** Action to open about dialog */ + QAction *checkUpdateAct; /** Action to open about dialog */ QAction *fileEncryptAct; /** Action to open dialog for encrypting file */ QAction *fileDecryptAct; /** Action to open dialog for decrypting file */ QAction *fileSignAct; /** Action to open dialog for signing file */ @@ -387,6 +398,8 @@ private: KeyMgmt *keyMgmt; /**< TODO */ KeyServerImportDialog *importDialog; /**< TODO */ + QNetworkAccessManager *networkAccessManager; + bool attachmentDockCreated; bool restartNeeded; }; |