changeset 565:9db7034b2d6c

Added method to get the current certificate list changes.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 22 May 2014 18:28:07 +0200
parents f115da3645d5
children 8728ae882b6a
files ui/administratorwindow.cpp ui/administratorwindow.h
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu May 22 16:07:02 2014 +0000
+++ b/ui/administratorwindow.cpp	Thu May 22 18:28:07 2014 +0200
@@ -274,3 +274,14 @@
 
     return entries;
 }
+
+QList<Certificate> AdministratorWindow::currentChanges()
+{
+    QList<Certificate> changed;
+    foreach(const Certificate& cert, certificates()) {
+        if (!mCertList.getCertificates().contains(cert)) {
+            changed.append(cert);
+        }
+    }
+    return changed;
+}
--- a/ui/administratorwindow.h	Thu May 22 16:07:02 2014 +0000
+++ b/ui/administratorwindow.h	Thu May 22 18:28:07 2014 +0200
@@ -51,6 +51,11 @@
      */
     void logChanges(const QString &currentCerts);
 
+    /** @brief get the currently changed certificates.
+     * @return a list of certificates.
+     */
+    QList<Certificate> currentChanges();
+
 private slots:
     void createInstaller();
     void showAbout();

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