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 format validator |
|
16 * |
|
17 */ |
|
18 |
|
19 /* |
|
20 * %version: 6 % |
|
21 */ |
|
22 |
|
23 // System includes |
|
24 #include <HbEditorInterface> |
|
25 #include <HbLineEdit> |
|
26 |
|
27 // User includes |
|
28 #include "eapqtvalidatorpacstorepassword.h" |
|
29 #include "eapqtconfiginterface_p.h" |
|
30 |
|
31 /*! |
|
32 * \class EapQtValidatorPacStorePassword |
|
33 * \brief EAP-FAST PAC store password format validator |
|
34 */ |
|
35 |
|
36 // External function prototypes |
|
37 |
|
38 // Local constants |
|
39 |
|
40 // ======== LOCAL FUNCTIONS ======== |
|
41 |
|
42 // ======== MEMBER FUNCTIONS ======== |
|
43 |
|
44 EapQtValidatorPacStorePassword::EapQtValidatorPacStorePassword() |
|
45 { |
|
46 // nothing to do |
|
47 } |
|
48 |
|
49 EapQtValidatorPacStorePassword::~EapQtValidatorPacStorePassword() |
|
50 { |
|
51 // nothing to do |
|
52 } |
|
53 |
|
54 EapQtValidator::Status EapQtValidatorPacStorePassword::validate(const QVariant& /* value */) |
|
55 { |
|
56 qDebug("EapQtValidatorPacStorePassword::validate()"); |
|
57 // not supported |
|
58 return EapQtValidator::StatusInvalidCharacters; |
|
59 } |
|
60 |
|
61 void EapQtValidatorPacStorePassword::updateEditor(HbLineEdit* const edit) |
|
62 { |
|
63 qDebug("EapQtValidatorPacStorePassword::updateEditor()"); |
|
64 |
|
65 Q_ASSERT(edit); |
|
66 |
|
67 edit->setMaxLength(EapQtConfigInterfacePrivate::StringMaxLength); |
|
68 edit->setInputMethodHints(Qt::ImhNoAutoUppercase | Qt::ImhPreferLowercase |
|
69 | Qt::ImhNoPredictiveText); |
|
70 |
|
71 // do not set editor class or auto completing since they might leak the pwd |
|
72 HbEditorInterface editInterface(edit); |
|
73 editInterface.setSmileyTheme(HbSmileyTheme()); |
|
74 } |
|