diff ui/certificatelist.h @ 249:6a7eb102716d

Remove code duplication by unifying the certificatelist. You should now check for isInstallCert to determine wether this certificate should be installed or removed. Leaving the getInstallCertificates and getRemoveCertificates in place for compatibilty would have been easier to keep the tests stable.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 31 Mar 2014 08:06:17 +0000
parents 60c5df8e7980
children cb8d7af5ec3a
line wrap: on
line diff
--- a/ui/certificatelist.h	Mon Mar 31 08:03:20 2014 +0000
+++ b/ui/certificatelist.h	Mon Mar 31 08:06:17 2014 +0000
@@ -44,19 +44,16 @@
      */
     bool isValid() const {return mStatus == Valid;}
 
-    /* @brief get a list of certificate objects that should be installed */
-    const QList<Certificate>& getInstallCertificates() const;
-
-    /* @brief get a list of certificate objects that should be removed */
-    const QList<Certificate>& getRemoveCertificates() const;
+    /* @brief get a list of certificate objects in this list */
+    const QList<Certificate>& getCertificates() const;
 
     /* @brief get the raw certificate list */
     const QString& rawData() const {return mData;}
 
 private:
-    QList<Certificate> mCertificatesInstall;
-    QList<Certificate> mCertificatesRemove;
+    QList<Certificate> mCertificates;
     QString mData;
+    QString mFileName;
     list_status_t mStatus;
     QDateTime mDate;
 };

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