wlanutilities/eapwizard/inc/eapwizardpageidentity.h
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     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 Wizard Page: EAP Identity.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef EAPWIZARDPAGEIDENTITY_H
       
    20 #define EAPWIZARDPAGEIDENTITY_H
       
    21 
       
    22 // System includes
       
    23 #include <QObject>
       
    24 
       
    25 // User includes
       
    26 #include "eapwizardpage.h"
       
    27 
       
    28 // Forward declarations
       
    29 class HbLineEdit;
       
    30 class HbCheckBox;
       
    31 class HbLabel;
       
    32 class HbDocumentLoader;
       
    33 class EapQtValidator;
       
    34 class EapWizardPrivate;
       
    35 
       
    36 // External data types
       
    37 
       
    38 // Constants
       
    39 
       
    40 /*!
       
    41    @addtogroup group_eap_wizard
       
    42    @{
       
    43  */
       
    44 
       
    45 // Class declaration
       
    46 
       
    47 class EapWizardPageIdentity : public EapWizardPage
       
    48 {
       
    49     Q_OBJECT
       
    50 public:
       
    51     explicit EapWizardPageIdentity(EapWizardPrivate* parent);
       
    52     ~EapWizardPageIdentity();
       
    53 
       
    54 public: // From WlanWizardPage
       
    55     HbWidget* initializePage();
       
    56     int nextId() const;
       
    57     bool showPage();
       
    58 
       
    59 signals:
       
    60         
       
    61 public slots:
       
    62 
       
    63 protected:
       
    64 
       
    65 protected slots:
       
    66 
       
    67 private:
       
    68     Q_DISABLE_COPY(EapWizardPageIdentity)
       
    69     bool validateGroup(
       
    70         HbLineEdit *edit, 
       
    71         HbCheckBox *checkBox, 
       
    72         EapQtValidator* validator) const;
       
    73 
       
    74 private slots:
       
    75     void loadDocmlSection(Qt::Orientation orientation);
       
    76     void textChanged(const QString &text);
       
    77     void stateChanged(int state);
       
    78 
       
    79 private: // data
       
    80     // OWNED
       
    81     //! docml document loader 
       
    82     QScopedPointer<HbDocumentLoader> mDocumentLoader;
       
    83     //! Content validator and configurator for line edit of realm
       
    84     QScopedPointer<EapQtValidator> mValidatorRealm;
       
    85     //! Content validator and configurator for line edit of username
       
    86     QScopedPointer<EapQtValidator> mValidatorUsername;
       
    87     
       
    88     // NOT OWNED
       
    89     //! Visualization of the page
       
    90     HbWidget *mWidget;
       
    91     //! Line editor for username
       
    92     HbLineEdit *mEditUsername;
       
    93     //! Line editor for realm
       
    94     HbLineEdit *mEditRealm;
       
    95     //! Checkbox for username
       
    96     HbCheckBox *mCheckUsername;
       
    97     //! Checkbox for realm
       
    98     HbCheckBox *mCheckRealm;
       
    99     //! Title text for realm 
       
   100     HbLabel *mLabelRealm;
       
   101     //! Title text for username 
       
   102     HbLabel *mLabelUsername;
       
   103 };
       
   104 
       
   105 /*! @} */
       
   106 
       
   107 #endif