securitysettings/qtconfigutils/eapqtconfiginterface/inc/eapqtvalidatorusername.h
changeset 33 938269283a16
child 39 fe6b6762fccd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/securitysettings/qtconfigutils/eapqtconfiginterface/inc/eapqtvalidatorusername.h	Fri Jun 11 13:40:22 2010 +0300
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of the License "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description: 
+ *   EAP method validator: username
+ *
+ */
+
+/*
+ * %version: 5 %
+ */
+
+#ifndef EAPQTVALIDATOR_USERNAME_H
+#define EAPQTVALIDATOR_USERNAME_H
+
+#include <eapqtvalidator.h>
+#include <eapqtexpandedeaptype.h>
+
+/*!
+ * @addtogroup group_eap_config_if_impl
+ * @{
+ */
+/*!
+ */
+class EapQtValidatorUsername: public EapQtValidator
+{
+public:
+
+    explicit EapQtValidatorUsername(EapQtExpandedEapType type);
+    ~EapQtValidatorUsername();
+
+    // from EapQtValidator
+    EapQtValidator::Status validate(QVariant value);
+    void updateEditor(HbLineEdit *edit);
+
+private:
+
+    EapQtValidatorUsername();
+    Q_DISABLE_COPY(EapQtValidatorUsername)
+
+    EapQtValidator::Status validateGeneral(QVariant value);
+    bool validateCharacters(QString& str);
+    void updateEditorGeneral(HbLineEdit *edit);
+
+private:
+    EapQtExpandedEapType mEapType;
+
+};
+
+/*! @} */
+
+#endif
+