mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
When XCA started in 2002, there were no C++ initializers. Drop explicit initializers from the constructors. - Fix indentations of section declarators. - Replace NULL by nullptr when feasible. - Sort private section: properties first, then methods.
50 lines
1.0 KiB
C++
50 lines
1.0 KiB
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 <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 = nullptr);
|
|
void setRevList(const x509revList &rl, pki_x509 *issuer);
|
|
const x509revList &getRevList();
|
|
|
|
public slots:
|
|
void on_addRev_clicked();
|
|
void on_delRev_clicked();
|
|
void on_editRev_clicked();
|
|
void gencrl();
|
|
void on_certList_itemDoubleClicked(QTreeWidgetItem *);
|
|
};
|
|
|
|
class Revocation: public QDialog, public Ui::Revoke
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Revocation(QModelIndexList indexes, QWidget *w = nullptr);
|
|
x509rev getRevocation();
|
|
void setRevocation(x509rev r);
|
|
};
|
|
#endif
|