ksslkeygen.h
00001 /* This file is part of the KDE project 00002 * 00003 * Copyright (C) 2001 George Staikos <staikos@kde.org> 00004 * 00005 * This library is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Library General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Library General Public License 00016 * along with this library; see the file COPYING.LIB. If not, write to 00017 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 * Boston, MA 02110-1301, USA. 00019 */ 00020 00021 00022 #ifndef _KSSLKEYGEN_H 00023 #define _KSSLKEYGEN_H 00024 00025 #include <tqstring.h> 00026 #include <tqstringlist.h> 00027 #include <kwizard.h> 00028 00029 00030 class KOpenSSLProxy; 00031 class KGWizardPage1; 00032 class KGWizardPage2; 00033 00044 class TDEIO_EXPORT KSSLKeyGen : public KWizard { 00045 Q_OBJECT 00046 public: 00053 KSSLKeyGen(TQWidget *parent=0L, const char *name=0L, bool modal=false); 00054 00058 virtual ~KSSLKeyGen(); 00059 00064 static TQStringList supportedKeySizes(); 00065 00074 int generateCSR(const TQString& name, const TQString& pass, int bits, int e = 0x10001); 00075 00080 void setKeySize(int idx) { _idx = idx; } 00081 00082 private slots: 00083 void slotPassChanged(); 00084 void slotGenerate(); 00085 00086 private: 00087 class KSSLKeyGenPrivate; 00088 KSSLKeyGenPrivate *d; 00089 int _idx; 00090 KGWizardPage1 *page1; 00091 KGWizardPage2 *page2; 00092 }; 00093 00094 #endif 00095