xca/lib/db_x509req.h
Christian Hohnstädt 6ea01e80f6 Refactor item export: separate GUI and database
Collect all export formats in pki_export.

Each export format has assigned acouple of flags, indicating,
whether they are text, concatenateable, encrypted, usable for
multiple selections or only for a single item.
2021-11-13 14:49:02 +01:00

40 lines
792 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __DB_X509REQ_H
#define __DB_X509REQ_H
#include "db_x509super.h"
class pki_temp;
class pki_x509req;
class db_x509req: public db_x509super
{
Q_OBJECT
protected:
dbheaderList getHeaders();
public:
db_x509req();
pki_base* insert(pki_base *item);
pki_base *newPKI(enum pki_type type = none);
void fillContextMenu(QMenu *menu, const QModelIndex &index);
QList<pki_x509req*> getAllRequests();
void resetX509count();
void setSigned(QModelIndex index, bool signe);
void exportItem(const QModelIndex &index,
const pki_export *xport, XFile &file) const;
public slots:
void newItem(pki_temp *temp, pki_x509req *orig = NULL);
void newItem();
};
#endif