1 /* vi: set sw=4 ts=4: 2 * 3 * Copyright (C) 2006 - 2020 Christian Hohnstaedt. 4 * 5 * All rights reserved. 6 */ 7 8 #ifndef __CRLTREEVIEW_H 9 #define __CRLTREEVIEW_H 10 11 #include "XcaTreeView.h" 12 #include "lib/db_crl.h" 13 14 class pki_x509; 15 16 class CrlTreeView: public XcaTreeView 17 { 18 Q_OBJECT 19 crls()20 db_crl *crls() const 21 { 22 return dynamic_cast<db_crl*>(basemodel); 23 } 24 25 public: CrlTreeView(QWidget * parent)26 CrlTreeView(QWidget *parent) : XcaTreeView(parent) { } 27 void showPki(pki_base *pki); 28 29 public slots: 30 void newItem(pki_x509 *cert); 31 void newItem(); 32 }; 33 #endif 34