securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorpassword.cpp
changeset 52 c23bdf5a328a
parent 39 fe6b6762fccd
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    15  *   EAP method password format validator
    15  *   EAP method password format validator
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 /*
    19 /*
    20  * %version: 9 %
    20  * %version: 10 %
    21  */
    21  */
    22 
    22 
    23 // System includes
    23 // System includes
    24 #include <HbEditorInterface>
    24 #include <HbEditorInterface>
    25 #include <HbLineEdit>
    25 #include <HbLineEdit>
    73 }
    73 }
    74 
    74 
    75 EapQtValidator::Status EapQtValidatorPassword::validateGeneral(const QVariant& value)
    75 EapQtValidator::Status EapQtValidatorPassword::validateGeneral(const QVariant& value)
    76 {
    76 {
    77     Status status(StatusOk);
    77     Status status(StatusOk);
    78     QString str = value.toString();
    78     const QString str = value.toString();
    79 
    79 
    80     // input must be of correct type
    80     // input must be of correct type
    81     if (value.type() != QVariant::String) {
    81     if (value.type() != QVariant::String) {
    82         status = StatusInvalid;
    82         status = StatusInvalid;
    83     }
    83     }