comparison ui/certificatelistwidget.h @ 627:566ee111e331 trustbridge-refactor

Added state to certificate list item and updated certificate list widget.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 23 Jun 2014 12:46:53 +0200
parents 88c9bdc74175
children c1b35edb097f
comparison
equal deleted inserted replaced
584:ebfe1128ee97 627:566ee111e331
28 CertificateListWidget(QWidget *parent, Qt::WindowFlags flags = 0); 28 CertificateListWidget(QWidget *parent, Qt::WindowFlags flags = 0);
29 29
30 void addCertificate(const Certificate &certificate); 30 void addCertificate(const Certificate &certificate);
31 void addCertificates(const QList<Certificate> &list); 31 void addCertificates(const QList<Certificate> &list);
32 void removeCertificate(int ndx); 32 void removeCertificate(int ndx);
33 QList<Certificate> getCertificates(); 33 void clear();
34 QStringList certificates();
35 int selectedCertCount();
34 36
35 private: 37 private:
36 void setupGUI(); 38 void setupGUI();
37 39
38 QListWidget *mCertificateList; 40 QListWidget *mCertificateList;
44 QLabel *mValidTo; 46 QLabel *mValidTo;
45 QLabel *mFingerprint; 47 QLabel *mFingerprint;
46 48
47 private slots: 49 private slots:
48 void updateDetails(QListWidgetItem *item); 50 void updateDetails(QListWidgetItem *item);
51 void certStateChanged(bool state, const Certificate &cert);
52
53 signals:
54 void certListChanged(int selected);
49 55
50 }; 56 };
51 #endif // CERTIFICATELISTWIDGET_H 57 #endif // CERTIFICATELISTWIDGET_H

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