Mercurial > trustbridge
comparison ui/mainwindow.h @ 641:a7c3ab273d41 trustbridge-refactor
Some code cleanup.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 24 Jun 2014 17:40:40 +0200 |
parents | 626507197360 |
children | f65503c1833b |
comparison
equal
deleted
inserted
replaced
640:626507197360 | 641:a7c3ab273d41 |
---|---|
69 void handleNewList(const QString& fileName, const QDateTime& modDate); | 69 void handleNewList(const QString& fileName, const QDateTime& modDate); |
70 void handleNewSW(const QString& fileName, const QDateTime& modDate); | 70 void handleNewSW(const QString& fileName, const QDateTime& modDate); |
71 void downloaderError(const QString &message, SSLConnection::ErrorCode error); | 71 void downloaderError(const QString &message, SSLConnection::ErrorCode error); |
72 /** @brief Trigger the appropiate action depending on the state */ | 72 /** @brief Trigger the appropiate action depending on the state */ |
73 void messageClicked(); | 73 void messageClicked(); |
74 void showHelp(); | |
75 void showAbout(); | |
76 void showDetails(QListWidgetItem*); | |
77 void resizeButtons(); | |
78 void installerError(const QString& errMsg); | 74 void installerError(const QString& errMsg); |
79 void installerSuccess(); | 75 void installerSuccess(); |
80 void installCerts(); | 76 void installCerts(); |
81 void toggleInManual(bool state, const Certificate &cert); | 77 void toggleInManual(bool state, const Certificate &cert); |
82 void removeFromManual(bool state, const Certificate &cert); | 78 void removeFromManual(bool state, const Certificate &cert); |
83 | 79 |
84 void saveAutoUpdate(int state); | |
85 void saveAutoStart(int state); | |
86 | |
87 void togglePages(int button); | 80 void togglePages(int button); |
88 void toggleUpdatesNew(); | 81 void toggleUpdatesNew(); |
89 void toggleUpdatesRemove(); | 82 void toggleUpdatesRemove(); |
90 void toggleUpdatesManual(); | 83 void toggleUpdatesManual(); |
91 void listChanged(int selected); | 84 void listChanged(int selected); |
154 void verifyAvailableData(); | 147 void verifyAvailableData(); |
155 void createTrayIcon(); | 148 void createTrayIcon(); |
156 void createActions(); | 149 void createActions(); |
157 void createContent(); | 150 void createContent(); |
158 void loadCertificateList(); | 151 void loadCertificateList(); |
159 | |
160 /** @brief Create a separator item for the certificate list. | |
161 * | |
162 * The item uses a SeparatorItemDelegate for layout and styling at the given | |
163 * index. | |
164 * | |
165 * @param[in] text The text for the item. | |
166 * @param[in] index The index of the item. | |
167 * | |
168 * @return The new separator item. | |
169 */ | |
170 QListWidgetItem* createSeparator(const QString &text, int index); | |
171 | |
172 /** @brief Create a certificate list item for the list. | |
173 * | |
174 * The item uses a CertificateItemDelegate for layout and styling. | |
175 * | |
176 * @param[in] text The certificate to display. | |
177 * @param[in] status The certificate status. | |
178 * @param[in] index The index of the item. | |
179 * | |
180 * @return The new separator item. | |
181 */ | |
182 QListWidgetItem* createListItem(const Certificate &certificate, | |
183 Certificate::Status status, int index); | |
184 | 152 |
185 /* Are we running in tray mode ?*/ | 153 /* Are we running in tray mode ?*/ |
186 const bool mTrayMode; | 154 const bool mTrayMode; |
187 /* The message currently shown at intervals */ | 155 /* The message currently shown at intervals */ |
188 QString mCurMessage; | 156 QString mCurMessage; |
205 CertificateList mInstalledList; | 173 CertificateList mInstalledList; |
206 /* Previously made "unselect" choices in the form of | 174 /* Previously made "unselect" choices in the form of |
207 * base64lines with I:/R: prefix */ | 175 * base64lines with I:/R: prefix */ |
208 QStringList mPreviouslyUnselected; | 176 QStringList mPreviouslyUnselected; |
209 | 177 |
210 QListWidget *mCertListWidget; | |
211 | |
212 QLabel *mSubjectCN; | |
213 QLabel *mSubjectO; | |
214 QLabel *mIssuerCN; | |
215 QLabel *mIssuerO; | |
216 QLabel *mValidFrom; | |
217 QLabel *mValidTo; | |
218 QLabel *mFingerprint; | |
219 | |
220 QLabel *mCurrentListDate; | 178 QLabel *mCurrentListDate; |
221 QLabel *mNewListDate; | 179 QLabel *mNewListDate; |
222 | |
223 QCheckBox *mAutoUpdateOption; | |
224 QCheckBox *mAutoStartOption; | |
225 | |
226 QPushButton *installButton; | |
227 QPushButton *quitButton; | |
228 | 180 |
229 QButtonGroup *mButtonGroup; | 181 QButtonGroup *mButtonGroup; |
230 QScrollArea *mUpdatesPanel; | 182 QScrollArea *mUpdatesPanel; |
231 QWidget *mUpdatesWidget; | 183 QWidget *mUpdatesWidget; |
232 QScrollArea *mInstallPanel; | 184 QScrollArea *mInstallPanel; |