changeset 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 4de97f74d038
children 6a7eb102716d
files ui/certificate.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
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;

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