1 /* vi: set sw=4 ts=4:
2  *
3  * Copyright (C) 2015 Christian Hohnstaedt.
4  *
5  * All rights reserved.
6  */
7 
8 #ifndef __CERTTREEVIEW_H
9 #define __CERTTREEVIEW_H
10 
11 #include "X509SuperTreeView.h"
12 #include "lib/db_x509.h"
13 
14 class CertTreeView: public X509SuperTreeView
15 {
16 	Q_OBJECT
17 
certs()18 	db_x509 *certs() const
19 	{
20 		return dynamic_cast<db_x509*>(basemodel);
21 	}
22 
23     public:
CertTreeView(QWidget * parent)24 	CertTreeView(QWidget *parent) : X509SuperTreeView(parent) { }
25 	void fillContextMenu(QMenu *menu, QMenu *subExport,
26 			const QModelIndex &index, QModelIndexList indexes);
27 
28     public slots:
29 	void changeView();
30 	void toRequest();
31 	void toCertificate();
32 	void toToken();
33 	void toOtherToken();
34 	void genCrl();
35 	void loadPKCS7();
36 	void loadPKCS12();
37 	void deleteFromToken();
38 	void manageRevocations();
39 	void certRenewal();
40 	void caProperties();
41 	void revoke();
42 	void unRevoke();
43 };
44 #endif
45