securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h
branchGCC_SURGE
changeset 40 60f08993dad0
parent 39 fe6b6762fccd
child 49 43351a4f2da3
--- a/securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h	Fri Jun 11 16:24:23 2010 +0100
+++ b/securitysettings/cpwlansecurityuiplugins/cpwepui/inc/cpwepui.h	Thu Jul 22 16:34:37 2010 +0100
@@ -2,7 +2,7 @@
  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
  * All rights reserved.
  * This component and the accompanying materials are made available
- * under the terms of the License "Eclipse Public License v1.0"
+ * under the terms of "Eclipse Public License v1.0"
  * which accompanies this distribution, and is available
  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
  *
@@ -17,7 +17,7 @@
  */
 
 /*
- * %version: 13 %
+ * %version: tr1cfwln#18 %
  */
 
 #ifndef CPWEPUI_H
@@ -27,23 +27,18 @@
 #include <cpsettingformitemdata.h>
 #include <QStringList>
 #include <HbMessageBox>
-//#include <HbTranslator>
-//#include <QSharedPointer>
-#include <QTranslator>
+#include <cpwlansecurityplugininterface.h>
 
 //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<HbTranslator> 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;