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

33 lines
555 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __DB_TEMP_H
#define __DB_TEMP_H
#include "db_x509super.h"
class pki_temp;
class db_temp: public db_x509name
{
Q_OBJECT
protected:
QList<pki_temp*> predefs;
public:
db_temp();
~db_temp();
pki_base *newPKI(enum pki_type type = none);
void fillContextMenu(QMenu *menu, const QModelIndex &index);
QList<pki_temp*> getPredefs() const;
void load();
void store(QModelIndex index);
bool alterTemp(pki_temp *temp);
};
#endif