xca/widgets/RevocationList.h
Christian Hohnstaedt 75a6d117f3 Refactor context menu
Better support multiple selections
 - Export all selected items into one PEM file
 - Batch Revoke/unrevoke/renew of many selected certificates
   of the same issuer
 - allow exporting templates as PEM

Add Feat. Reg. #83 Option to revoke old certificate when renewing

Always put all signed certificate to the newest CA.
If a CA certificate is renewed, all certificates issued by
the old CA are now shown as signed by the new one.
2015-05-17 09:17:04 +02:00

50 lines
965 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2015 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __REVOCATIONLIST_H
#define __REVOCATIONLIST_H
#include "ui_RevocationList.h"
#include "ui_Revoke.h"
#include "lib/x509rev.h"
#include <QtCore/QModelIndex>
class pki_x509;
class RevocationList: public QDialog, public Ui::RevocationList
{
Q_OBJECT
private:
x509revList revList;
pki_x509 *issuer;
public:
static void setupRevocationView(QTreeWidget *certList,
const x509revList &revList, const pki_x509 *iss);
RevocationList(QWidget *w);
void setRevList(const x509revList &rl, pki_x509 *issuer);
const x509revList &getRevList();
public slots:
void on_addRev_clicked(void);
void on_delRev_clicked(void);
void gencrl(void);
signals:
void genCRL(pki_x509 *iss);
};
class Revocation: public QDialog, public Ui::Revoke
{
Q_OBJECT
public:
Revocation(QWidget *w, QModelIndexList indexes);
x509rev getRevocation();
};
#endif