diff 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
line wrap: on
line diff
--- a/ui/mainwindow.h	Wed Jul 02 16:08:55 2014 +0200
+++ b/ui/mainwindow.h	Wed Jul 02 16:09:19 2014 +0200
@@ -82,6 +82,14 @@
     void toggleUpdatesNew();
     void toggleUpdatesRemove();
     void toggleUpdatesManual();
+
+    /** Reflect change list states in the UI
+     *
+     * This slot should be called each time the contents or selection
+     * state of one of the certificate lists change to update the
+     * UI elements accordingly.
+     *
+     * @param[in] selected unused. */
     void listChanged(int selected);
 
     /** @brief check for running software that needs to close before installing
@@ -154,6 +162,9 @@
     void installNewSW(const QString& fileName, const QDateTime& modDate);
 
 private:
+    /** @brief the combined number of changes made in all lists */
+    int changeCount();
+
     /** @brief check the integrity of available certificate lists.
      *
      * Note: Do not use this as a local trust check as this only works on
@@ -231,6 +242,8 @@
     QPushButton *mUpdatesDetailsNew;
     QPushButton *mUpdatesDetailsRemove;
     QPushButton *mUpdatesDetailsManual;
+
+    int mChangeCount;
 };
 
 #endif // MAINWINDOW_H

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