wlanutilities/eapwizard/inc/eapwizardpageusernamepassword.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: Common Username & password query.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef EAPWIZARDPAGEUSERNAMEPASSWORD_H
       
    20 #define EAPWIZARDPAGEUSERNAMEPASSWORD_H
       
    21 
       
    22 // System includes
       
    23 #include <QObject>
       
    24 
       
    25 // User includes
       
    26 #include "eapwizardpage.h"
       
    27 
       
    28 // Forward declarations
       
    29 class HbDocumentLoader;
       
    30 class HbLineEdit;
       
    31 class HbLabel;
       
    32 class EapWizardPrivate;
       
    33 class EapQtValidator;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 /*!
       
    40    @addtogroup group_eap_wizard
       
    41    @{
       
    42  */
       
    43 
       
    44 // Class declaration
       
    45 
       
    46 class EapWizardPageUsernamePassword : public EapWizardPage
       
    47 {
       
    48     Q_OBJECT
       
    49 public:
       
    50     explicit EapWizardPageUsernamePassword(EapWizardPrivate* parent);
       
    51     ~EapWizardPageUsernamePassword();
       
    52 
       
    53 public: // From WlanWizardPage
       
    54     HbWidget* initializePage();
       
    55     int nextId() const;
       
    56     bool showPage();
       
    57 
       
    58 signals:
       
    59         
       
    60 public slots:
       
    61 
       
    62 protected:
       
    63 
       
    64 protected slots:
       
    65 
       
    66 private:
       
    67     Q_DISABLE_COPY(EapWizardPageUsernamePassword)
       
    68     void createPages();
       
    69     bool hasInnerMethod() const;
       
    70 
       
    71 private slots:
       
    72     void textChanged(const QString &text);
       
    73     void loadDocmlSection(Qt::Orientation orientation);
       
    74     
       
    75 private: // data
       
    76     // OWNED 
       
    77     //! Document loader for docml
       
    78     QScopedPointer<HbDocumentLoader> mDocumentLoader;
       
    79     //! Validator for username 
       
    80     QScopedPointer<EapQtValidator> mValidatorUsername;
       
    81     //! Validator for password
       
    82     QScopedPointer<EapQtValidator> mValidatorPassword;
       
    83     
       
    84     // NOT OWNED
       
    85     //! Visualization of the page
       
    86     HbWidget *mWidget;
       
    87     //! Line editor for username
       
    88     HbLineEdit *mEditUsername;
       
    89     //! Line editor for password
       
    90     HbLineEdit *mEditPassword;
       
    91     //! Title/label for username
       
    92     HbLabel *mTitleUsername;
       
    93     //! Title/label for password
       
    94     HbLabel *mTitlePassword;
       
    95 };
       
    96 
       
    97 /*! @} */
       
    98 
       
    99 #endif