xca/widgets/v3ext.h
Christian Hohnstaedt 993da2d474 Use C++11 initializers for all non-static class members
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.
2023-10-08 22:19:18 +02:00

50 lines
942 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2005 - 2014 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __V3EXT_H
#define __V3EXT_H
#include "ui_v3ext.h"
#include "lib/pki_base.h"
#include <QLineEdit>
#include <QStringList>
#include <openssl/x509v3.h>
#include "widgets/kvView.h"
class pki_x509;
class pki_key;
class v3ext: public QDialog, public Ui::v3ext
{
Q_OBJECT
private:
int nid{};
QLineEdit *le{};
X509V3_CTX *ext_ctx{};
QStringList keys{};
QString prefix{};
bool __validate(bool showSuccess);
public:
v3ext( QWidget *parent);
void addItem(const QString &list);
void addEntry(const QString &list);
QString toString();
void addInfo(QLineEdit *myle, const QStringList &sl, int n,
X509V3_CTX *ctx);
void setPrefix(const QString &p) {
prefix = p;
}
public slots:
void on_apply_clicked();
void on_validate_clicked();
void setupLineEdit(const QString &s, QLineEdit *l);
};
#endif