xca/lib/db_x509super.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

42 lines
715 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2011 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __DB_X509SUPER_H
#define __DB_X509SUPER_H
#include "db_key.h"
#include "pki_x509super.h"
#include <QList>
class db_x509name: public db_base
{
Q_OBJECT
protected:
dbheaderList getHeaders();
public:
db_x509name(const char *classname);
};
class db_x509super: public db_x509name
{
Q_OBJECT
protected:
dbheaderList getHeaders();
void loadContainer();
public:
db_x509super(const char *classname);
pki_key *findKey(pki_x509super *ref);
QList<pki_x509super *> findByPubKey(pki_key *refkey);
void extractPubkey(QModelIndex index);
void toTemplate(QModelIndex index);
};
#endif