<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US"> <head> <title>certmanager: certificatewizard.cpp Source File (certmanager)</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org" r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org" r (n 0 s 0 v 0 l 0))' /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <link rel="shortcut icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" /> <style type="text/css"> <!-- hr { display: none; } #content h2 { margin-left: 0px; } table.mdTable { background-color: #f8f8f8; border: .2em solid #d7d7d7; } td.mdRow { padding: 8px 20px; } td.md { font-weight: bold; } td.mdname1 { font-weight: bold; color: #602020; } td.mdname { font-weight: bold; color: #602020; } --> </style> </head> <body> <div id="nav_header_top" align="right"> <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a> <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a> <span class="doNotDisplay">::</span> <img id="nav_header_logo_right" alt="" align="right" src="../../pimlogo.png" border="0" /> <div id="nav_header_title" align="left">KDE PIM API Reference</div> </div> <div id="nav_header_bottom" align="right"> <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span> <div id="nav_header_bottom_left" style="text-align: left;"> / <a href="../../">API Reference</a> / <a href=".">certmanager</a> </div> </div> <table id="main" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top" class="menuheader" height="0"></td> <td id="contentcolumn" valign="top" rowspan="2" > <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;"> <h2><a name="content"></a>certmanager</h2> <!-- Generated by Doxygen 1.5.5 --> <h1>certificatewizard.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include <kdialog.h></span> <a name="l00002"></a>00002 <span class="preprocessor">#include <klocale.h></span> <a name="l00003"></a>00003 <span class="comment">/****************************************************************************</span> <a name="l00004"></a>00004 <span class="comment">** Form implementation generated from reading ui file './certificatewizard.ui'</span> <a name="l00005"></a>00005 <span class="comment">**</span> <a name="l00006"></a>00006 <span class="comment">** Created: Tue Mar 18 20:15:04 2008</span> <a name="l00007"></a>00007 <span class="comment">**</span> <a name="l00008"></a>00008 <span class="comment">** WARNING! All changes made in this file will be lost!</span> <a name="l00009"></a>00009 <span class="comment">****************************************************************************/</span> <a name="l00010"></a>00010 <a name="l00011"></a>00011 <span class="preprocessor">#include "certificatewizard.h"</span> <a name="l00012"></a>00012 <a name="l00013"></a>00013 <span class="preprocessor">#include <qvariant.h></span> <a name="l00014"></a>00014 <span class="preprocessor">#include <qpushbutton.h></span> <a name="l00015"></a>00015 <span class="preprocessor">#include <qwidget.h></span> <a name="l00016"></a>00016 <span class="preprocessor">#include <qlabel.h></span> <a name="l00017"></a>00017 <span class="preprocessor">#include <qgroupbox.h></span> <a name="l00018"></a>00018 <span class="preprocessor">#include <qcombobox.h></span> <a name="l00019"></a>00019 <span class="preprocessor">#include <qbuttongroup.h></span> <a name="l00020"></a>00020 <span class="preprocessor">#include <qradiobutton.h></span> <a name="l00021"></a>00021 <span class="preprocessor">#include <qframe.h></span> <a name="l00022"></a>00022 <span class="preprocessor">#include <kurlrequester.h></span> <a name="l00023"></a>00023 <span class="preprocessor">#include <qlineedit.h></span> <a name="l00024"></a>00024 <span class="preprocessor">#include <qcheckbox.h></span> <a name="l00025"></a>00025 <span class="preprocessor">#include <qtextedit.h></span> <a name="l00026"></a>00026 <span class="preprocessor">#include <qlayout.h></span> <a name="l00027"></a>00027 <span class="preprocessor">#include <qtooltip.h></span> <a name="l00028"></a>00028 <span class="preprocessor">#include <qwhatsthis.h></span> <a name="l00029"></a>00029 <span class="preprocessor">#include "klineedit.h"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "kpushbutton.h"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="comment">/*</span> <a name="l00033"></a>00033 <span class="comment"> * Constructs a CertificateWizard as a child of 'parent', with the</span> <a name="l00034"></a>00034 <span class="comment"> * name 'name' and widget flags set to 'f'.</span> <a name="l00035"></a>00035 <span class="comment"> *</span> <a name="l00036"></a>00036 <span class="comment"> * The wizard will by default be modeless, unless you set 'modal' to</span> <a name="l00037"></a>00037 <span class="comment"> * TRUE to construct a modal wizard.</span> <a name="l00038"></a>00038 <span class="comment"> */</span> <a name="l00039"></a>00039 CertificateWizard::CertificateWizard( QWidget* parent, <span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">bool</span> modal, WFlags fl ) <a name="l00040"></a>00040 : KWizard( parent, name, modal, fl ) <a name="l00041"></a>00041 { <a name="l00042"></a>00042 <span class="keywordflow">if</span> ( !name ) <a name="l00043"></a>00043 setName( <span class="stringliteral">"CertificateWizard"</span> ); <a name="l00044"></a>00044 QFont f( font() ); <a name="l00045"></a>00045 f.setPointSize( 16 ); <a name="l00046"></a>00046 f.setBold( TRUE ); <a name="l00047"></a>00047 setTitleFont( f ); <a name="l00048"></a>00048 <a name="l00049"></a>00049 introPage = <span class="keyword">new</span> QWidget( <span class="keyword">this</span>, <span class="stringliteral">"introPage"</span> ); <a name="l00050"></a>00050 introPageLayout = <span class="keyword">new</span> QVBoxLayout( introPage, 11, 6, <span class="stringliteral">"introPageLayout"</span>); <a name="l00051"></a>00051 <a name="l00052"></a>00052 TextLabel1 = <span class="keyword">new</span> QLabel( introPage, <span class="stringliteral">"TextLabel1"</span> ); <a name="l00053"></a>00053 introPageLayout->addWidget( TextLabel1 ); <a name="l00054"></a>00054 spacer3 = <span class="keyword">new</span> QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); <a name="l00055"></a>00055 introPageLayout->addItem( spacer3 ); <a name="l00056"></a>00056 addPage( introPage, QString(<span class="stringliteral">""</span>) ); <a name="l00057"></a>00057 <a name="l00058"></a>00058 WizardPage = <span class="keyword">new</span> QWidget( <span class="keyword">this</span>, <span class="stringliteral">"WizardPage"</span> ); <a name="l00059"></a>00059 WizardPageLayout = <span class="keyword">new</span> QVBoxLayout( WizardPage, 11, 6, <span class="stringliteral">"WizardPageLayout"</span>); <a name="l00060"></a>00060 <a name="l00061"></a>00061 TextLabel2_2 = <span class="keyword">new</span> QLabel( WizardPage, <span class="stringliteral">"TextLabel2_2"</span> ); <a name="l00062"></a>00062 TextLabel2_2->setAlignment( <span class="keywordtype">int</span>( QLabel::WordBreak | QLabel::AlignVCenter ) ); <a name="l00063"></a>00063 WizardPageLayout->addWidget( TextLabel2_2 ); <a name="l00064"></a>00064 spacer14 = <span class="keyword">new</span> QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); <a name="l00065"></a>00065 WizardPageLayout->addItem( spacer14 ); <a name="l00066"></a>00066 <a name="l00067"></a>00067 groupBox1 = <span class="keyword">new</span> QGroupBox( WizardPage, <span class="stringliteral">"groupBox1"</span> ); <a name="l00068"></a>00068 groupBox1->setColumnLayout(0, Qt::Vertical ); <a name="l00069"></a>00069 groupBox1->layout()->setSpacing( 6 ); <a name="l00070"></a>00070 groupBox1->layout()->setMargin( 11 ); <a name="l00071"></a>00071 groupBox1Layout = <span class="keyword">new</span> QHBoxLayout( groupBox1->layout() ); <a name="l00072"></a>00072 groupBox1Layout->setAlignment( Qt::AlignTop ); <a name="l00073"></a>00073 <a name="l00074"></a>00074 textLabel1 = <span class="keyword">new</span> QLabel( groupBox1, <span class="stringliteral">"textLabel1"</span> ); <a name="l00075"></a>00075 groupBox1Layout->addWidget( textLabel1 ); <a name="l00076"></a>00076 <a name="l00077"></a>00077 keyLengthCB = <span class="keyword">new</span> QComboBox( FALSE, groupBox1, <span class="stringliteral">"keyLengthCB"</span> ); <a name="l00078"></a>00078 groupBox1Layout->addWidget( keyLengthCB ); <a name="l00079"></a>00079 spacer13 = <span class="keyword">new</span> QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); <a name="l00080"></a>00080 groupBox1Layout->addItem( spacer13 ); <a name="l00081"></a>00081 WizardPageLayout->addWidget( groupBox1 ); <a name="l00082"></a>00082 <a name="l00083"></a>00083 certTypeBG = <span class="keyword">new</span> QButtonGroup( WizardPage, <span class="stringliteral">"certTypeBG"</span> ); <a name="l00084"></a>00084 certTypeBG->setColumnLayout(0, Qt::Vertical ); <a name="l00085"></a>00085 certTypeBG->layout()->setSpacing( 6 ); <a name="l00086"></a>00086 certTypeBG->layout()->setMargin( 11 ); <a name="l00087"></a>00087 certTypeBGLayout = <span class="keyword">new</span> QVBoxLayout( certTypeBG->layout() ); <a name="l00088"></a>00088 certTypeBGLayout->setAlignment( Qt::AlignTop ); <a name="l00089"></a>00089 <a name="l00090"></a>00090 signOnlyCB = <span class="keyword">new</span> QRadioButton( certTypeBG, <span class="stringliteral">"signOnlyCB"</span> ); <a name="l00091"></a>00091 certTypeBGLayout->addWidget( signOnlyCB ); <a name="l00092"></a>00092 <a name="l00093"></a>00093 encryptOnlyCB = <span class="keyword">new</span> QRadioButton( certTypeBG, <span class="stringliteral">"encryptOnlyCB"</span> ); <a name="l00094"></a>00094 certTypeBGLayout->addWidget( encryptOnlyCB ); <a name="l00095"></a>00095 <a name="l00096"></a>00096 bothCB = <span class="keyword">new</span> QRadioButton( certTypeBG, <span class="stringliteral">"bothCB"</span> ); <a name="l00097"></a>00097 bothCB->setChecked( TRUE ); <a name="l00098"></a>00098 certTypeBGLayout->addWidget( bothCB ); <a name="l00099"></a>00099 WizardPageLayout->addWidget( certTypeBG ); <a name="l00100"></a>00100 spacer12 = <span class="keyword">new</span> QSpacerItem( 21, 60, QSizePolicy::Minimum, QSizePolicy::Expanding ); <a name="l00101"></a>00101 WizardPageLayout->addItem( spacer12 ); <a name="l00102"></a>00102 addPage( WizardPage, QString(<span class="stringliteral">""</span>) ); <a name="l00103"></a>00103 <a name="l00104"></a>00104 personalDataPage = <span class="keyword">new</span> QWidget( <span class="keyword">this</span>, <span class="stringliteral">"personalDataPage"</span> ); <a name="l00105"></a>00105 personalDataPageLayout = <span class="keyword">new</span> QGridLayout( personalDataPage, 1, 1, 11, 6, <span class="stringliteral">"personalDataPageLayout"</span>); <a name="l00106"></a>00106 <a name="l00107"></a>00107 TextLabel2 = <span class="keyword">new</span> QLabel( personalDataPage, <span class="stringliteral">"TextLabel2"</span> ); <a name="l00108"></a>00108 TextLabel2->setAlignment( <span class="keywordtype">int</span>( QLabel::WordBreak | QLabel::AlignVCenter ) ); <a name="l00109"></a>00109 <a name="l00110"></a>00110 personalDataPageLayout->addMultiCellWidget( TextLabel2, 0, 0, 0, 1 ); <a name="l00111"></a>00111 spacer6 = <span class="keyword">new</span> QSpacerItem( 440, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); <a name="l00112"></a>00112 personalDataPageLayout->addItem( spacer6, 4, 0 ); <a name="l00113"></a>00113 <a name="l00114"></a>00114 insertAddressButton = <span class="keyword">new</span> QPushButton( personalDataPage, <span class="stringliteral">"insertAddressButton"</span> ); <a name="l00115"></a>00115 <a name="l00116"></a>00116 personalDataPageLayout->addWidget( insertAddressButton, 4, 1 ); <a name="l00117"></a>00117 spacer4 = <span class="keyword">new</span> QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); <a name="l00118"></a>00118 personalDataPageLayout->addItem( spacer4, 1, 0 ); <a name="l00119"></a>00119 <a name="l00120"></a>00120 edContainer = <span class="keyword">new</span> QFrame( personalDataPage, <span class="stringliteral">"edContainer"</span> ); <a name="l00121"></a>00121 edContainer->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, edContainer->sizePolicy().hasHeightForWidth() ) ); <a name="l00122"></a>00122 edContainer->setFrameShape( QFrame::StyledPanel ); <a name="l00123"></a>00123 edContainer->setFrameShadow( QFrame::Sunken ); <a name="l00124"></a>00124 <a name="l00125"></a>00125 personalDataPageLayout->addMultiCellWidget( edContainer, 2, 2, 0, 1 ); <a name="l00126"></a>00126 addPage( personalDataPage, QString(<span class="stringliteral">""</span>) ); <a name="l00127"></a>00127 <a name="l00128"></a>00128 generatePage = <span class="keyword">new</span> QWidget( <span class="keyword">this</span>, <span class="stringliteral">"generatePage"</span> ); <a name="l00129"></a>00129 generatePageLayout = <span class="keyword">new</span> QGridLayout( generatePage, 1, 1, 11, 6, <span class="stringliteral">"generatePageLayout"</span>); <a name="l00130"></a>00130 <a name="l00131"></a>00131 TextLabel4 = <span class="keyword">new</span> QLabel( generatePage, <span class="stringliteral">"TextLabel4"</span> ); <a name="l00132"></a>00132 TextLabel4->setAlignment( <span class="keywordtype">int</span>( QLabel::WordBreak | QLabel::AlignVCenter ) ); <a name="l00133"></a>00133 <a name="l00134"></a>00134 generatePageLayout->addMultiCellWidget( TextLabel4, 0, 0, 0, 2 ); <a name="l00135"></a>00135 spacer5 = <span class="keyword">new</span> QSpacerItem( 21, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); <a name="l00136"></a>00136 generatePageLayout->addMultiCell( spacer5, 1, 1, 0, 1 ); <a name="l00137"></a>00137 <a name="l00138"></a>00138 ButtonGroup7 = <span class="keyword">new</span> QButtonGroup( generatePage, <span class="stringliteral">"ButtonGroup7"</span> ); <a name="l00139"></a>00139 ButtonGroup7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)1, 0, 0, ButtonGroup7->sizePolicy().hasHeightForWidth() ) ); <a name="l00140"></a>00140 ButtonGroup7->setColumnLayout(0, Qt::Vertical ); <a name="l00141"></a>00141 ButtonGroup7->layout()->setSpacing( 6 ); <a name="l00142"></a>00142 ButtonGroup7->layout()->setMargin( 11 ); <a name="l00143"></a>00143 ButtonGroup7Layout = <span class="keyword">new</span> QGridLayout( ButtonGroup7->layout() ); <a name="l00144"></a>00144 ButtonGroup7Layout->setAlignment( Qt::AlignTop ); <a name="l00145"></a>00145 <a name="l00146"></a>00146 storeUR = <span class="keyword">new</span> KURLRequester( ButtonGroup7, <span class="stringliteral">"storeUR"</span> ); <a name="l00147"></a>00147 <a name="l00148"></a>00148 ButtonGroup7Layout->addWidget( storeUR, 0, 1 ); <a name="l00149"></a>00149 <a name="l00150"></a>00150 storeInFileRB = <span class="keyword">new</span> QRadioButton( ButtonGroup7, <span class="stringliteral">"storeInFileRB"</span> ); <a name="l00151"></a>00151 <a name="l00152"></a>00152 ButtonGroup7Layout->addWidget( storeInFileRB, 0, 0 ); <a name="l00153"></a>00153 <a name="l00154"></a>00154 sendToCARB = <span class="keyword">new</span> QRadioButton( ButtonGroup7, <span class="stringliteral">"sendToCARB"</span> ); <a name="l00155"></a>00155 sendToCARB->setChecked( TRUE ); <a name="l00156"></a>00156 <a name="l00157"></a>00157 ButtonGroup7Layout->addWidget( sendToCARB, 1, 0 ); <a name="l00158"></a>00158 <a name="l00159"></a>00159 caEmailED = <span class="keyword">new</span> QLineEdit( ButtonGroup7, <span class="stringliteral">"caEmailED"</span> ); <a name="l00160"></a>00160 <a name="l00161"></a>00161 ButtonGroup7Layout->addWidget( caEmailED, 1, 1 ); <a name="l00162"></a>00162 <a name="l00163"></a>00163 brokenCA = <span class="keyword">new</span> QCheckBox( ButtonGroup7, <span class="stringliteral">"brokenCA"</span> ); <a name="l00164"></a>00164 <a name="l00165"></a>00165 ButtonGroup7Layout->addMultiCellWidget( brokenCA, 2, 2, 0, 1 ); <a name="l00166"></a>00166 <a name="l00167"></a>00167 generatePageLayout->addMultiCellWidget( ButtonGroup7, 2, 2, 0, 2 ); <a name="l00168"></a>00168 <a name="l00169"></a>00169 generatePB = <span class="keyword">new</span> QPushButton( generatePage, <span class="stringliteral">"generatePB"</span> ); <a name="l00170"></a>00170 generatePB->setMinimumSize( QSize( 0, 30 ) ); <a name="l00171"></a>00171 <a name="l00172"></a>00172 generatePageLayout->addWidget( generatePB, 3, 1 ); <a name="l00173"></a>00173 Spacer12 = <span class="keyword">new</span> QSpacerItem( 118, 16, QSizePolicy::Expanding, QSizePolicy::Minimum ); <a name="l00174"></a>00174 generatePageLayout->addItem( Spacer12, 3, 2 ); <a name="l00175"></a>00175 Spacer13 = <span class="keyword">new</span> QSpacerItem( 119, 16, QSizePolicy::Expanding, QSizePolicy::Minimum ); <a name="l00176"></a>00176 generatePageLayout->addItem( Spacer13, 3, 0 ); <a name="l00177"></a>00177 addPage( generatePage, QString(<span class="stringliteral">""</span>) ); <a name="l00178"></a>00178 <a name="l00179"></a>00179 finishPage = <span class="keyword">new</span> QWidget( <span class="keyword">this</span>, <span class="stringliteral">"finishPage"</span> ); <a name="l00180"></a>00180 finishPageLayout = <span class="keyword">new</span> QVBoxLayout( finishPage, 11, 6, <span class="stringliteral">"finishPageLayout"</span>); <a name="l00181"></a>00181 <a name="l00182"></a>00182 TextLabel7 = <span class="keyword">new</span> QLabel( finishPage, <span class="stringliteral">"TextLabel7"</span> ); <a name="l00183"></a>00183 TextLabel7->setAlignment( <span class="keywordtype">int</span>( QLabel::WordBreak | QLabel::AlignVCenter ) ); <a name="l00184"></a>00184 finishPageLayout->addWidget( TextLabel7 ); <a name="l00185"></a>00185 <a name="l00186"></a>00186 certificateTE = <span class="keyword">new</span> QTextEdit( finishPage, <span class="stringliteral">"certificateTE"</span> ); <a name="l00187"></a>00187 certificateTE->setReadOnly( TRUE ); <a name="l00188"></a>00188 finishPageLayout->addWidget( certificateTE ); <a name="l00189"></a>00189 addPage( finishPage, QString(<span class="stringliteral">""</span>) ); <a name="l00190"></a>00190 languageChange(); <a name="l00191"></a>00191 resize( QSize(832, 589).expandedTo(minimumSizeHint()) ); <a name="l00192"></a>00192 clearWState( WState_Polished ); <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="comment">// signals and slots connections</span> <a name="l00195"></a>00195 connect( generatePB, SIGNAL( clicked() ), <span class="keyword">this</span>, SLOT( slotGenerateCertificate() ) ); <a name="l00196"></a>00196 connect( sendToCARB, SIGNAL( toggled(<span class="keywordtype">bool</span>) ), caEmailED, SLOT( setEnabled(<span class="keywordtype">bool</span>) ) ); <a name="l00197"></a>00197 connect( storeInFileRB, SIGNAL( toggled(<span class="keywordtype">bool</span>) ), storeUR, SLOT( setEnabled(<span class="keywordtype">bool</span>) ) ); <a name="l00198"></a>00198 connect( caEmailED, SIGNAL( textChanged(<span class="keyword">const</span> QString&) ), <span class="keyword">this</span>, SLOT( slotEmailAddressChanged(<span class="keyword">const</span> QString&) ) ); <a name="l00199"></a>00199 connect( sendToCARB, SIGNAL( clicked() ), caEmailED, SLOT( setFocus() ) ); <a name="l00200"></a>00200 connect( storeInFileRB, SIGNAL( clicked() ), storeUR, SLOT( setFocus() ) ); <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="comment">// tab order</span> <a name="l00203"></a>00203 setTabOrder( sendToCARB, caEmailED ); <a name="l00204"></a>00204 setTabOrder( caEmailED, certificateTE ); <a name="l00205"></a>00205 setTabOrder( certificateTE, generatePB ); <a name="l00206"></a>00206 <a name="l00207"></a>00207 <span class="comment">// buddies</span> <a name="l00208"></a>00208 textLabel1->setBuddy( keyLengthCB ); <a name="l00209"></a>00209 } <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="comment">/*</span> <a name="l00212"></a>00212 <span class="comment"> * Destroys the object and frees any allocated resources</span> <a name="l00213"></a>00213 <span class="comment"> */</span> <a name="l00214"></a>00214 CertificateWizard::~CertificateWizard() <a name="l00215"></a>00215 { <a name="l00216"></a>00216 <span class="comment">// no need to delete child widgets, Qt does it all for us</span> <a name="l00217"></a>00217 } <a name="l00218"></a>00218 <a name="l00219"></a>00219 <span class="comment">/*</span> <a name="l00220"></a>00220 <span class="comment"> * Sets the strings of the subwidgets using the current</span> <a name="l00221"></a>00221 <span class="comment"> * language.</span> <a name="l00222"></a>00222 <span class="comment"> */</span> <a name="l00223"></a>00223 <span class="keywordtype">void</span> CertificateWizard::languageChange() <a name="l00224"></a>00224 { <a name="l00225"></a>00225 setCaption( tr2i18n( <span class="stringliteral">"Key Generation Wizard"</span> ) ); <a name="l00226"></a>00226 TextLabel1->setText( tr2i18n( <span class="stringliteral">"<b>Welcome to the Key Generation Wizard.</b>\n"</span> <a name="l00227"></a>00227 <span class="stringliteral">"<br>\n"</span> <a name="l00228"></a>00228 <span class="stringliteral">"<br>\n"</span> <a name="l00229"></a>00229 <span class="stringliteral">"In a few easy steps, this wizard will help you to create a new key pair and request a certificate for it. You can then use your certificate in order to sign messages, to encrypt messages and to decrypt messages that other people send to you in encrypted form.\n"</span> <a name="l00230"></a>00230 <span class="stringliteral">"<p>\n"</span> <a name="l00231"></a>00231 <span class="stringliteral">"The key pair will be generated in a decentralized manner. Please contact your local help desk if you are unsure how to obtain a certificate for your new key in your organization."</span> ) ); <a name="l00232"></a>00232 setTitle( introPage, tr2i18n( <span class="stringliteral">"Key Generation Wizard"</span> ) ); <a name="l00233"></a>00233 TextLabel2_2->setText( tr2i18n( <span class="stringliteral">"On this page, you will configure the cryptographic key length and the type of certificate to create."</span> ) ); <a name="l00234"></a>00234 groupBox1->setTitle( tr2i18n( <span class="stringliteral">"Cryptographic Key Length"</span> ) ); <a name="l00235"></a>00235 textLabel1->setText( tr2i18n( <span class="stringliteral">"Choose &key length:"</span> ) ); <a name="l00236"></a>00236 certTypeBG->setTitle( tr2i18n( <span class="stringliteral">"Certificate Usage"</span> ) ); <a name="l00237"></a>00237 signOnlyCB->setText( tr2i18n( <span class="stringliteral">"For &signing only"</span> ) ); <a name="l00238"></a>00238 encryptOnlyCB->setText( tr2i18n( <span class="stringliteral">"For &encrypting only"</span> ) ); <a name="l00239"></a>00239 bothCB->setText( tr2i18n( <span class="stringliteral">"For signing &and encrypting"</span> ) ); <a name="l00240"></a>00240 setTitle( WizardPage, tr2i18n( <span class="stringliteral">"Key Parameters"</span> ) ); <a name="l00241"></a>00241 TextLabel2->setText( tr2i18n( <span class="stringliteral">"On this page, you will enter some personal data that will be stored in your certificate and that will help other people to determine that it is actually you who is sending a message."</span> ) ); <a name="l00242"></a>00242 insertAddressButton->setText( tr2i18n( <span class="stringliteral">"&Insert My Address"</span> ) ); <a name="l00243"></a>00243 QToolTip::add( insertAddressButton, tr2i18n( <span class="stringliteral">"This will insert your address if you have set the \"Who am I\" information in the address book"</span> ) ); <a name="l00244"></a>00244 setTitle( personalDataPage, tr2i18n( <span class="stringliteral">"Your Personal Data"</span> ) ); <a name="l00245"></a>00245 TextLabel4->setText( tr2i18n( <span class="stringliteral">"<qt><p>On this page, you will create a key pair in a decentralized way.\n"</span> <a name="l00246"></a>00246 <span class="stringliteral">"</p><p>You can either store the certificate request in a file for later transmission or \n"</span> <a name="l00247"></a>00247 <span class="stringliteral">"send it to the Certificate Authority (CA) directly. Please check with \n"</span> <a name="l00248"></a>00248 <span class="stringliteral">"your local help desk if you are unsure what to select here.</p><p>\n"</span> <a name="l00249"></a>00249 <span class="stringliteral">"Once you are done with your settings, click \n"</span> <a name="l00250"></a>00250 <span class="stringliteral">"<em>Generate Key Pair and Certificate Request</em> in order to generate your key pair and a corresponding certificate request.</p>\n"</span> <a name="l00251"></a>00251 <span class="stringliteral">"<p><b>Note:</b> if you choose to send via email directly, \n"</span> <a name="l00252"></a>00252 <span class="stringliteral">"a kmail composer will be opened; you can add detailed information for the CA\n"</span> <a name="l00253"></a>00253 <span class="stringliteral">"there.</p><qt>"</span> ) ); <a name="l00254"></a>00254 ButtonGroup7->setTitle( tr2i18n( <span class="stringliteral">"Certificate Request Options"</span> ) ); <a name="l00255"></a>00255 storeInFileRB->setText( tr2i18n( <span class="stringliteral">"&Store in a file:"</span> ) ); <a name="l00256"></a>00256 sendToCARB->setText( tr2i18n( <span class="stringliteral">"Send to CA as an &email message:"</span> ) ); <a name="l00257"></a>00257 brokenCA->setText( tr2i18n( <span class="stringliteral">"Add email to DN in request for broken CAs"</span> ) ); <a name="l00258"></a>00258 generatePB->setText( tr2i18n( <span class="stringliteral">"&Generate Key Pair && Certificate Request"</span> ) ); <a name="l00259"></a>00259 setTitle( generatePage, tr2i18n( <span class="stringliteral">"Decentralized Key Generation"</span> ) ); <a name="l00260"></a>00260 TextLabel7->setText( tr2i18n( <span class="stringliteral">"<qt>\n"</span> <a name="l00261"></a>00261 <span class="stringliteral">"Your key pair has now been created and stored locally. The corresponding certificate request is now ready to be sent to the CA (certification authority) which will generate a certificate for you and send it back via email (unless you have selected storage in a file). Please review the certificate details shown below.\n"</span> <a name="l00262"></a>00262 <span class="stringliteral">"<p>\n"</span> <a name="l00263"></a>00263 <span class="stringliteral">"If you want to change anything, press Back and make your changes; otherwise, press Finish to send the certificate request to the CA.\n"</span> <a name="l00264"></a>00264 <span class="stringliteral">"</qt>"</span> ) ); <a name="l00265"></a>00265 setTitle( finishPage, tr2i18n( <span class="stringliteral">"Your Certificate Request is Ready to Be Sent"</span> ) ); <a name="l00266"></a>00266 } <a name="l00267"></a>00267 <a name="l00268"></a>00268 <span class="keywordtype">void</span> CertificateWizard::slotEmailAddressChanged(<span class="keyword">const</span> QString&) <a name="l00269"></a>00269 { <a name="l00270"></a>00270 qWarning( <span class="stringliteral">"CertificateWizard::slotEmailAddressChanged(const QString&): Not implemented yet"</span> ); <a name="l00271"></a>00271 } <a name="l00272"></a>00272 <a name="l00273"></a>00273 <span class="keywordtype">void</span> CertificateWizard::slotGenerateCertificate() <a name="l00274"></a>00274 { <a name="l00275"></a>00275 qWarning( <span class="stringliteral">"CertificateWizard::slotGenerateCertificate(): Not implemented yet"</span> ); <a name="l00276"></a>00276 } <a name="l00277"></a>00277 <a name="l00278"></a>00278 <span class="preprocessor">#include "certificatewizard.moc"</span> </pre></div></div> </div></div> </td> </tr> <tr> <td valign="top" id="leftmenu" width="25%"> <a name="navigation"></a> <div class="menu_box"><h2>certmanager</h2> <div class="nav_list"> <ul><li><a href="index.html">Main Page</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="functions.html">Class Members</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classCertKeyListView.html">certkeylistview</option>, <option value="classKIOext_1_1StoredTransferJob.html">kioext::storedtransferjob</option>, </select> </form> </div> --> </div></div> <div class="menu_box"><h2>API Dox</h2> <div class="nav_list"> <ul> <li><a href="../../akregator/html/index.html">akregator</a></li><li> <a href="../../akregator/src/html/index.html">src</a></li><li> <a href="../../akregator/src/librss/html/index.html">librss</a></li><li><a href="../../certmanager/html/index.html">certmanager</a></li><li> <a href="../../certmanager/lib/html/index.html">lib</a></li><li><a href="../../kaddressbook/html/index.html">kaddressbook</a></li><li><a href="../../kalarm/html/index.html">kalarm</a></li><li> <a href="../../kalarm/lib/html/index.html">lib</a></li><li><a href="../../kandy/html/index.html">kandy</a></li><li><a href="../../karm/html/index.html">karm</a></li><li><a href="../../kdgantt/html/index.html">kdgantt</a></li><li><a href="../../kgantt/html/index.html">kgantt</a></li><li><a href="../../kioslaves/html/index.html">kioslaves</a></li><li> <a href="../../kioslaves/imap4/html/index.html">imap4</a></li><li> <a href="../../kioslaves/mbox/html/index.html">mbox</a></li><li><a href="../../kitchensync/html/index.html">kitchensync</a></li><li><a href="../../kmail/html/index.html">kmail</a></li><li><a href="../../knotes/html/index.html">knotes</a></li><li><a href="../../konsolekalendar/html/index.html">konsolekalendar</a></li><li><a href="../../kontact/html/index.html">kontact</a></li><li><a href="../../korganizer/html/index.html">korganizer</a></li><li><a href="../../kpilot/html/index.html">kpilot</a></li><li> <a href="../../kpilot/kpilot/html/index.html">kpilot</a></li><li> <a href="../../kpilot/lib/html/index.html">lib</a></li><li><a href="../../libemailfunctions/html/index.html">libemailfunctions</a></li><li><a href="../../libkcal/html/index.html">libkcal</a></li><li><a href="../../libkdepim/html/index.html">libkdepim</a></li><li><a href="../../libkholidays/html/index.html">libkholidays</a></li><li><a href="../../libkmime/html/index.html">libkmime</a></li><li><a href="../../libkpgp/html/index.html">libkpgp</a></li><li><a href="../../libkpimidentities/html/index.html">libkpimidentities</a></li> </ul></div></div> </td> </tr> </table> <span class="doNotDisplay"> <a href="http://www.kde.org/" accesskey="8">KDE Home</a> | <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> | <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a> </span> <div style="height: 8px"></div> <div id="footer"> <div id="footer_left"> Maintained by <a href="mailto:groot@kde.org">Adriaan de Groot</a> and <a href="mailto:winter@kde.org">Allen Winter</a>. <br/> KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a> </div> <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a> WARNING END --> </body> </html>