securitysettings/cpwlansecurityuiplugins/cpwpaui/inc/cpwpaui.h
branchRCL_3
changeset 18 bad0cc58d154
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
       
     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  *    Control Panel QT UI for WPA/WPA2 configuration
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20 * %version: tr1cfwln#17 %
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef CPWPAUI_H
       
    25 #define CPWPAUI_H
       
    26 
       
    27 // System includes
       
    28 #include <cpsettingformitemdata.h>
       
    29 #include <cpwlansecurityplugininterface.h>
       
    30 
       
    31 // User includes
       
    32 
       
    33 
       
    34 // Forward declarations
       
    35 class EapQtConfigInterface;
       
    36 class CpWpaCmnUi;
       
    37 class CmConnectionMethodShim;
       
    38 class HbTranslator;
       
    39 
       
    40 
       
    41 /*!
       
    42  * @addtogroup group_wlan_security_ui_plugin_wpa/wpa2
       
    43  * @{
       
    44  */
       
    45 
       
    46 /*! 
       
    47  * Implements WPA/WPA2 plugin for Wlan security control panel  
       
    48  */
       
    49 class CpWpaUi : public QObject, public CpWlanSecurityPluginInterface
       
    50 {
       
    51     Q_OBJECT
       
    52     Q_INTERFACES(CpWlanSecurityPluginInterface)
       
    53 
       
    54 public:
       
    55     CpWpaUi();
       
    56     ~CpWpaUi();
       
    57 
       
    58 public: // from CpWlanSecurityPluginInterface 
       
    59        
       
    60     CMManagerShim::WlanSecMode securityMode() const;
       
    61     
       
    62     QString securityModeTextId() const;
       
    63         
       
    64     void setReference(CmConnectionMethodShim *cmCm, uint id);
       
    65         
       
    66     int orderNumber() const;
       
    67        
       
    68     CpSettingFormItemData* uiInstance(
       
    69             CpItemDataHelper &dataHelper);
       
    70     
       
    71     bool validateSettings();
       
    72     
       
    73 
       
    74 private:
       
    75     
       
    76     Q_DISABLE_COPY(CpWpaUi)
       
    77         
       
    78     //!WPA security group item
       
    79     CpSettingFormItemData* mUi;   
       
    80 
       
    81     //!Translator for all the localisation Text Id's
       
    82     HbTranslator *mTranslator;
       
    83     
       
    84     //! Connection Settings Shim connection method pointer    
       
    85     CmConnectionMethodShim *mCmCM;    
       
    86     
       
    87     //! Eap Plugin config interface
       
    88     EapQtConfigInterface *mEapQtConfigInterface;
       
    89     
       
    90     //!WPA ui Implementer Interface
       
    91     QScopedPointer <CpWpaCmnUi> mWpaUi;
       
    92     
       
    93  };
       
    94 
       
    95 /*! @} */
       
    96  
       
    97 #endif //CPWPAUI_H