diff ui/certificatelistwidget.h @ 639:c1b35edb097f trustbridge-refactor

New methods to modify and use the certificate list.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 24 Jun 2014 17:03:59 +0200
parents 566ee111e331
children 39f03316f675
line wrap: on
line diff
--- a/ui/certificatelistwidget.h	Tue Jun 24 16:59:52 2014 +0200
+++ b/ui/certificatelistwidget.h	Tue Jun 24 17:03:59 2014 +0200
@@ -27,12 +27,17 @@
 public:
     CertificateListWidget(QWidget *parent, Qt::WindowFlags flags = 0);
 
-    void addCertificate(const Certificate &certificate);
+    void addCertificate(const Certificate &certificate, bool state, bool editable = true);
     void addCertificates(const QList<Certificate> &list);
-    void removeCertificate(int ndx);
+    void removeCertificate(const Certificate &cert);
+    void setCertState(bool state, const Certificate &cert);
     void clear();
     QStringList certificates();
+    QStringList selectedCertificates();
+    QStringList unselectedCertificates();
+    QList<Certificate> certificateList();
     int selectedCertCount();
+    bool contains(const Certificate &cert);
 
 private:
     void setupGUI();
@@ -52,6 +57,7 @@
 
 signals:
     void certListChanged(int selected);
+    void certChanged(bool state, const Certificate &cert);
 
 };
 #endif // CERTIFICATELISTWIDGET_H

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