author | clem <clem> | 2004-06-15 13:49:36 (UTC) |
---|---|---|
committer | clem <clem> | 2004-06-15 13:49:36 (UTC) |
commit | 5431072f0ea1cbc8ca37914b6349e66079f1acff (patch) (unidiff) | |
tree | da335f89e506cde6ffe59a252b4ccab4e177809b /noncore/securityplugins/pin/pinConfigWidget.cpp | |
parent | ba4722d0fed5527a5b799281caf6324f2e7ad5d8 (diff) | |
download | opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.zip opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.tar.gz opie-5431072f0ea1cbc8ca37914b6349e66079f1acff.tar.bz2 |
First revision of securityplugins, called by libopiesecurity2 authentication framework (see http://dudu.dyn.2-h.org/nist/OMAF.php).
Diffstat (limited to 'noncore/securityplugins/pin/pinConfigWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/securityplugins/pin/pinConfigWidget.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/securityplugins/pin/pinConfigWidget.cpp b/noncore/securityplugins/pin/pinConfigWidget.cpp new file mode 100644 index 0000000..53e1a20 --- a/dev/null +++ b/noncore/securityplugins/pin/pinConfigWidget.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | #include <qwidget.h> | ||
2 | #include <qlayout.h> | ||
3 | #include <qlabel.h> | ||
4 | #include <qgroupbox.h> | ||
5 | |||
6 | #include "pinConfigWidget.h" | ||
7 | |||
8 | PinConfigWidget::PinConfigWidget(QWidget* parent = 0, const char* name = "PIN configuration widget") | ||
9 | : MultiauthConfigWidget(parent, name) | ||
10 | { | ||
11 | QVBoxLayout * baseLayout = new QVBoxLayout( this); | ||
12 | baseLayout->setSpacing(11); | ||
13 | baseLayout->setMargin(11); | ||
14 | baseLayout->setAlignment( Qt::AlignTop ); | ||
15 | |||
16 | QGroupBox * configBox = new QGroupBox(0, Qt::Vertical, tr("Configure your PIN here"), this); | ||
17 | baseLayout->addWidget(configBox); | ||
18 | QVBoxLayout *boxLayout = new QVBoxLayout( configBox->layout() ); | ||
19 | |||
20 | QLabel * description = new QLabel("<p>" + tr("PIN protection provides a minimal level of protection from casual access to this device.") + "</p>", configBox); | ||
21 | boxLayout->addWidget(description); | ||
22 | |||
23 | QHBoxLayout * buttonLayout = new QHBoxLayout(); | ||
24 | buttonLayout->setSpacing(6); | ||
25 | changePIN = new QPushButton( tr("Change PIN"), configBox, "changePIN" ); | ||
26 | clearPIN = new QPushButton( tr("Clear PIN"), configBox, "clearPIN" ); | ||
27 | buttonLayout->addWidget(changePIN); | ||
28 | buttonLayout->addWidget(clearPIN); | ||
29 | boxLayout->addLayout(buttonLayout); | ||
30 | |||
31 | } | ||
32 | |||
33 | /// nothing to do | ||
34 | PinConfigWidget::~PinConfigWidget() | ||
35 | {} | ||
36 | |||
37 | /// does nothing since the config file update is already done in changePIN or clearPIN | ||
38 | void PinConfigWidget::writeConfig() | ||
39 | {} | ||