xca/lib/db_x509super.h
Christian Hohnstaedt 7c65a786ea Revamp database management
The global variable "Database" of class xca_db
can be used by any other class to access. No need
to provide it.

The "xca_db" class managed the "database_model" pointer.
Accessing the name of the current database has been unified.
2020-05-08 07:47:15 +02:00

43 lines
758 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);
void toOpenssl(QModelIndex index) const;
};
#endif