xca/widgets/TempTreeView.h
Christian Hohnstaedt 3dd34a61bc Move "showPki()" from the model class to the view
The displaying function requires UI.
2020-03-13 12:13:27 +01:00

39 lines
711 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() const
{
return dynamic_cast<db_temp*>(basemodel);
}
public:
TempTreeView(QWidget *parent) : XcaTreeView(parent) { }
void fillContextMenu(QMenu *menu, QMenu *subExport,
const QModelIndex &index, QModelIndexList indexes);
void showPki(pki_base *pki) const;
public slots:
void certFromTemp();
void reqFromTemp();
void duplicateTemp();
signals:
void newReq(pki_temp *);
void newCert(pki_temp *);
};
#endif