Mercurial > trustbridge
comparison ui/certificate.h @ 386:cc1738b398a0
Add == operator for certificates that compares the b64line
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 15 Apr 2014 19:02:39 +0200 |
parents | 1220b741cd51 |
children | 17e1c8f37d72 |
comparison
equal
deleted
inserted
replaced
385:72487438a180 | 386:cc1738b398a0 |
---|---|
126 * The size restrictions for the certificate list file also apply | 126 * The size restrictions for the certificate list file also apply |
127 * for this file. | 127 * for this file. |
128 **/ | 128 **/ |
129 static QList<Certificate> fromFileName (const QString& file_name); | 129 static QList<Certificate> fromFileName (const QString& file_name); |
130 | 130 |
131 friend inline bool operator==(const Certificate& lhs, const Certificate& rhs) { | |
132 return lhs.base64Line() == rhs.base64Line(); | |
133 } | |
131 private: | 134 private: |
132 /** @brief Helper function to parse the details of a certificate **/ | 135 /** @brief Helper function to parse the details of a certificate **/ |
133 void parseDetails(const QByteArray& cert); | 136 void parseDetails(const QByteArray& cert); |
134 | 137 |
135 bool mValid; | 138 bool mValid; |