wlanutilities/eapwizard/inc/eapwizardpageinnertype.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     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: Inner Type selection
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef EAPWIZARDPAGEINNERTYPE_H
       
    20 #define EAPWIZARDPAGEINNERTYPE_H
       
    21 
       
    22 // System includes
       
    23 #include <QObject>
       
    24 #include <eapqtpluginhandle.h>
       
    25 
       
    26 // User includes
       
    27 #include "eapwizardpage.h"
       
    28 
       
    29 // Forward declarations
       
    30 class HbRadioButtonList;
       
    31 class HbWidget;
       
    32 class HbDocumentLoader;
       
    33 class HbLabel;
       
    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 EapWizardPageInnerType : public EapWizardPage
       
    48 {
       
    49     Q_OBJECT
       
    50 public:
       
    51     EapWizardPageInnerType(EapWizardPrivate* parent, int outerType);
       
    52     ~EapWizardPageInnerType();
       
    53 
       
    54 public: // From WlanWizardPage
       
    55     HbWidget* initializePage();
       
    56     int nextId() const;
       
    57     bool showPage();
       
    58     
       
    59 signals:
       
    60         
       
    61 public slots:
       
    62     void itemSelected(int index);    
       
    63     void loadDocmlSection(Qt::Orientation orientation);
       
    64 
       
    65 protected:
       
    66 
       
    67 protected slots:
       
    68 
       
    69 private:
       
    70     Q_DISABLE_COPY(EapWizardPageInnerType)
       
    71 
       
    72     void appendToList(
       
    73         QStringList &items, 
       
    74         EapQtPluginHandle::Plugin innerType);
       
    75     
       
    76 private slots:
       
    77     
       
    78 private: // data
       
    79     // NOT OWNED
       
    80     //! Visualization of the page
       
    81     HbWidget *mWidget;
       
    82     //! List of innertypes
       
    83     HbRadioButtonList *mRadio;
       
    84     //! Title for inner types
       
    85     HbLabel *mTitle;
       
    86     
       
    87     // OWNED
       
    88     //! Document loader for docml
       
    89     QScopedPointer<HbDocumentLoader> mDocumentLoader;
       
    90     //! Page ID for this page
       
    91     int mOuterType;
       
    92     //! Is content of the page valid?
       
    93     bool mValid;
       
    94     //! Mapped from index (0..n) in radiobuttonlist to eap types
       
    95     QList<int> mEapTypes;
       
    96 };
       
    97 
       
    98 /*! @} */
       
    99 
       
   100 #endif