diff -r 093cf0757204 -r 938269283a16 securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h --- a/securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h Fri May 14 15:54:13 2010 +0300 +++ b/securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h Fri Jun 11 13:40:22 2010 +0300 @@ -17,7 +17,7 @@ */ /* - * %version: 13 % + * %version: 17 % */ #ifndef CPWEPUI_H @@ -27,23 +27,18 @@ #include #include #include -//#include -//#include -#include +#include //User Includes -#include "cpwlansecurityplugininterface.h" -#include "wlansecuritycontrolpanelwepdefs.h" -#include "wepkeyvalidator.h" // Forward declarations -class QTranslator; class CmConnectionMethodShim; -class CpWepKeyValidation; -/*! - * @addtogroup group_wlan_security_ui_plugin_wep - * @{ - */ +class HbTranslator; +class WepKeyValidator; + +//Constant declarations +//!Maximum Number of Keys for WEP +static const int KMaxNumberofKeys = 4; /*! * Implements WEP plugin for Wlan security control panel @@ -71,8 +66,10 @@ int orderNumber() const; CpSettingFormItemData* uiInstance(CpItemDataHelper &dataHelper); + + bool validateSettings(); -public: +private: enum WEPKeyFormat { @@ -110,6 +107,10 @@ CMManagerShim::ConnectionMethodAttribute getWEPKeyEnum(int index); + void createWEPKeyGroup(int index); + + void addConnections(CpItemDataHelper &dataHelpper); + private slots: void wepKeyInUseChanged(int index); @@ -121,6 +122,8 @@ void wepKeyThreeChanged(); void wepKeyFourChanged(); + + void setEditorPreferences(const QModelIndex &modelIndex); private: @@ -140,11 +143,11 @@ //!Store the index of the current key in use int mNewKeySelected; + + //!Translator for all the localisation Text Id's + HbTranslator* mTranslator; - //QSharedPointer mTranslator; - QTranslator* mTranslator; - - //! Connection Settings Shim connection method pointer + //!Connection Settings Shim connection method pointer CmConnectionMethodShim *mCmCM; //! Connection method Id @@ -155,6 +158,8 @@ //! Store Formats of WEP keys WEPKeyFormat mkeyFormat[KMaxNumberofKeys]; + + CpItemDataHelper* mItemDataHelper;