comparison ui/mainwindow.h @ 716:929c3db85eb7

Add central place to obtain current change count.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 02 Jul 2014 16:09:19 +0200
parents bd48fae793b6
children e7a070e64b80
comparison
equal deleted inserted replaced
715:345805165d9b 716:929c3db85eb7
80 80
81 void togglePages(int button); 81 void togglePages(int button);
82 void toggleUpdatesNew(); 82 void toggleUpdatesNew();
83 void toggleUpdatesRemove(); 83 void toggleUpdatesRemove();
84 void toggleUpdatesManual(); 84 void toggleUpdatesManual();
85
86 /** Reflect change list states in the UI
87 *
88 * This slot should be called each time the contents or selection
89 * state of one of the certificate lists change to update the
90 * UI elements accordingly.
91 *
92 * @param[in] selected unused. */
85 void listChanged(int selected); 93 void listChanged(int selected);
86 94
87 /** @brief check for running software that needs to close before installing 95 /** @brief check for running software that needs to close before installing
88 * 96 *
89 * This function calls installCerts if no software is running otherwise 97 * This function calls installCerts if no software is running otherwise
152 * Once the installer process is started this function terminates 160 * Once the installer process is started this function terminates
153 * the application. */ 161 * the application. */
154 void installNewSW(const QString& fileName, const QDateTime& modDate); 162 void installNewSW(const QString& fileName, const QDateTime& modDate);
155 163
156 private: 164 private:
165 /** @brief the combined number of changes made in all lists */
166 int changeCount();
167
157 /** @brief check the integrity of available certificate lists. 168 /** @brief check the integrity of available certificate lists.
158 * 169 *
159 * Note: Do not use this as a local trust check as this only works on 170 * Note: Do not use this as a local trust check as this only works on
160 * FileNames where the underlying files can change. This 171 * FileNames where the underlying files can change. This
161 * is just meant to check if the downloaded data was somehow 172 * is just meant to check if the downloaded data was somehow
229 CertificateListWidget *mRemoveList; 240 CertificateListWidget *mRemoveList;
230 241
231 QPushButton *mUpdatesDetailsNew; 242 QPushButton *mUpdatesDetailsNew;
232 QPushButton *mUpdatesDetailsRemove; 243 QPushButton *mUpdatesDetailsRemove;
233 QPushButton *mUpdatesDetailsManual; 244 QPushButton *mUpdatesDetailsManual;
245
246 int mChangeCount;
234 }; 247 };
235 248
236 #endif // MAINWINDOW_H 249 #endif // MAINWINDOW_H

http://wald.intevation.org/projects/trustbridge/