1 /* vi: set sw=4 ts=4: 2 * 3 * Copyright (C) 2001 - 2007 Christian Hohnstaedt. 4 * 5 * All rights reserved. 6 */ 7 8 9 #ifndef __DB_TEMP_H 10 #define __DB_TEMP_H 11 12 #include "db_x509super.h" 13 14 class pki_temp; 15 16 class db_temp: public db_x509name 17 { 18 Q_OBJECT 19 protected: 20 QList<pki_temp*> predefs; 21 22 public: 23 db_temp(); 24 ~db_temp(); 25 pki_base *newPKI(enum pki_type type = none); 26 void fillContextMenu(QMenu *menu, const QModelIndex &index); 27 QList<pki_temp*> getPredefs() const; 28 void load(); 29 void store(QModelIndex index); 30 bool alterTemp(pki_temp *temp); 31 }; 32 #endif 33