|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * EAP-FAST PAC store password correctness validator |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 5 % |
|
21 */ |
|
22 |
|
23 // System includes |
|
24 #include <HbEditorInterface> |
|
25 #include <HbLineEdit> |
|
26 |
|
27 // User includes |
|
28 #include "eapqtvalidatorpacstorepasswordconfirm.h" |
|
29 #include "eapqtconfiginterface_p.h" |
|
30 |
|
31 /*! |
|
32 * \class EapQtValidatorPacStorePasswordConfirm |
|
33 * \brief EAP-FAST PAC store password correctness validator, checks if the |
|
34 * supplied password can be used for opening the existing PAC store |
|
35 */ |
|
36 |
|
37 // External function prototypes |
|
38 |
|
39 // Local constants |
|
40 |
|
41 // ======== LOCAL FUNCTIONS ======== |
|
42 |
|
43 // ======== MEMBER FUNCTIONS ======== |
|
44 |
|
45 EapQtValidatorPacStorePasswordConfirm::EapQtValidatorPacStorePasswordConfirm() |
|
46 { |
|
47 // nothing to do |
|
48 } |
|
49 |
|
50 EapQtValidatorPacStorePasswordConfirm::~EapQtValidatorPacStorePasswordConfirm() |
|
51 { |
|
52 // nothing to do |
|
53 } |
|
54 |
|
55 EapQtValidator::Status EapQtValidatorPacStorePasswordConfirm::validate(const QVariant& /* value */) |
|
56 { |
|
57 qDebug("EapQtValidatorPacStorePasswordConfirm::validate()"); |
|
58 // not supported |
|
59 return EapQtValidator::StatusInvalid; |
|
60 } |
|
61 |
|
62 void EapQtValidatorPacStorePasswordConfirm::updateEditor(HbLineEdit* const edit) |
|
63 { |
|
64 qDebug("EapQtValidatorPacStorePasswordConfirm::updateEditor()"); |
|
65 |
|
66 Q_ASSERT(edit); |
|
67 |
|
68 edit->setMaxLength(EapQtConfigInterfacePrivate::StringMaxLength); |
|
69 edit->setInputMethodHints(Qt::ImhNoAutoUppercase | Qt::ImhPreferLowercase |
|
70 | Qt::ImhNoPredictiveText); |
|
71 |
|
72 // do not set editor class or auto completing since they might leak the pwd |
|
73 HbEditorInterface editInterface(edit); |
|
74 editInterface.setSmileyTheme(HbSmileyTheme()); |
|
75 } |