comparison 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
comparison
equal deleted inserted replaced
24:de67047ca229 25:92108a2120f1
16 16
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 "../common/listutil.h"
22 #include "certificate.h" 22 #include "certificate.h"
23 23
24 class CertificateList : public QObject 24 class CertificateList : public QObject
25 { 25 {
26 Q_OBJECT 26 Q_OBJECT
27 27
28 public: 28 public:
29 CertificateList(const char *fileName); 29 CertificateList(const char *fileName);
30 30
31 list_status_t getStatus() {return mStatus;} 31 list_status_t getStatus() {return mStatus;}
32 bool isValid() {return mStatus == Valid;} 32
33 /** @brief Returns true if the list is Valid
34 *
35 * A list is valid only if the signature matched and the
36 * list could be parsed.
37 */
38 bool isValid() {return mStatus == Valid;} const
39
40 const QList<Certificate>& getCertificates() const;
33 41
34 private: 42 private:
35 QString mFileName; 43 QString mFileName;
36 QList<Certificate> mCertificatesInstall; 44 QList<Certificate> mCertificatesInstall;
37 QList<Certificate> mCertificatesRemove; 45 QList<Certificate> mCertificatesRemove;

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