mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
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.
40 lines
747 B
C++
40 lines
747 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);
|
|
void store(QModelIndex index);
|
|
void load();
|
|
QList<pki_x509req*> getAllRequests();
|
|
void resetX509count();
|
|
void setSigned(QModelIndex index, bool signe);
|
|
|
|
public slots:
|
|
void newItem(pki_temp *temp, pki_x509req *orig = NULL);
|
|
void newItem();
|
|
};
|
|
|
|
#endif
|