securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtvalidatorpassword.cpp
changeset 49 43351a4f2da3
parent 34 ad1f037f1ac2
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    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     }