Mercurial > trustbridge
comparison ui/mainwindow.h @ 189:5f0d45ca9de4
Show certificates in the list view and details in the textfield.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 11:44:16 +0100 |
parents | 0c06a608e15f |
children | f7176140d20d |
comparison
equal
deleted
inserted
replaced
188:a3bde2aaabd9 | 189:5f0d45ca9de4 |
---|---|
8 | 8 |
9 #include <QSystemTrayIcon> | 9 #include <QSystemTrayIcon> |
10 #include <QMainWindow> | 10 #include <QMainWindow> |
11 #include <QSettings> | 11 #include <QSettings> |
12 #include <QMenuBar> | 12 #include <QMenuBar> |
13 #include <QListWidget> | |
14 #include <QTextEdit> | |
13 | 15 |
14 #include "downloader.h" | 16 #include "downloader.h" |
15 #include "certificatelist.h" | 17 #include "certificatelist.h" |
16 class QMenu; | 18 class QMenu; |
17 class QAction; | 19 class QAction; |
47 /** @brief Trigger the appropiate action depending on the state */ | 49 /** @brief Trigger the appropiate action depending on the state */ |
48 void messageClicked(); | 50 void messageClicked(); |
49 void showSettings(); | 51 void showSettings(); |
50 void showHelp(); | 52 void showHelp(); |
51 void showAbout(); | 53 void showAbout(); |
54 void showDetails(QListWidgetItem*); | |
52 | 55 |
53 private: | 56 private: |
54 /** @brief check the integrity of available files. | 57 /** @brief check the integrity of available files. |
55 * | 58 * |
56 * Do not use this as a trust check as this only works on | 59 * Do not use this as a trust check as this only works on |
62 void verifyAvailableData(); | 65 void verifyAvailableData(); |
63 void createTrayIcon(); | 66 void createTrayIcon(); |
64 void createActions(); | 67 void createActions(); |
65 void createMenuBar(); | 68 void createMenuBar(); |
66 void createContent(); | 69 void createContent(); |
70 void loadCertificateList(); | |
67 | 71 |
68 QString mCurMessage; | 72 QString mCurMessage; |
69 QString mInstalledSWVersion; | 73 QString mInstalledSWVersion; |
70 QString mInstalledListVersion; | 74 QString mInstalledListVersion; |
71 | 75 |
78 QAction *mQuitAction; | 82 QAction *mQuitAction; |
79 CurrentState mCurState; | 83 CurrentState mCurState; |
80 QMenuBar *mMenuBar; | 84 QMenuBar *mMenuBar; |
81 | 85 |
82 CertificateList mListToInstall; | 86 CertificateList mListToInstall; |
87 | |
88 QListWidget *certificateList; | |
89 QTextEdit *certificateDetails; | |
83 }; | 90 }; |
84 | 91 |
85 #endif // MAINWINDOW_H | 92 #endif // MAINWINDOW_H |