comparison 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
comparison
equal deleted inserted replaced
248:9f0865dc8b14 249:6a7eb102716d
42 * A list is valid only if the signature matched and the 42 * A list is valid only if the signature matched and the
43 * list could be parsed. 43 * list could be parsed.
44 */ 44 */
45 bool isValid() const {return mStatus == Valid;} 45 bool isValid() const {return mStatus == Valid;}
46 46
47 /* @brief get a list of certificate objects that should be installed */ 47 /* @brief get a list of certificate objects in this list */
48 const QList<Certificate>& getInstallCertificates() const; 48 const QList<Certificate>& getCertificates() const;
49
50 /* @brief get a list of certificate objects that should be removed */
51 const QList<Certificate>& getRemoveCertificates() const;
52 49
53 /* @brief get the raw certificate list */ 50 /* @brief get the raw certificate list */
54 const QString& rawData() const {return mData;} 51 const QString& rawData() const {return mData;}
55 52
56 private: 53 private:
57 QList<Certificate> mCertificatesInstall; 54 QList<Certificate> mCertificates;
58 QList<Certificate> mCertificatesRemove;
59 QString mData; 55 QString mData;
56 QString mFileName;
60 list_status_t mStatus; 57 list_status_t mStatus;
61 QDateTime mDate; 58 QDateTime mDate;
62 }; 59 };
63 #endif 60 #endif

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