securitysettings/qtconfigutils/eapqtconfiginterface/inc/eapqtvalidatorusername.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     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 method validator: username
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20  * %version: 7 %
       
    21  */
       
    22 
       
    23 #ifndef EAPQTVALIDATORUSERNAME_H
       
    24 #define EAPQTVALIDATORUSERNAME_H
       
    25 
       
    26 // System includes
       
    27 #include <eapqtvalidator.h>
       
    28 #include <eapqtexpandedeaptype.h>
       
    29 
       
    30 // User includes
       
    31 
       
    32 // Forward declarations
       
    33 
       
    34 // External data types
       
    35 
       
    36 // Constants
       
    37 
       
    38 // Class declaration
       
    39 class EapQtValidatorUsername: public EapQtValidator
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44     // Data types
       
    45 
       
    46     explicit EapQtValidatorUsername(const EapQtExpandedEapType& type);
       
    47     ~EapQtValidatorUsername();
       
    48 
       
    49     // from EapQtValidator
       
    50     EapQtValidator::Status validate(const QVariant& value);
       
    51     void updateEditor(HbLineEdit* const edit);
       
    52 
       
    53 private:
       
    54 
       
    55     EapQtValidatorUsername();
       
    56     Q_DISABLE_COPY(EapQtValidatorUsername)
       
    57 
       
    58     EapQtValidator::Status validateGeneral(const QVariant& value);
       
    59     bool validateCharacters(const QString& str);
       
    60     void updateEditorGeneral(HbLineEdit* const edit);
       
    61     bool isEmptyAllowed();
       
    62 
       
    63 private: // data
       
    64 
       
    65     EapQtExpandedEapType mEapType;
       
    66 
       
    67 };
       
    68 
       
    69 #endif // EAPQTVALIDATORUSERNAME_H