securitysettings/cpwlansecurityuiplugins/cpwpa2ui/inc/cpwpa2ui.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     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 WPA2 only configuration
       
    16  *
       
    17  */
       
    18 
       
    19 /*
       
    20 * %version: tr1cfwln#15 %
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef CPWPA2UI_H
       
    25 #define CPWPA2UI_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_wpa2_only
       
    43  * @{
       
    44  */
       
    45 
       
    46 /*! 
       
    47  * Implements WPA2 only plugin for Wlan security control panel  
       
    48  */
       
    49 // Class declaration
       
    50 class CpWpa2Ui : public QObject, public CpWlanSecurityPluginInterface
       
    51 {
       
    52     Q_OBJECT
       
    53     Q_INTERFACES(CpWlanSecurityPluginInterface)
       
    54 
       
    55 public:
       
    56     CpWpa2Ui();
       
    57     ~CpWpa2Ui();
       
    58 
       
    59 public: // from CpWlanSecurityPluginInterface 
       
    60           
       
    61         CMManagerShim::WlanSecMode securityMode() const;
       
    62         
       
    63         QString securityModeTextId() const;
       
    64        
       
    65        void setReference(CmConnectionMethodShim *cmCm, uint id);
       
    66               
       
    67        int orderNumber() const;
       
    68               
       
    69        CpSettingFormItemData* uiInstance(
       
    70                CpItemDataHelper &dataHelper);
       
    71        
       
    72        bool validateSettings();
       
    73 
       
    74 private:
       
    75     
       
    76     Q_DISABLE_COPY(CpWpa2Ui)
       
    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> mWpa2Ui;
       
    92 
       
    93  };
       
    94 
       
    95 /*! @} */
       
    96  
       
    97 #endif