xca/widgets/TempTreeView.h
Christian Hohnstaedt 75a6d117f3 Refactor context menu
Better support multiple selections
 - Export all selected items into one PEM file
 - Batch Revoke/unrevoke/renew of many selected certificates
   of the same issuer
 - allow exporting templates as PEM

Add Feat. Reg. #83 Option to revoke old certificate when renewing

Always put all signed certificate to the newest CA.
If a CA certificate is renewed, all certificates issued by
the old CA are now shown as signed by the new one.
2015-05-17 09:17:04 +02:00

41 lines
725 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2006 - 2015 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __TEMPTREEVIEW_H
#define __TEMPTREEVIEW_H
#include "XcaTreeView.h"
#include "lib/db_temp.h"
class TempTreeView: public XcaTreeView
{
Q_OBJECT
db_temp *temps;
public:
TempTreeView(QWidget *parent) : XcaTreeView(parent)
{
temps = NULL;
}
void fillContextMenu(QMenu *menu, QMenu *subExport,
const QModelIndex &index, QModelIndexList indexes);
void setModel(db_temp *model=NULL)
{
temps = model;
XcaTreeView::setModel(model);
}
public slots:
void certFromTemp();
void reqFromTemp();
void duplicateTemp();
signals:
void newReq(pki_temp *);
void newCert(pki_temp *);
};
#endif