securitysettings/cpwlansecurityuiplugins/cpwpaui/inc/cpwpaui.h
changeset 26 9abfd4f00d37
parent 22 093cf0757204
child 34 ad1f037f1ac2
equal deleted inserted replaced
25:e03a3db4489e 26:9abfd4f00d37
    15 *    Control Panel QT UI for WPA/WPA2 configuration
    15 *    Control Panel QT UI for WPA/WPA2 configuration
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 /*
    19 /*
    20 * %version: tr1cfwln#11.1.1 %
    20 * %version: 16 %
    21 */
    21 */
    22 
    22 
    23 
    23 
    24 #ifndef CPWPAUI_H
    24 #ifndef CPWPAUI_H
    25 #define CPWPAUI_H
    25 #define CPWPAUI_H
    26 
    26 
    27 // System includes
    27 // System includes
    28 #include <cpsettingformitemdata.h>
    28 #include <cpsettingformitemdata.h>
    29 #include <hbglobal.h>
    29 #include <cpwlansecurityplugininterface.h>
    30 #include <HbMessageBox>
       
    31 
    30 
    32 // User includes
    31 // User includes
    33 #include "cpwlansecurityplugininterface.h"
    32 
    34 
    33 
    35 // Forward declarations
    34 // Forward declarations
    36 class EapPluginInformation;
       
    37 class PluginInformation;
       
    38 class CpBaseSettingView;
       
    39 class EapQtConfigInterface;
    35 class EapQtConfigInterface;
    40 class EapEntyItemData;
       
    41 class CpWpaCmnUi;
    36 class CpWpaCmnUi;
    42 class CmConnectionMethodShim;
    37 class CmConnectionMethodShim;
    43 class QTranslator;
    38 class HbTranslator;
       
    39 
    44 
    40 
    45 /*!
    41 /*!
    46  * @addtogroup group_wlan_security_ui_plugin_wpa/wpa2
    42  * @addtogroup group_wlan_security_ui_plugin_wpa/wpa2
    47  * @{
    43  * @{
    48  */
    44  */
    70     int orderNumber() const;
    66     int orderNumber() const;
    71        
    67        
    72     CpSettingFormItemData* uiInstance(
    68     CpSettingFormItemData* uiInstance(
    73             CpItemDataHelper &dataHelper);
    69             CpItemDataHelper &dataHelper);
    74     
    70     
    75 private:
    71     bool validateSettings();
    76     
    72     
    77     bool tryUpdate();
       
    78 
       
    79     void handleUpdateError();
       
    80 
       
    81     void showMessageBox( HbMessageBox::MessageBoxType type,
       
    82             const QString &text);
       
    83     
       
    84     void updateWpaSettings();
       
    85     
       
    86   
       
    87 private slots:
       
    88  
       
    89     //void currentEapPlugin(int plugin);    
       
    90     //void wpaTypeChanged(int pskEnable);
       
    91     void pskKeyChanged(QString& key);
       
    92          
       
    93 
    73 
    94 private:
    74 private:
    95     
    75     
    96     Q_DISABLE_COPY(CpWpaUi)
    76     Q_DISABLE_COPY(CpWpaUi)
    97         
    77         
    98     //!WPA security group item
    78     //!WPA security group item
    99     CpSettingFormItemData* mUi;   
    79     CpSettingFormItemData* mUi;   
   100 
    80 
   101     //! Connection method Id
       
   102     int mCmId;
       
   103    
       
   104     //!Translator for all the localisation Text Id's
    81     //!Translator for all the localisation Text Id's
   105     QTranslator *mTranslator;
    82     HbTranslator *mTranslator;
   106     
    83     
   107     //! Connection Settings Shim connection method pointer    
    84     //! Connection Settings Shim connection method pointer    
   108     CmConnectionMethodShim *mCmCM;    
    85     CmConnectionMethodShim *mCmCM;    
   109     
    86     
   110     //! Eap Plugin config interface
    87     //! Eap Plugin config interface
   111     EapQtConfigInterface *mEapQtConfigInterface;
    88     EapQtConfigInterface *mEapQtConfigInterface;
   112     
    89     
   113     //!WPA ui Implementer Interface
    90     //!WPA ui Implementer Interface
   114     QScopedPointer <CpWpaCmnUi> mWpaUi;
    91     QScopedPointer <CpWpaCmnUi> mWpaUi;
   115     
    92     
   116     //! Message box for info notes
       
   117     QSharedPointer<HbMessageBox> mMessageBox;
       
   118     
       
   119  };
    93  };
   120 
    94 
   121 /*! @} */
    95 /*! @} */
   122  
    96  
   123 #endif //CPWPAUI_H
    97 #endif //CPWPAUI_H