wlanutilities/eapwizard/inc/eapwizardpagecertuser.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: User Certificate Selection.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef EAPWIZARDPAGECERTUSER_H
       
    20 #define EAPWIZARDPAGECERTUSER_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 HbRadioButtonList;
       
    31 class HbLabel;
       
    32 class EapQtCertificateInfo;
       
    33 class EapWizardPrivate;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 /*!
       
    40    @addtogroup group_eap_wizard
       
    41    @{
       
    42  */
       
    43 
       
    44 // Class declaration
       
    45 
       
    46 class EapWizardPageCertUser : public EapWizardPage
       
    47 {
       
    48     Q_OBJECT
       
    49 public:
       
    50     explicit EapWizardPageCertUser(EapWizardPrivate* parent);
       
    51     ~EapWizardPageCertUser();
       
    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(EapWizardPageCertUser)
       
    68     void createPages();
       
    69     bool hasInnerMethod() const;
       
    70 
       
    71 private slots:
       
    72     void loadDocmlSection(Qt::Orientation orientation);
       
    73     void itemSelected(int index);
       
    74     
       
    75 private: // data
       
    76     // NOT OWNED
       
    77     //! Visualization of the page
       
    78     HbWidget *mWidget;
       
    79     //! Certificate list
       
    80     HbRadioButtonList *mCertList;
       
    81     //! Error text used when there are not any certificates
       
    82     HbLabel *mErrorLabel;
       
    83     
       
    84     // OWNED
       
    85     //! docml document loader 
       
    86     QScopedPointer<HbDocumentLoader> mDocumentLoader;
       
    87     //! Is page valid? it is when a certificate has been selected
       
    88     bool mValid;
       
    89     //! List of system's user certificates
       
    90     QList<EapQtCertificateInfo> mCerts;
       
    91 };
       
    92 
       
    93 /*! @} */
       
    94 
       
    95 #endif