Mercurial > trustbridge
diff ui/certificate.h @ 248:9f0865dc8b14
Add accessor to check if the certificate should be installed
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 31 Mar 2014 08:03:20 +0000 |
parents | 2551ad24d3c2 |
children | ffd47b045d19 |
line wrap: on
line diff
--- a/ui/certificate.h Mon Mar 31 08:02:46 2014 +0000 +++ b/ui/certificate.h Mon Mar 31 08:03:20 2014 +0000 @@ -66,8 +66,15 @@ **/ QString getSubjectAttr(const QString& attr) const; + /** @brief Check if this certificate has the install instruction. + * + * This is shorthand for baseLine.startsWith("I:"); + **/ + bool isInstallCert() const {return mBaseLine.startsWith("I:");} + private: bool mValid; + bool mInstCert; QString mDetails; QString mBaseLine;