diff ui/certificatelist.h @ 4:9849250f50f2

Start implementation of certificatelist parser
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 11 Feb 2014 16:46:02 +0000
parents
children 992c0ec57660
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ui/certificatelist.h	Tue Feb 11 16:46:02 2014 +0000
@@ -0,0 +1,38 @@
+
+
+/**
+ * This class handles a certificate list file.
+ * It checks for the validity of that certificate
+ * list file and provides an API for working with that
+ * file.
+ *
+ * The List is parsed on Initialization. You should
+ * check the Status afterwards to see if the file
+ * could be parsed.
+ *
+ * The certificate list will be kept in memory until
+ * this object is destroyed.
+ *
+ */
+
+class QByteArray;
+
+#include <QString>
+#include <QDate>
+
+class CertificateList
+{
+    Q_OBJECT
+
+public:
+    CertificateList(wchar_t* fileName);
+
+    list_status_t getStatus();
+
+private:
+    QString mFileName;
+    QByteArray *mFileContent;
+    ListStatus mStatus;
+    QDate mDate;
+}
+

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