comparison ui/certificatelist.h @ 21:dc1e1e9e62ce

Add certificate class and use it
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 20 Feb 2014 10:58:28 +0000
parents f4f957c58e0a
children 92108a2120f1
comparison
equal deleted inserted replaced
20:fec1a610d43f 21:dc1e1e9e62ce
17 #include <QString> 17 #include <QString>
18 #include <QDateTime> 18 #include <QDateTime>
19 #include <QObject> 19 #include <QObject>
20 20
21 #include "../cinst/listutil.h" 21 #include "../cinst/listutil.h"
22 #include "certificate.h"
22 23
23 class CertificateList : public QObject 24 class CertificateList : public QObject
24 { 25 {
25 Q_OBJECT 26 Q_OBJECT
26 27
30 list_status_t getStatus() {return mStatus;} 31 list_status_t getStatus() {return mStatus;}
31 bool isValid() {return mStatus == Valid;} 32 bool isValid() {return mStatus == Valid;}
32 33
33 private: 34 private:
34 QString mFileName; 35 QString mFileName;
35 QList<QByteArray> mCertificatesInstall; 36 QList<Certificate> mCertificatesInstall;
36 QList<QByteArray> mCertificatesRemove; 37 QList<Certificate> mCertificatesRemove;
37 list_status_t mStatus; 38 list_status_t mStatus;
38 QDateTime mDate; 39 QDateTime mDate;
39 }; 40 };
40 #endif 41 #endif

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