mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
When XCA started in 2002, there were no C++ initializers. Drop explicit initializers from the constructors. - Fix indentations of section declarators. - Replace NULL by nullptr when feasible. - Sort private section: properties first, then methods.
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef __IMPORTMULTI_H
|
|
#define __IMPORTMULTI_H
|
|
|
|
#include "ui_ImportMulti.h"
|
|
#include "lib/db_token.h"
|
|
#include "lib/db_base.h"
|
|
#include <QList>
|
|
|
|
class pki_x509;
|
|
class pki_key;
|
|
|
|
class ImportMulti: public QDialog, private Ui::ImportMulti
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
slotid slot{};
|
|
db_token *mcont{};
|
|
void importError(QStringList failed);
|
|
|
|
public:
|
|
ImportMulti(QWidget *parent);
|
|
~ImportMulti();
|
|
void addItem(pki_base *pki);
|
|
pki_base *getSelected();
|
|
pki_base *import(const QModelIndex &idx);
|
|
pki_base *import(pki_base *pki);
|
|
void importIndexes(const QModelIndexList &indexes);
|
|
void execute(int force=0, QStringList failed = QStringList());
|
|
int entries();
|
|
void tokenInfo(const slotid &s);
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
void dropEvent(QDropEvent *event);
|
|
bool openDB() const;
|
|
void showDetail(pki_base *pki);
|
|
void showDetail(const QModelIndex &idx);
|
|
|
|
public slots:
|
|
void on_butRemove_clicked();
|
|
void on_butImport_clicked();
|
|
void on_butDetails_clicked();
|
|
void on_butOk_clicked();
|
|
void on_deleteToken_clicked();
|
|
void on_renameToken_clicked();
|
|
};
|
|
|
|
#endif
|