xca/widgets/NewKey.h
Christian Hohnstaedt df78e4380e SF Bug #87: Unable to set default key length
Added a "Remember as default" checkbox to the key input dialog.
The default key size is now 2048 for RSA and DSA keys.
2014-04-11 19:29:45 +02:00

36 lines
671 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2010 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __NEWKEY_H
#define __NEWKEY_H
#include "ui_NewKey.h"
#include "lib/pkcs11_lib.h"
#include <QtCore/QStringList>
class NewKey: public QDialog, public Ui::NewKey
{
Q_OBJECT
private:
static int defaultType;
static int defaultEcNid;
static int defaultSize;
public:
NewKey(QWidget *parent, QString name);
int getKeytype();
int getKeysize();
int getKeyCurve_nid();
slotid getKeyCardSlot();
bool isToken();
QString getAsString();
static int setDefault(QString def);
public slots:
void on_keyType_currentIndexChanged(int);
};
#endif