diff ui/certificatelist.h @ 25:92108a2120f1

Move certificatelist to common. Add cinst directory
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 10 Mar 2014 14:15:15 +0000
parents dc1e1e9e62ce
children cbd57d767dfa
line wrap: on
line diff
--- a/ui/certificatelist.h	Fri Feb 21 15:12:24 2014 +0000
+++ b/ui/certificatelist.h	Mon Mar 10 14:15:15 2014 +0000
@@ -18,7 +18,7 @@
 #include <QDateTime>
 #include <QObject>
 
-#include "../cinst/listutil.h"
+#include "../common/listutil.h"
 #include "certificate.h"
 
 class CertificateList : public QObject
@@ -29,7 +29,15 @@
     CertificateList(const char *fileName);
 
     list_status_t getStatus() {return mStatus;}
-    bool isValid() {return mStatus == Valid;}
+
+    /** @brief Returns true if the list is Valid 
+     *
+     *  A list is valid only if the signature matched and the
+     *  list could be parsed.
+     */
+    bool isValid() {return mStatus == Valid;} const
+
+    const QList<Certificate>& getCertificates() const;
 
 private:
     QString mFileName;

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